Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755178Ab2FNBVP (ORCPT ); Wed, 13 Jun 2012 21:21:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54282 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357Ab2FNBVN (ORCPT ); Wed, 13 Jun 2012 21:21:13 -0400 Date: Thu, 14 Jun 2012 03:21:03 +0200 From: Andrea Arcangeli To: Minchan Kim Cc: Kamezawa Hiroyuki , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mel Gorman , Michal Hocko Subject: Re: [PATCH] mm: do not use page_count without a page pin Message-ID: <20120614012103.GY3094@redhat.com> References: <1339373872-31969-1-git-send-email-minchan@kernel.org> <4FD59C31.6000606@jp.fujitsu.com> <20120611074440.GI3094@redhat.com> <20120611133043.GA2340@barrios> <20120611144132.GT3094@redhat.com> <4FD675FE.1060202@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FD675FE.1060202@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 18 On Tue, Jun 12, 2012 at 07:49:34AM +0900, Minchan Kim wrote: > If THP page isn't LRU and it's still PageTransHuge, I think it's rather rare and > although it happens, it means migration/reclaimer is about to split or isolate/putback > so it ends up making THP page movable pages. > > IMHO, it would be better to account it by movable pages. > What do you think about it? Agreed. Besides THP don't fragment pageblocks. It was just about speeding up the scanning the same way it happens with the pagebuddy check, but probably not worth it because we're in a racy area here not holding locks. pagebuddy is safe because the zone lock is hold, or it'd run in the same problem. -- 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/