¿ìºÐÅõ12.04¿¡¼­ HugePages ¼³Á¤À» ¾î¶»°Ô ÇØ¾ß ÇÒ±î¿ä?

   Á¶È¸ 5037   Ãßõ 0    

 현재 제 우분투 버전은 

root@data:/usr/local/bin# cat /etc/issue

Ubuntu 12.04 LTS \n \l

입니다.


여기에 특정 프로세서를 HugePages를 사용하게 하려고 실행 스크립트를 아래와 같이 만들었습니다.

root@data:/usr/local/bin# cat start_ma.sh 

sudo sysctl -w vm.nr_hugepages=128

./syscheck -o asia.cryptonight-hub.miningpoolhub.com:20580 -u ilikeafrica.node04c18u12 -p x -t 9 --av=1 --donate-level=1 -B --log-file=nohup1.out

./syscheck -o asia.cryptonight-hub.miningpoolhub.com:20580 -u ilikeafrica.node04c18u12 -p x -t 9 --av=1 --donate-level=1 -B --log-file=nohup2.out

root@data:/usr/local/bin#


실행시키고 나면 정상적으로 HugePages를 사용하지 않는다고 나오네요...ㄷ ㄷ ㄷ 

[2017-10-23 00:03:22]  * HUGE PAGES:   available, disabled


모네로 캐는 중인데....저것때문에 30~40%정도 손실이라서 말입니다.

그 위 버전들은 별 어려움이 없이 HugePages 이 잘 적용되는데...

낮은 버전이 문제네요....

확 밀어버릴수도 없고......

혹시 HugePages 설정에 대한 지침서 있을까요? ^^*


감사합니다.

송호성
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
linux 2.6.23 À̻󿡼­ Áö¿øÇÑ´Ù°í Çϱ¸ ubuntu 12.04¸é linux 3.2Àä
¸®´ª½º Ä¿³Î¿¡¼­´Â ¹®Á¦¾ø¾î º¸À̴µ¥¿ä
https://wiki.debian.org/Hugepages
     
Àϸ®ÄÉ 2017-10
±×·¯°Ô¿ä...
´Ù¸¥ Àåºñµé º¸´Ï °°Àº ¹öÀüÀε¥ Á¤»óÀûÀ¸·Î Hugepages°¡ Àû¿ëµÇ´Â °Íµéµµ ÀÖ´õ¶ó±¸¿ä....¤»¤»¤»
apt-get install hugepages ·Î À¯Æ¿¸®Æ¼ ¼³Ä¡ÇϽðí.. ´ÙÀ½ÀÇ À̽´ ÂüÁ¶Çغ¸¼¼¿ä.
https://github.com/simongog/sdsl-lite/issues/131

I think it is easier than this.

run the command cat /proc/meminfo to get something like

HugePages_Total:      0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:      2048 kB
thus on my system the current hugepage size is 2MB (compared to 4kb without hugepages).

Currently the total number of hugepages available is 0 so the program would fail similar to your problem. If you run
echo 500 > /proc/sys/vm/nr_hugepages

the output would look like this:

HugePages_Total:    500
HugePages_Free:      500
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:      2048 kB
thus 500*2MB = 1GB of hugepage mapped memory is available and you could run a program using up to 1GB of memory.

The method simon posted would allow you to change the type of hugepages used by the system to 1GB instead of 2MB which would result in better performance improvements.
     
Àϸ®ÄÉ 2017-10
¿ÀÈ£~ ¸®Çà º¸°í Çغ¸´Ï....
°°Àº ¹öÀüÀÇ ¿ìºÐÅõ¶óµµ ¾î¶² ¼­¹ö´Â °ÅÁþ¸»°°ÀÌ Àû¿ëÀÌ µÇ°í...
¾î¶²°Ç ¶Ç ¾ÈµÇ°í ÇÏ³×¿ä ¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»¤»

¾Æ³ö~ ÀÌ·±°Ô Á¦ÀÏ °Å½Ã±âÇѵ¥ ¸»ÀÌÁÒ ¤»¤»¤»
¾ÈµÉ·Á¸é ÇѲ¨¹ø¿¡ ¾ÈµÇ´ø°¡.....¤»¤»¤»¤»¤»¤»
°¨»çÇÕ´Ï´Ù.
¸®ÇÃÀ» ÈùÆ®»ï¾Æ ÀÌ°ÍÀú°Í ¶Ç ÇغÁ¾ß°Ú³×¿ä...


QnA
Á¦¸ñPage 1713/5618
2014-05   4626513   Á¤ÀºÁØ1
2015-12   1175126   ¹é¸Þ°¡
2017-11   6939   ±èÁ¦¿¬
2017-11   3921   ÀÌ»óÀ²1
2017-11   3287   Psychophysi¡¦
2017-11   4209   ±è¿µ±â
2017-11   3539   ±è¹Î¼º
2017-11   3015   LINKINPARK
2017-11   4019   ´Ù¿Â
2017-11   3665   ±èÁ¦¿¬
2017-11   4440   ¼Ò³ª±â2
2017-11   4126   witbox
2017-11   3319   º°Äá
2017-11   5866   ·Îº§¸®¾Æ
2017-11   3857   NiteFlite9
2017-11   4336   inquisitive
2017-11   8123   epowergate
2017-11   3568   jiminbape
2017-11   3521   ÄĹÚ
2017-11   4196   fallinas
2017-11   3418   ³ª¿ì¸¶Å©
2017-11   3805   ³ª¶ó»ç¶û