Questions tagged [huge-pages]

Hugepages is a mechanism that allows the Linux kernel to utilize the multiple page size capabilities of modern hardware architectures.

Hugepages is a mechanism that allows the Linux kernel to utilize the multiple page size capabilities of modern hardware architectures. Linux uses pages as the basic unit of memory, where physical memory is partitioned and accessed using the basic page unit. The default page size is 4096 Bytes in the x86 architecture. Hugepages allows large amounts of memory to be utilized with a reduced overhead. Linux uses “Transaction Lookaside Buffers” (TLB) in the CPU architecture. These buffers contain mappings of virtual memory to actual physical memory addresses. So utilizing a huge amount of physical memory with the default page size consumes the TLB and adds processing overhead.

The Linux kernel is able to set aside a portion of physical memory to be able be addressed using a larger page size. Since the page size is higher, there will be less overhead managing the pages with the TLB. In the Linux 2.6 series of kernels, hugepages is enabled using the CONFIG_HUGETLB_PAGE feature when the kernel is built. Systems with large amount of memory can be configured to utilize the memory more efficiently by setting aside a portion dedicated for hugepages. The actual size of the page is dependent on the system architecture.

Source: http://linux.cloudibee.com/2007/09/linux-hugepages/

188 questions
0
votes
2 answers

ERROR: ld.so: object 'libhugetlbfs.so' from LD_PRELOAD cannot be preloaded: ignored

i'm trying run a simple malloc program to see whether my hugepage environment has been properly setup. the libhugetlbfs is installed in the default system directory only /usr/local. OS is RHEL 6.7. I checked that the libhugetlbfs.so is ther in…
0
votes
2 answers

Emptying huge div from HTML using javascript/jquery

I have some problems with deleting huge div from my html using javascript (+jquery or whatever). Actually it takes too much time and I'm looking for faster solution, because it's unacceptable long. Div is really huge, it contains about 13k lines,…
0
votes
4 answers

How to improve JavaScript performance / reduce page load on a page with large HTML?

We have a page layout as below, with jQuery click handler for a large number of HTML elements (thousands of DIVs). The layout is like this: The Navbar contains at least 2000+ DIVs and UL , LI (used for content navigation), and we have jQuery…
Dio Phung
  • 5,944
  • 5
  • 37
  • 55
0
votes
1 answer

What is the most elegant way to name and event handle site with 100's of input boxes?

Basically so I’ve got this application style webpage with hundreds of input fields(Hidden across tab’s and accordians / fake dialog boxes etc…) , and I want as soon as the control has lost focus / the keystroke ‘enter / tab’ has been hit, (Rather…
0
votes
1 answer

How to provide address to CreateFileMapping / OpenFileMapping

Is there a function that you can use to provide a mapping an address to use? I am trying to figure out a way to take advantage of large pages even when I have to map small files. I know I can waste memory. Optionally I could use VirtualAlloc to…
johnnycrash
  • 5,184
  • 5
  • 34
  • 58
0
votes
1 answer

How to write huge PDF files

I am using FPDF. I need to write to the disk every 10 pages or so, otherwise, memory gets exhausted. How would I do that? I tried calling the output method ('filename.pdf','F'); in a loop, this does not work. Any idea how it should look like?
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278
-1
votes
2 answers

DPDK application cannot work for no free hugepage

I am building the Helloworld application in DPDK. I get an error that says No free hugepages reported in hugepages-1048567. (1) I build the DPDK-18.11 using RTE_TARGET=x86_64-linuxapp-native-gcc. (2) I run usertools/dpdk-setup.sh, run [15] (build…
jiexray
  • 325
  • 4
  • 13
-1
votes
3 answers

Hugepagesize is not increasing to 1G in VM

I am using CentOS VM in ESXi Server. I want to increase the Huge page size to 1G. I followed the link: http://dpdk-guide.gitlab.io/dpdk-guide/setup/hugepages.html I executed the small script to check if the size of 1 GB is supported: [root@localhost…
mbhole
  • 13
  • 1
  • 4
1 2 3
12
13