I have a process which is consuming roughly 13.5GB on a machine with 16GB running Ubuntu 14.04. The available memory according to System Monitor is 15.6GiB, of which 1.7GiB is reported as being used by other processes.
When I run my process, memory usage reaches ~85% and immediately goes to swap, crippling the process.
How can I make sure that this doesn't happen, and the process is given the highest memory priority? I don't care about CPU-priority as much, because the process only runs on a single core.