Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbaB0WAD (ORCPT ); Thu, 27 Feb 2014 17:00:03 -0500 Received: from mga02.intel.com ([134.134.136.20]:28229 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbaB0WAA (ORCPT ); Thu, 27 Feb 2014 17:00:00 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,557,1389772800"; d="scan'208";a="491159126" Message-ID: <530FB55F.2070106@linux.intel.com> Date: Thu, 27 Feb 2014 13:59:59 -0800 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , Mel Gorman , Rik van Riel CC: Andi Kleen , Matthew Wilcox , Alexander Viro , Dave Chinner , Ning Qu , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 1/2] mm: introduce vm_ops->map_pages() References: <1393530827-25450-1-git-send-email-kirill.shutemov@linux.intel.com> <1393530827-25450-2-git-send-email-kirill.shutemov@linux.intel.com> In-Reply-To: <1393530827-25450-2-git-send-email-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2014 11:53 AM, Kirill A. Shutemov wrote: > +#define FAULT_AROUND_ORDER 4 > +#define FAULT_AROUND_PAGES (1UL << FAULT_AROUND_ORDER) > +#define FAULT_AROUND_MASK ~((1UL << (PAGE_SHIFT + FAULT_AROUND_ORDER)) - 1) Looking at the performance data made me think of this: do we really want this to be static? It seems like the kind of thing that will cause a regression _somewhere_. Also, the folks with larger base bage sizes probably don't want a FAULT_AROUND_ORDER=4. That's 1MB of fault-around for ppc64, for example. -- 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/