[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <65795E11DBF1E645A09CEC7EAEE94B9C3B8DF647@USINDEVS02.corp.hds.com>
Date: Thu, 13 Jan 2011 17:05:20 -0500
From: Satoru Moriya <satoru.moriya@....com>
To: David Rientjes <rientjes@...gle.com>, Ying Han <yinghan@...gle.com>
CC: "linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Mel Gorman <mel@....ul.ie>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Randy Dunlap <rdunlap@...otime.net>,
"dle-develop@...ts.sourceforge.net"
<dle-develop@...ts.sourceforge.net>,
Seiji Aguchi <seiji.aguchi@....com>
Subject: RE: [RFC][PATCH 0/2] Tunable watermark
On 01/07/2011 05:39 PM, David Rientjes wrote:
> The semantics of any watermark is to trigger events to happen at a
> specific level, so they should be static with respect to a frame of
> reference (which in the VM case is the min watermark with respect to the
> size of the zone). If you're going to adjust the min watermark, it's then
> _mandatory_ to adjust the others to that frame of reference, you shouldn't
> need to tune them independently.
Currently watermark[low,high] are set by following calculation (lowmem case).
watermark[low] = watermark[min] * 1.25
watermark[high] = watermark[min] * 1.5
So the difference between watermarks are following:
min <-- min/4 --> low <-- min/4 --> high
I think the differences, "min/4", are too small in my case.
Of course I can make them bigger if I set min_free_kbytes to bigger value.
But it means kernel keeps more free memory for PF_MEMALLOC case unnecessarily.
So I suggest changing coefficients(1.25, 1.5). Also it's better
to make them accessible from user space to tune in response to application
requirements.
> The problem that Satoru is reporting probably has nothing to do with the
> watermarks themselves but probably requires more aggressive action by
> kswapd and/or memory compaction.
More aggressive action may reduce the possibility of the problem reported.
But we can't avoid the problem completely because applications may
allocate/access faster than reclaiming/compaction.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists