Re: ulimit -m

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Jul 2002, Zou Min wrote:
> On Thu, Jul 11, 2002 at 11:01:55PM -0300, Rik van Riel wrote:
> > I've tried this once (in the 2.1 days) and system performance was
> > _very_ bad with half of RAM free and one RSS-limited program using
> > all disk bandwidth for swapping.
>
> In fact, I am just doing a little experiment, which requires to strictly
> limit the RSS of certain process. Here, I don't care about the whole
> system performance at all.
>
> Could you send me the patch which does force the RSS limit even when there
> is enough memory available, because I am not sure how low memory I should
> set in order to let system enforce the RSS limit?

I no longer have that patch, it must have been 3 or 4 years ago
that I tried this approach.

Basically what the thing did was call swap_out_mm() from
handle_mm_fault() whenever the process was over its RSS limit.

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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux