Messages in this thread | | | Date | Thu, 05 Aug 2004 16:34:28 -0400 | From | Bill Davidsen <> | Subject | Re: [PATCH] RSS ulimit enforcement for 2.6.8 |
| |
Rik van Riel wrote: > The patch below implements RSS ulimit enforcement for 2.6.8-rc3-mm1. > It works in a very simple way: if a process has more resident memory > than its RSS limit allows, we pretend it didn't access any of its > pages, making it easy for the pageout code to evict the pages. > > In addition to this, we don't allow a process that exceeds its RSS > limit to have the swapout protection token. > > I have tested the patch on my system here and it appears to be working > fine.
You have had better luck getting that to compile than I have, but I'm still working on it. I assume that the note about sched compiling with SMP set will get me going.
Wish there was something like RSS for cache, so that one process reading every inode on the planet, or doing an md5 on an 11GB file wouldn't push every damn process out if it's waiting for me to finish typing a line...
I did a brute force patch for 2.4.18 to limit the total memory used for cache, but it would sure be nice to just limit by process. Yes I know cache is shared, I have looked at this before :-(
-- -bill davidsen (davidsen@tmr.com) "The secret to procrastination is to put things off until the last possible moment - but no longer" -me - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |