Инструменты пользователя

Инструменты сайта


linux:hugetlb

Это старая версия документа!


# calculate vm.nr_hugepages (128Gb mem minus 5% for system: # echo $1) # 62225 vm.nr_hugepages = 62225 # # memlock calculate: # grep Hugepagesize /proc/meminfo # Hugepagesize: 2048 kB # echo $2) # 127436800 # /etc/security/limits.conf: # qemu soft memlock 127436800 # qemu hard memlock 127436800 # # determine vm.hugetlb_shm_group: # cat /etc/passwd | grep «qemu» # qemu:x:107:107:qemu user:/:/sbin/nologin vm.hugetlb_shm_group = 107 # # calculate kernel.shmall for 128Gb mem minus 5% for system: # getconf PAGE_SIZE # 4096 # echo $3) # 31876710 kernel.shmall = 31876710 # # calculate kernel.shmall for 128Gb mem minus 5% for system: # echo $4) kernel.shmmax = 130567005730

1)
128*1024/2/100*95
2)
62225*2048
3)
128*1024*1024*1024/100*95/4096
4)
128*1024*1024*1024/100*95
linux/hugetlb.1439297494.txt.gz · Последнее изменение: 2015/08/11 15:51 — linko22@gmail.com