Messages in this thread | | | Date | Thu, 4 Dec 2003 19:42:48 +0100 | From | Jens Axboe <> | Subject | Re: oom killer in 2.4.23 |
| |
On Thu, Dec 04 2003, Peter Bergmann wrote: > > > > Yes, and as a side question, couldn't oom killer be made into a config > > option? > > > > Cheers, > > MaZe. > > I just tried it and - no it does not work. > At least not with the following changes: > > added #define PF_MEMDIE 0x00001000 to sched.h > > replaced oom_kill.c with the 2.4.22 version > > added out_of_memory() to the end of try_to_free_pages_zone() > > replaced if (current->flags & PF_MEMALLOC && !in_interrupt()) { > with > replaced if ((current->flags & (PF_MEMALLOC | PF_MEMDIE)) && !in_interrupt() > ) { > in page_alloc.c > > > effect is still unchanged. > processes get killed by VM and not oom_kikll.c > > any hints ??
You probably want to look at the change to vmscan.c:try_to_free_pages_zone().
-- Jens Axboe
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |