Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932291AbVLHTrw (ORCPT ); Thu, 8 Dec 2005 14:47:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932294AbVLHTrw (ORCPT ); Thu, 8 Dec 2005 14:47:52 -0500 Received: from e2.ny.us.ibm.com ([32.97.182.142]:64657 "EHLO e2.ny.us.ibm.com") by vger.kernel.org with ESMTP id S932291AbVLHTrv (ORCPT ); Thu, 8 Dec 2005 14:47:51 -0500 Subject: Re: 2.6.15-rc4 panic in __nr_to_section() with CONFIG_SPARSEMEM From: Dave Hansen To: Hugh Dickins Cc: Badari Pulavarty , Andy Whitcroft , lkml , dwg@au1.ibm.com, "ADAM G. LITKE [imap]" In-Reply-To: References: <1133995060.21841.56.camel@localhost.localdomain> <43976AA4.2060606@uk.ibm.com> <1133997772.21841.62.camel@localhost.localdomain> <1134002888.30387.82.camel@localhost> <1134058055.21841.70.camel@localhost.localdomain> <1134069335.6159.21.camel@localhost> Content-Type: text/plain Date: Thu, 08 Dec 2005 11:47:46 -0800 Message-Id: <1134071266.9305.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 20 On Thu, 2005-12-08 at 19:33 +0000, Hugh Dickins wrote: > Oh, it isn't worth that effort, just test is_vm_hugetlb_page(vma) > in show_smap, and skip it if so - or make up appropriate numbers > from (vm_end - vm_start) in that case if you like. I think the reason Badari was looking at it was that some DB guys want to get some statistics out of there. They'll certainly care about HugeTLB pages. With the HugeTLB prefault mechanism having gone away, we can't assume that the pages are resident. So, I don't think just using the VMA's size will work. -- Dave - 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/