Monero Mining with xmr-stak-cpu on Windows 10

  • 3
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    3
    Shares

Edit: This article is now outdated. Please use this article instead: Guide To Mining Monero On Windows 10.

Mining Monero on Windows 10 is as easy as downloading a zip file, extracting it and then editing one configuration file.

Getting Started

  1. Go to https://github.com/fireice-uk/xmr-stak-cpu/releases and download the latest release, which at the time of writing this is https://github.com/fireice-uk/xmr-stak-cpu/releases/download/v1.3.0-1.5.0/xmr-stak-cpu-win64.zip
  2. Extract the files and run xmr-stak-cpu. It will provide you with text that you need to add to the config.txt file. An example:
  3. While in config.txt edit the following fields with your pool information and save. I recommend https://supportxmr.com/#/help/getting_started
     "pool_address" : "",
     "wallet_address" : "",
     "pool_password" : "",
  4. Now simply run xmr-stak-cpu again and you should be good to go.

If you run into any errors regarding memory please following the instructions under Large Page Support:

 /*
 * LARGE PAGE SUPPORT
 * Lare pages need a properly set up OS. It can be difficult if you are not used to systems administation,
 * but the performace results are worth the trouble - you will get around 20% boost. Slow memory mode is
 * meant as a backup, you won't get stellar results there. If you are running into trouble, especially
 * on Windows, please read the common issues in the README.
 *
 * By default we will try to allocate large pages. This means you need to "Run As Administrator" on Windows.
 * You need to edit your system's group policies to enable locking large pages. Here are the steps from MSDN
 *
 * 1. On the Start menu, click Run. In the Open box, type gpedit.msc.
 * 2. On the Local Group Policy Editor console, expand Computer Configuration, and then expand Windows Settings.
 * 3. Expand Security Settings, and then expand Local Policies.
 * 4. Select the User Rights Assignment folder.
 * 5. The policies will be displayed in the details pane.
 * 6. In the pane, double-click Lock pages in memory.
 * 7. In the Local Security Setting – Lock pages in memory dialog box, click Add User or Group.
 * 8. In the Select Users, Service Accounts, or Groups dialog box, add an account that you will run the miner on
 * 9. Reboot for change to take effect.
 *
 * Windows also tends to fragment memory a lot. If you are running on a system with 4-8GB of RAM you might need
 * to switch off all the auto-start applications and reboot to have a large enough chunk of contiguous memory.
 *
 * On Linux you will need to configure large page support "sudo sysctl -w vm.nr_hugepages=128" and increase your
 * ulimit -l. To do do this you need to add following lines to /etc/security/limits.conf - "* soft memlock 262144"
 * and "* hard memlock 262144". You can also do it Windows-style and simply run-as-root, but this is NOT
 * recommended for security reasons.
 *
 * Memory locking means that the kernel can't swap out the page to disk - something that is unlikey to happen on a
 * command line system that isn't starved of memory. I haven't observed any difference on a CLI Linux system between
 * locked and unlocked memory. If that is your setup see option "no_mlck".

Was this helpful? Consider a donation.


  • 3
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    3
    Shares

3
Leave a Reply

avatar
2 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
emelasaltLogan Kresin Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Logan Kresin
Member

im getting this error
JSON config parse error(offset 1555): Missing a name for object member.
please help

salt
Guest
salt

same

emela
Guest
emela

not working