Re: sched-idle and disk-priorities for 2.6.X

From: Pavel Machek
Date: Wed Jan 21 2004 - 20:06:45 EST


Hi!

> > > > Is there effective way to limit RSS?
> > >
> > > Want me to port the RSS stuff from 2.4-rmap to 2.6 ?
> >
> > Well, if it allows me to limit memory for one task so that it does not
> > make system unusable... yes, that would be great.
>
> Here it is. Untested, except for whether it compiles cleanly ;)
>
> Let me know how it works, if the enforcement is aggressive
> enough or not, whether I need to tweak things etc...

It boots, and seems to have no ill effects. I've yet to see some good
effects, too...

doing

ulimit -m 1
<some task>

should make that task run with extremely low priority, right?

Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/