Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757022Ab0GMQog (ORCPT ); Tue, 13 Jul 2010 12:44:36 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:52356 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509Ab0GMQof (ORCPT ); Tue, 13 Jul 2010 12:44:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=BkMJC/RdUYLu0dQnsk3XrHHfd/pSAjdVtc8y6c72GPXSPdSY5NJ5S91Fr4jfPndUjZ u796SGU9NfkTOq/YTjfda0M2MRFT+Mu8OsbAPeqK5BYuSxaf0CiGMP9znwpzQYNBkFa7 b8fNp9x1HGU7YtHuKF/c/cCzBrlbp5grLxBX4= Date: Wed, 14 Jul 2010 01:44:23 +0900 From: Minchan Kim To: Dave Hansen Cc: Johannes Weiner , linux@arm.linux.org.uk, Yinghai Lu , "H. Peter Anvin" , Andrew Morton , Shaohua Li , Yakui Zhao , linux-kernel@vger.kernel.org, linux-mm@kvack.org, arm-kernel@lists.infradead.org, kgene.kim@samsung.com, Mel Gorman , KAMEZAWA Hiroyuki Subject: Re: [RFC] Tight check of pfn_valid on sparsemem Message-ID: <20100713164423.GC2815@barrios-desktop> References: <20100712155348.GA2815@barrios-desktop> <20100713093006.GB14504@cmpxchg.org> <20100713154335.GB2815@barrios-desktop> <1279038933.10995.9.camel@nimitz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1279038933.10995.9.camel@nimitz> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 47 Hi, Dave. On Tue, Jul 13, 2010 at 09:35:33AM -0700, Dave Hansen wrote: > On Wed, 2010-07-14 at 00:43 +0900, Minchan Kim wrote: > > 3 is not a big deal than 2 about memory usage. > > If the system use memory space fully(MAX_PHYSMEM_BITS 31), it just consumes > > 1024(128 * 8) byte. So now I think best solution is 2. > > > > Russell. What do you think about it? > > I'm not Russell, but I'll tell you what I think. :) > No problem. :) > Make the sections 16MB. You suggestion to add the start/end pfns I hope so. > _doubles_ the size of the structure, and its size overhead. We have > systems with a pretty tremendous amount of memory with 16MB sections. Yes. it does in several GB server system. > > If you _really_ can't make the section size smaller, and the vast > majority of the sections are fully populated, you could hack something > in. We could, for instance, have a global list that's mostly readonly > which tells you which sections need to be have their sizes closely > inspected. That would work OK if, for instance, you only needed to > check a couple of memory sections in the system. It'll start to suck if > you made the lists very long. Thanks for advise. As I say, I hope Russell accept 16M section. > > -- Dave > -- 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/