Mine XMR On VPS Server Lowering CPU Usage

VPS have limited CPU and RAM usage. This is why it is hard to mine on VPS not being blocked for high consumption. I try to mine on Xeon Skylake 1 Core 2 Gb Ram.

1. Optimize Xmrig config.json

Get config.json from Xmrig wizard [1]. After first run xmrig will add many lines to your config. And you need to look at the next lines.

Under randomx object:  "mode": "light" - this makes xmrig uses 256 Mb of Ram.

Under randomx object: "1gb-pages": false - this is by default, use 2mb huge pages.

Install Xmrig on Devuan (Debian, Ubuntu)

Installing Xmrig compiling from sources on Devuan Linux with instructions from


1. Install dependecies

This is needed to compile and link xmrig from sources. Run from ruot or with 'sudo':

apt install -y git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev libhwloc-dev gcc-8 g++-8

apt update && apt upgrade


2. Download Xmrig from Git and build

It is an official repository. Run it from non-root user.