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 _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups:
- Re: sched-idle and disk-priorities for 2.6.XRik van Riel
- Re: sched-idle and disk-priorities for 2.6.XPavel Machek
- Re: sched-idle and disk-priorities for 2.6.XRik van Riel
- Prev by Date: Re: [PATCH] make ide-cd handle non-2kB sector sizes
- Next by Date: Re: [PATCH] make ide-cd handle non-2kB sector sizes
- Previous by thread: Re: sched-idle and disk-priorities for 2.6.X
- Next by thread: Re: sched-idle and disk-priorities for 2.6.X
- Indexes:[Main][Thread]