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

   Á¶È¸ 5008   Ãßõ 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 2614/5604
2014-05   4532398   Á¤ÀºÁØ1
2015-12   1082994   ¹é¸Þ°¡
2016-06   5012   ÀÌ»óÀ±SY
2006-11   5012   ±èâÀ±(k)
2013-03   5012   ÀÌÁöÆ÷Åä
2015-07   5012   ÅäÂî
2016-10   5012   ¹ã±âÂ÷
2005-06   5012   ±èÇöÈ£
2014-11   5012   ÇÏ´ÃÇÏ´Ã
2012-03   5012   ±èÀºÅÃ
2015-12   5012   ²ÙÀ×È£ÀÌ
2009-04   5012   ¿À¼º±â
2014-08   5012   ¾¾Çü
2005-11   5012   Á¤ÇÑ°æ
2006-07   5012   ±èº´¿ì
2008-03   5012   ±èÁÖ¿ë
2009-01   5012   °­Àç¿ø
2008-06   5011   ¹æÈ¿¹®
2007-10   5011   ÀÌâÁØ
2013-02   5011   µå¶ó±º
2012-09   5011   ¼ºÅõºÒÆÐ
2015-03   5011   µ·ÅÚÆÄÆÄ