From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx155.postini.com [74.125.245.155]) by kanga.kvack.org (Postfix) with SMTP id 798196B004A for ; Thu, 12 Apr 2012 20:46:00 -0400 (EDT) Message-ID: <4F877744.6040400@kernel.org> Date: Fri, 13 Apr 2012 09:45:56 +0900 From: Minchan Kim MIME-Version: 1.0 Subject: Re: [PATCH] mm: fix up the vmscan stat in vmstat References: <1334253782-22755-1-git-send-email-yinghan@google.com> In-Reply-To: <1334253782-22755-1-git-send-email-yinghan@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ying Han Cc: Michal Hocko , Johannes Weiner , Mel Gorman , KAMEZAWA Hiroyuki , Rik van Riel , Hillf Danton , Hugh Dickins , Dan Magenheimer , Andrew Morton , linux-mm@kvack.org On 04/13/2012 03:03 AM, Ying Han wrote: > It is always confusing on stat "pgsteal" where it counts both direct > reclaim as well as background reclaim. However, we have "kswapd_steal" > which also counts background reclaim value. > > This patch fixes it and also makes it match the existng "pgscan_" stats. > > Test: > pgsteal_kswapd_dma32 447623 > pgsteal_kswapd_normal 42272677 > pgsteal_kswapd_movable 0 > pgsteal_direct_dma32 2801 > pgsteal_direct_normal 44353270 > pgsteal_direct_movable 0 > > Signed-off-by: Ying Han Reviewed-by: Minchan Kim Off-topic: There is another vmstat like that.(pgfault,pgmajfault) But it's not trivial to fix it. Let it be. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org