1

I am getting following two different result. which one i should consider for Hugepage?

[root@server ~]# getconf PAGESIZE
4096
[root@server ~]# grep -i hugepagesize /proc/meminfo 
Hugepagesize:     2048 kB

My kernel on CentOS 7.1

Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
0

Obviously for Hugepage is Hugepagesize. PAGESIZE is for (non-huge) pages in virtual memory.

I will leave an URL explaining it better:

https://wiki.debian.org/Hugepages

Other tidbits:

shmall determines the total amount of shared memory to be allocated using its value multipled by the OS pagesize.

"pagesize = getconf PAGE_SIZE"

"Divide the SHMMAX value by the Hugepagesize to get SHMALL"

  • i need correct value because i am calculating kernel.shmmax and kernel.shmall so i want to know which value i should consider – Satish Nov 17 '15 at 21:06
  • Post edited for clarity. – Rui F Ribeiro Nov 17 '15 at 21:12
  • insteresting, just adding some tidbits. – Rui F Ribeiro Nov 17 '15 at 21:18
  • so pagesize will be multipled and total result of that divide by Hugepagesize very interesting... – Satish Nov 17 '15 at 21:30
  • Just a few tidbits I got here and there. I recommend you to follow the official Oracle documentation. – Rui F Ribeiro Nov 17 '15 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.