Monday, April 4, 2016

Huge Pages and Transparent Huge Pages

Memory is managed in blocks known as pages. A page is 4096 bytes. 1MB of memory is equal to 256 pages; 1GB of memory is equal to 256,000 pages,
 etc. CPUs have a built-in memory management unit that contains a
list of these pages, with each page referenced through a page table entry.There are two ways to enable the system to manage large amounts of memory:
Increase the number of page table entries in the hardware memory management unit
Increase the page size.
Simply put, huge pages are blocks of memory that come in 2MB and 1GB sizes. The page tables used by the 2MB pages are suitable for managing multiplegigabytes of
memory, whereas the page tables of 1GB pages are best for scaling to terabytes of memory.

set huge page to 8G

1. cp /etc/sysclt.conf   /etc/BACKUP.sysclt.cnf  ---- create back up
2. /etc/sysclt.conf (modify the below entry)
kernel.shmmax = 9181523968
kernel.shmall = 4483166
vm.nr_hugepages = 4378
3. cp /etc/security/limits.conf   (create back up)
put 9181523968 value on the line containging "memlock"
4.sysctl -p
notify the requester and reboot host upon confirm request

shakeout:
EDB will perform database shakeout
cat /proc/sys/vm/nr_hugepages   ( should be 4378)

No comments:

Post a Comment