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

From: Pavel Machek
Date: Fri Jan 23 2004 - 14:01:46 EST


Hi!

> > ulimit -m 1
> > <some task>
> >
> > should make that task run with extremely low priority, right?
>
> Yeah, when the box is under memory pressure, pages from that
> task should never hit the active list. Instead, they should
> always stay on the inactive list and the non-referenced pages
> from that app should get reclaimed.
>
> OTOH, if the app keeps referencing all pages, maybe I need
> to tune up the aggressiveness a bit and also reclaim the
> referenced pages ... if the current patch doesn't work right
> I'll make a more aggressive one.

I'm afraid it needs to be more aggressive.

I made two programs, each walking over 150MB of memory, and ran them
at same time on 250MB machine. One of them with ulimit -m 1... Both
got about the same ammount of RAM and progressed at similar speed.

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/