Do I need to run XMRig as administrator or root for MSR?
Yes—XMRig normally needs administrator rights on Windows or root privileges on Linux to apply its MSR tweaks. You do not need those privileges just to mine Monero: if XMRig cannot apply the tweaks, it can usually keep mining, but performance may be lower.
What MSR access actually does
MSR stands for model-specific register. These are special settings inside your processor that ordinary programs are not allowed to change.
XMRig can adjust certain MSRs to help Monero’s mining algorithm, RandomX, run more efficiently. On supported processors, this includes changing hardware prefetch settings—features that try to predict which data your processor will need next. Those predictions are not always helpful for RandomX.
The useful settings depend on your processor. MSR tuning does not guarantee a particular speed increase, and it is not required for valid mining.
These changes affect processor behavior beyond XMRig itself. Apply them only on a computer you own or are explicitly authorized to administer.
On Windows: administrator rights are normally needed
For the usual Windows setup, you launch XMRig with Run as administrator so it can use a driver to access the processor’s MSRs. A driver is software with deeper access to your hardware than an ordinary app.
A few things can still prevent access:
- Windows security settings may block the driver.
- Your account or workplace security policy may prohibit it.
- Your processor may not support the expected settings.
Running as administrator does not guarantee that the tweak succeeds. Read XMRig’s startup messages for its MSR status.
Do not disable security protections just to force a mining driver to load. If Windows blocks it, leaving MSR tuning disabled is a reasonable choice. Download XMRig only from its official project sources, because a modified mining program running as administrator could take over your computer.
On Linux: root is the usual route
On Linux, XMRig normally needs root privileges to access the processor’s MSR interfaces. It also needs the kernel’s MSR support to be available. The kernel is the central part of your operating system that controls hardware access.
Running XMRig through sudo is the straightforward approach, but it gives the entire mining process elevated access.
If you manage a server and want tighter security, you can arrange for a separate, trusted startup step to apply the appropriate MSR settings, then run the miner as an ordinary user. That requires processor-specific setup and careful handling of permissions and cleanup. Avoid making MSR access available to every user.
In a virtual machine, even root may not have access: the host system can hide or block these processor controls.
Must XMRig stay elevated the whole time?
The permission is needed to change the registers, not to calculate every mining hash. A hash is one computation your miner performs while trying to find a valid block.
However, simply starting XMRig elevated does not mean it automatically switches to an ordinary account afterward. Its normal elevated launch can leave it elevated throughout the run.
XMRig normally attempts to restore the original MSR values when it exits cleanly, unless configured otherwise. A crash may prevent that cleanup. A reboot generally resets the settings, so do not assume a one-time tweak lasts permanently.
The bottom line
Use administrator or root access if you want XMRig itself to apply MSR tuning. If you prefer not to grant that access, disable the MSR tweak and mine without it. On a shared or important server, protecting the system matters more than a possible speed gain.
