Admittedly, this is a bit of a weird question....
TL;DR: I'm trying to work on a program, but whenever I link it, it uses ridiculous amounts of RAM. As a result, pretty much everything but the linker gets shoved to the swap space, which makes my system 99% unresponsive for the next 10 minutes. (Though, once I start to use the different applications again, performance starts to return to normal.)
The thing is, I really don't care how long the linking takes as long as the rest of the computer doesn't lock up. This brings me to my question: is there a way to, when the linker starts up, tell the kernel to prefer swapping of it to anything else? e.g. that, if I run low on RAM, the linker will be swapped before anything else.
I'm aware that this would cause some major slowdown, but I also don't want to have to restart my computer every time I link it because it becomes a giant ice box. :O