On Fri, 12 Jul 2002, Zou Min wrote: > On Thu, Jul 11, 2002 at 11:35:52PM -0300, Rik van Riel wrote: > > Basically what the thing did was call swap_out_mm() from > > handle_mm_fault() whenever the process was over its RSS limit. > > I am looking at linux-2.4.18 with 2.4.18-rmap12h. > I can't find swap_out_mm() there. So I just changed a bit as following: > But still the RSS limit is not enforced. > Where else should I change? or I should refer to another kernel version? The infrastructure for what you are trying to do has been removed from the rmap VM because it just doesn't make much sense to have for good system behaviour. You will be able to get swap_out_mm() and friends from older kernels, but you will have to port over the RSS code. regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/