The main point of this guide is to show how to remove all the bloatware/spyware from Windows 10 that runs in the background and consumes precious CPU cycles. I manage to consistently get better hashrate on Windows 10 than even on Linux (Ubuntu server with minimum services running) – Windows 10 gives 50-100 h/s more on my Ryzen 7 3700X even without 1GB hugepages support that’s available only on Linux! And this advantage is at exactly the same CPU and RAM clock speeds (4.1 GHz/3200 MHz) which are fixed in BIOS, so the difference comes purely from OS optimizations.

  1. As always, before doing any OS tweaking, make sure to create system restore point!
  2. Enable large pages!!! This is the most important thing to do to get good hashrate. Follow this manual:
  3. Change Windows power plan to “High Performance”
    1. Launch Control Panel
    2. Select Hardware and sound -> Power Options
    3. Click “Show additional plans”
    4. Select “High Performance”
  4. Use O&O ShutUp10 tool to disable telemetry and other unneeded Windows 10 spyware
    1. Download and run it
    2. Apply default settings, they are fine
    3. Reboot
  5. Disable startup apps, part 1
    1. Open Settings -> Apps -> Startup
    2. Turn off everything there
  6. Disable startup apps, part 2
    1. Download and run it
    2. Untick everything non-Microsoft under “Logon”, “Scheduled Tasks”, “Services” tabs
    3. [Optional] Untick remaining Microsoft startup programs
    4. Reboot
  7. Disable relaunch apps on startup
    1. Open Settings -> Sign-in options
    2. Under the “Privacy” section, turn off the “Use my sign-in info to automatically finish setting up my device and reopen my apps after an upgrade or restart” option.
  8. Disable background apps
    1. Open Settings -> Privacy
    2. Click on “Background apps”.
    3. Turn off “Let apps run in the background”.
  9. Uninstall apps that you don’t use
    1. Settings -> Apps -> Apps & Features
    2. Select apps that you want to remove
    3. Click the uninstall button

Next are optional and advanced tweaks, but they’re also important:

  1. [Optional] Turn off visual effects
    1. Control panel -> Advanced system settings -> Performance (settings) -> Adjust for best performance
  2. [Advanced] Turn off Windows Search system service. This is an indexing service that always runs in the background and indexes all your files, consuming a lot of CPU periodically.
    1. Press “Win+R” then type “services.msc” (without quotes) then press Enter
    2. Find “Windows Search” service, stop it and disable it
  3. [Advanced] Disable Memory Compression. It compresses memory used by apps in the background which also consumes CPU.
    1. Start PowerShell as administrator
    2. Type “Disable-MMAgent -mc” (without quotes), press Enter
    3. Reboot
  4. [Advanced] Disable Cortana
    1. Press “Win+R” then type “regedit” (without quotest) then press Enter
    2. Navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search” in the left sidebar
    3. If you don’t see a “Windows Search” key (folder) below the Windows folder, right-click the Windows folder and select New > Key. Name it “Windows Search”.
    4. Right-click the “Windows Search” key (folder) in the left pane and select New > DWORD (32-bit) Value.
    5. Name the value “AllowCortana”. Double-click it and set the value to “0”.
    6. Reboot

Final considerations: use Process Explorer to monitor which processes run in your system and how much CPU they use. Process Explorer shows much more data about processes, for example it shows which Windows services run under each svchost.exe. On a properly tuned system, you should see “explorer.exe” running and nothing else running under it right after reboot.

P.S. This is how XMRig should look on a properly set up system: – note that huge pages are 100% allocated and MSR mod was applied successfully. Run XMRig as administrator if something doesn’t work.

P.P.S. This guide will be updated regularly based on your feedback!


Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.