Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757140AbbEVO22 (ORCPT ); Fri, 22 May 2015 10:28:28 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:34594 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755795AbbEVO20 (ORCPT ); Fri, 22 May 2015 10:28:26 -0400 Date: Fri, 22 May 2015 16:28:24 +0200 From: Michal Hocko To: Johannes Weiner Cc: Andrew Morton , Mel Gorman , Naoya Horiguchi , linux-mm@kvack.org, LKML Subject: Re: [PATCH] hugetlb: Do not account hugetlb pages as NR_FILE_PAGES Message-ID: <20150522142824.GG5109@dhcp22.suse.cz> References: <1432214842-22730-1-git-send-email-mhocko@suse.cz> <20150521170909.GA12800@cmpxchg.org> <20150522142143.GF5109@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150522142143.GF5109@dhcp22.suse.cz> 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: 1091 Lines: 27 On Fri 22-05-15 16:21:43, Michal Hocko wrote: > On Thu 21-05-15 13:09:09, Johannes Weiner wrote: [...] > > This makes a lot of sense to me. The only thing I worry about is the > > proliferation of PageHuge(), a function call, in relatively hot paths. > > I've tried that (see the patch below) but it enlarged the code by almost > 1k > text data bss dec hex filename > 510323 74273 44440 629036 9992c mm/built-in.o.before > 511248 74273 44440 629961 99cc9 mm/built-in.o.after > > I am not sure the code size increase is worth it. Maybe we can reduce > the check to only PageCompound(page) as huge pages are no in the page > cache (yet). Just to prevent from confusion. I means to reduce the check only for this particular case. But that is probably not worth the troubles either... -- Michal Hocko SUSE Labs -- 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/