Re: [PATCH] badness() dramatically overcounts memory

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Davis <linux@...>
Cc: <linux-kernel@...>, <linux-mm@...>
Date: Tuesday, February 5, 2008 - 12:13 am

Jeff Davis wrote:

Hi, Jeff,

1. grep on the kernel source tells me that shared_vm is incremented only in
   vm_stat_account(), which is a NO-OP if CONFIG_PROC_FS is not defined.
2. How have you tested these patches? One way to do it would be to use the
   memory controller and set a small limit on the control group. A memory
   intensive application will soon see an OOM.

I do need to look at OOM kill sanity, my colleagues using the memory controller
have reported wrong actions taken by the OOM killer, but I am yet to analyze them.

The interesting thing is the use of total_vm and not the RSS which is used as
the basis by the OOM killer. I need to read/understand the code a bit more.

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] badness() dramatically overcounts memory, Balbir Singh, (Tue Feb 5, 12:13 am)
Re: [PATCH] badness() dramatically overcounts memory, David Rientjes, (Tue Feb 5, 7:09 pm)
Re: [PATCH] badness() dramatically overcounts memory, KOSAKI Motohiro, (Tue Feb 5, 9:54 pm)
Re: [PATCH] badness() dramatically overcounts memory, Balbir Singh, (Wed Feb 6, 12:00 am)
Re: [PATCH] badness() dramatically overcounts memory, David Rientjes, (Tue Feb 5, 10:05 pm)