Check you PAGE file size - it should be more than 16000 MBs. Keep minimum 16000 MBs and maximum 20000 MBs. A majority of the miners rely on virtual mem to keep the process quick and it requires a good amount of size allocation.
How can you do this on Ubuntu 16.04.2 ?