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

   Á¶È¸ 5053   Ãßõ 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 1729/5621
2014-05   4657547   Á¤ÀºÁØ1
2015-12   1204583   ¹é¸Þ°¡
2017-10   4842   ³ª¶ó¶ß
2017-10   3696   jacks
2017-10   7257   ´ÃÆĶõ
2017-10   3862   »ßµ¹À̽½ÇÄÀÌ
2017-10   3156   ºÀºÀÀÌ
2017-10   4203   Å׶ó
2017-10   3957   pisaro1
2017-10   3742   inquisitive
2017-10   6098   Æ丣¼¼¿ì½º
2017-10   4328   Á¦ÀÌ·¹ºø
2017-10   5522   ÇÞ»ìÇѽºÇ¬
2017-10   3205   Çϳª·ë
2017-10   3673   BJH
2017-10   4332   AplPEC
2017-10   3580   LouPing0
2017-10   3822   ÀÌ»çÀå
2017-10   3558   ¹Ì¼ö¸Ç
2017-10   4307   ÇູÇϼ¼
2017-10   3433   ¾î¶ù
2017-10   3078   ¹Ú¹®Çü