[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Regarding OOM_KILL (oom_kill.c)
Hi Rik, (Hope you dont mind being called by your first name- I am your
biggest fan)
In my 2.4 source, linux/mm/oom_kill.c-> function-> oom_kill
doesnt do a check for init_process (p->pid == 1)
You just do
{ if(p->pid) { } }
in select_bad_process routine.
May be I thought ( if(p->pid && p->pid != 1) { } } would have been
better.
And force_sig on init is meaningless as init is never/shouldn't be
signalled.( do_signal in signal.c doesnt signal init, and why should it ever
signal it.)
And my LKM shows that my init_process is taking around 304 pages of
total_vm,(p->mm->total_vm) which is one of the factors for __bad__ process
selection.
Your biggest fan, and a Kernel Newbie (
http://kernelnewbies.org/wiki/moin.cgi/Karthick ).
Hope I didn't suck. I think I have a point. (Squeeze me, If I didnt. Grin
!!, but patch it, if I am right, and be courteous to remind me. Grin !!.)
Bye,
With Love,
A.R.Karthick
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/