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

   Á¶È¸ 5020   Ãßõ 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 1709/5611
2014-05   4584160   Á¤ÀºÁØ1
2015-12   1132754   ¹é¸Þ°¡
2017-11   3577   ÇູÇϼ¼
2017-11   4941   NiteFlite9
2017-11   9172   ¹Ì´ã
2017-11   5034   ¹Ì´ã
2017-11   5267   Å¿±°¨´Â»õ
2017-11   9469   Sakura24
2017-11   3665   À¯È£ÁØ
2017-11   3822   ¾ç¿µÈÆ
2017-11   4824   À嵿°Ç2014
2017-11   13552   ´ÙÀ̼Ò
2017-11   6388   À¸¶óÂ÷Â÷Â÷
2017-11   3563   ÀÌ´ÏÀÌ´Ï
2017-11   3466   ÇູÇϼ¼
2017-11   5513   ³ª¿ì¸¶Å©
2017-11   3988   ¾ç½Ã¿­
2017-11   3962   Á¤ÀºÁØ1
2017-11   5221   NAS°íÀå³µ´Ù¡¦
2017-11   4008   ¼ÛÁøÇö
2017-11   3868   Çϳª·ë
2017-11   7206   ºÐ´ç±èµ¿¼ö