Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754773AbbDJLYz (ORCPT ); Fri, 10 Apr 2015 07:24:55 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:48251 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbbDJLYx (ORCPT ); Fri, 10 Apr 2015 07:24:53 -0400 Date: Fri, 10 Apr 2015 12:24:31 +0100 From: Russell King - ARM Linux To: "Wang, Yalin" Cc: "'Gregory Fong'" , Mel Gorman , Laura Abbott , Florian Fainelli , Kees Cook , Nicolas Pitre , Catalin Marinas , open list , "linux-arm-kernel@lists.infradead.org" , "vishnu.ps@samsung.com" , Marek Szyprowski , Johannes Weiner Subject: Re: [PATCH] ARM: print cma-reserved pages from show_mem Message-ID: <20150410112430.GB12732@n2100.arm.linux.org.uk> References: <54D40DAF.4080609@codeaurora.org> <54D534FB.1090101@codeaurora.org> <20150210113230.GJ8656@n2100.arm.linux.org.uk> <20150326114612.GD8656@n2100.arm.linux.org.uk> <20150326123028.GM4701@suse.de> <35FD53F367049845BC99AC72306C23D104A310D42397@CNBJMBX05.corpusers.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35FD53F367049845BC99AC72306C23D104A310D42397@CNBJMBX05.corpusers.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1777 Lines: 40 On Fri, Apr 10, 2015 at 01:18:04PM +0800, Wang, Yalin wrote: > > [ 12.212102] active_anon:734 inactive_anon:1189 isolated_anon:0 > > [ 12.212102] active_file:0 inactive_file:0 isolated_file:0 > > [ 12.212102] unevictable:0 dirty:0 writeback:0 unstable:0 > > [ 12.212102] free:254104 slab_reclaimable:82 slab_unreclaimable:843 Here, we have 82 pages reclaimable, which is 328kB, and 843 unreclaimable which is 3372kB, which is a total of 925 pages. > > [ 12.212102] mapped:429 shmem:1815 pagetables:13 bounce:0 > > [ 12.212102] free_cma:4032 > > [ 12.243172] DMA free:754080kB min:3472kB low:4340kB high:5208kB > > active_anon:180kB inactive_anon:0kB active_file:0kB inactive_file:0kB > > unevictable:0kB isolated(anon):0kB isolated(file):0kB present:778240kB > > managed:759252kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB > > shmem:0kB slab_reclaimable:328kB slab_unreclaimable:3372kB Which agrees here. > > [ 12.401609] 834 slab pages but not here... this is an interesting difference, because in the ARM version of show_mem(), we count the actual number of pages where PageSlab() returns true. Can slab pages also be reserved pages or swap cache pages? I thought they were exclusive of those. So, the question comes... why the difference in accounting, and which one is correct. Maybe there's a bug in the accounting somewhere... So I think we're not ready for this patch to be merged yet. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- 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/