From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id A48A16B004D for ; Thu, 9 Jul 2009 21:03:24 -0400 (EDT) Date: Fri, 10 Jul 2009 09:23:56 +0800 From: Wu Fengguang Subject: Re: [PATCH 5/5] add shmem vmstat Message-ID: <20090710012356.GA6809@localhost> References: <20090709165820.23B7.A69D9226@jp.fujitsu.com> <20090709171452.23C9.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090709171452.23C9.A69D9226@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: LKML , linux-mm , Andrew Morton , Christoph Lameter , David Rientjes , Rik van Riel , Hugh Dickins List-ID: On Thu, Jul 09, 2009 at 04:18:01PM +0800, KOSAKI Motohiro wrote: > ChangeLog > Since v1 > - Fixed misaccounting bug on page migration > > ======================== > Subject: [PATCH] add shmem vmstat > > Recently, We faced several OOM problem by plenty GEM cache. and generally, > plenty Shmem/Tmpfs potentially makes memory shortage problem. > > We often use following calculation to know shmem pages, > shmem = NR_ACTIVE_ANON + NR_INACTIVE_ANON - NR_ANON_PAGES > but it is wrong expression. it doesn't consider isolated page and > mlocked page. > > Then, This patch make explicit Shmem/Tmpfs vm-stat accounting. > > > Signed-off-by: KOSAKI Motohiro Acked-by: Wu Fengguang Thanks for the nice work! -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org