It would never get to 100% anyway.
You ought to have a decent amount of swap space.
If you have too little swap space, some process will get killed when too much mem+swap is used, but not necessarily the process using too much. The results might be as bad as crashing the whole server.
If you have enough swap space, a process trying to use "too much" memory will still get significantly less than 100% in %mem (which is ram and doesn't count swap). It and other processes will swap more, which depending on access pattern might drastically slow them down.
If you have enough swap space, setting the CPU priority low on the process that tries to use "too much" memory will tend to make it be the one that does more swapping and thus gets more of the impact of its own memory use. But that is an indirect effect. It is hard to make sure other processes won't slow to a crawl due to the excess swapping.
Last edited by johnsfine; 12-21-2009 at 01:01 PM.
|