Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033274AbbKEITs (ORCPT ); Thu, 5 Nov 2015 03:19:48 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:40448 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030562AbbKEITr (ORCPT ); Thu, 5 Nov 2015 03:19:47 -0500 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Thu, 5 Nov 2015 17:19:55 +0900 From: Joonsoo Kim To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Minchan Kim , Sasha Levin , "Kirill A. Shutemov" , Mel Gorman Subject: Re: [PATCH 1/5] mm, page_owner: print migratetype of a page, not pageblock Message-ID: <20151105081955.GA26034@js1304-P5Q-DELUXE> References: <1446649261-27122-1-git-send-email-vbabka@suse.cz> <1446649261-27122-2-git-send-email-vbabka@suse.cz> <20151105080910.GA25938@js1304-P5Q-DELUXE> <563B1005.3070203@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <563B1005.3070203@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1464 Lines: 30 On Thu, Nov 05, 2015 at 09:15:01AM +0100, Vlastimil Babka wrote: > On 11/05/2015 09:09 AM, Joonsoo Kim wrote: > > On Wed, Nov 04, 2015 at 04:00:57PM +0100, Vlastimil Babka wrote: > >> The information in /sys/kernel/debug/page_owner includes the migratetype > >> declared during the page allocation via gfp_flags. This is also checked against > >> the pageblock's migratetype, and reported as Fallback allocation if these two > >> differ (although in fact fallback allocation is not the only reason why they > >> can differ). > >> > >> However, the migratetype actually printed is the one of the pageblock, not of > >> the page itself, so it's the same for all pages in the pageblock. This is > >> apparently a bug, noticed when working on other page_owner improvements. Fixed. > > > > We can guess page migratetype through gfp_mask output although it isn't > > easy task for now. But, there is no way to know pageblock migratetype. > > I used this to know how memory is fragmented. > > Ah, I see. How bout just we print both migratetypes then and remove the > "Fallback" part, which can be trivially deduced from them (and as I noted it's > somewhat misleading anyway)? I'm okay with your new suggestion. Thanks. -- 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/