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

   Á¶È¸ 5033   Ãßõ 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
2015-12   1169613   ¹é¸Þ°¡
2014-05   4620903   Á¤ÀºÁØ1
2017-11   3317   º°Äá
2017-11   5866   ·Îº§¸®¾Æ
2017-11   3856   NiteFlite9
2017-11   4333   inquisitive
2017-11   8121   epowergate
2017-11   3566   jiminbape
2017-11   3520   ÄĹÚ
2017-11   4194   fallinas
2017-11   3417   ³ª¿ì¸¶Å©
2017-11   3803   ³ª¶ó»ç¶û
2017-11   4281   ¼ÛÁÖÇü
2017-11   7091   ·çº¥
2017-11   4765   ÁÖ¿µÁø¿µ¾Æºü
2017-11   3807   ŸÀÌÈ£
2017-11   4667   ÇãÀα¸¸¶Æ¾
2017-11   12974   È­¶õ
2017-11   3817   cicatrix
2017-11   3539   ´ÙºÀÀÌ
2017-11   4248   Landa
2017-11   4058   Á¦ÀÌÄÉÀÌÄÉÀÌ