Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757071Ab1DLKMG (ORCPT ); Tue, 12 Apr 2011 06:12:06 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:34677 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756916Ab1DLKMD (ORCPT ); Tue, 12 Apr 2011 06:12:03 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=B2ueWRoJeMpiZjghXu/YxyHpNgiamnQCwyAMHmQez9XbGMqxfAD+itsTP4TfLVpkEV z29tSBInaBNq4v+J/L+P4+qWWM96oZJiu3upcOu0T669xPoI+heUBmesd6bBUX3BiLlZ bkfbbn/3/8mD7HiA5hN+eJ3IeWIvtvDbispbU= MIME-Version: 1.0 In-Reply-To: <20110412183010.B52A.A69D9226@jp.fujitsu.com> References: <20110411170134.035E.A69D9226@jp.fujitsu.com> <20110412183010.B52A.A69D9226@jp.fujitsu.com> Date: Tue, 12 Apr 2011 19:12:02 +0900 Message-ID: Subject: Re: [PATCH 3/3] mm, mem-hotplug: update pcp->stat_threshold when memory hotplug occur From: Minchan Kim To: KOSAKI Motohiro Cc: linux-mm , LKML , Andrew Morton , Yasunori Goto , Rik van Riel , Johannes Weiner , KAMEZAWA Hiroyuki , Mel Gorman , Christoph Lameter Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1981 Lines: 61 On Tue, Apr 12, 2011 at 6:29 PM, KOSAKI Motohiro wrote: > Hi > >> Hi, KOSAKI >> >> On Mon, Apr 11, 2011 at 5:01 PM, KOSAKI Motohiro >> wrote: >> > Currently, cpu hotplug updates pcp->stat_threashold, but memory >> > hotplug doesn't. there is no reason. >> > >> > Signed-off-by: KOSAKI Motohiro >> > Reviewed-by: KAMEZAWA Hiroyuki >> > Acked-by: Mel Gorman >> > Acked-by: Christoph Lameter >> >> I can think it makes sense so I don't oppose the patch merging. >> But as you know I am very keen on the description. >> >> What is the problem if hotplug doesn't do it? >> I means the patch solves what's problem? >> >> Please write down fully for better description. >> Thanks. > > No real world issue. I found the fault by code review. I don't mean we should solve only real world issue. Just finding out code review is much valuable. :) > No good stat_threshold might makes performance hurt. Yes. That's I want it. My intention is that if you write down log fully, it can help much newbies to understand the patch in future and it would be very clear Andrew to merge it. What I want is following as. == Currently, memory hotplug doesn't updates pcp->stat_threashold. Then, It ends up making the wrong stat_threshold and percpu_driftmark. It could make confusing zoneinfo or overhead by frequent draining. Even when memory is low and kswapd is awake, it can mismatch between the number of real free pages and vmstat NR_FREE_PAGES so that it can result in the livelock. Please look at aa4548403 for more. This patch solves the issue. == -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/