* question on comment in __oom_kill_task()
@ 2007-04-02 17:45 Chris Friesen
0 siblings, 0 replies; only message in thread
From: Chris Friesen @ 2007-04-02 17:45 UTC (permalink / raw)
To: linux-kernel
In __oom_kill_task(), there is a comment that says,
"We give our sacrificial lamb high priority and access to all the memory
it needs. That way it should be able to exit() and clear out its
resources quickly..."
However, we don't actually change the priority at that point, we just
give it a large timeslice.
Would it make sense to actually change the priority/policy using
sched_setscheduler() to give the process a deeply negative nice level or
maybe even make it realtime?
This seems to help on some of our OOM stress tests.
Chris
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-02 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 17:45 question on comment in __oom_kill_task() Chris Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome