jceminer / cn_cpu_miner

Cryptonote CPU Miner
34 stars 23 forks source link

Large/Huge Pages On Ubuntu #17

Open lemistercoin opened 6 years ago

lemistercoin commented 6 years ago

Hi, On ubuntu I manage to mine 20 percent slower than with windows with the same settings. CPU is a i3 5010U (2C/4T) After invoking Jce miner, at the end of the configuration info, a red error line comes to say :

Failed to allocate shared Large Page, using normal memory (slower). Failed to allocate 2MB Large Page Scratchpad Buffer, using normal memory (slower).

It gives it for each thread I have 2Mb huge pages on this system, What is the procedure to get rid of this error (increase Huge pages size maybe)? The information on the net is inexistant for this kind of issue with a cpu miner and I suppose the configuration of huge pages in Ubuntu is a bit trickier than on Windows (Might be CPU model specific)

Best regards

jceminer commented 6 years ago

Hello,

this guide https://wiki.debian.org/Hugepages

is very well made, follow the steps one by one, reboot and it should be good. You need 2M per thread, or 4M for CN-Heavy/Haven/Bittube, or 1M for Turtle/Mox. Better allocate more than needed.

eLvErDe commented 6 years ago

Hello,

What don't you get the Debian package (just updated to 032g), it'll handle huge page for you in a proper way.

Regards, Adam.