From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756467AbcBIXPH (ORCPT ); Tue, 9 Feb 2016 18:15:07 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38822 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756208AbcBIXPB (ORCPT ); Tue, 9 Feb 2016 18:15:01 -0500 Date: Wed, 10 Feb 2016 01:14:57 +0200 From: "Kirill A. Shutemov" To: Andrew Morton Cc: "Aneesh Kumar K.V" , mpe@ellerman.id.au, "Kirill A. Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables Message-ID: <20160209231457.GB22327@node.shutemov.name> References: <1455034304-15301-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <20160209132608.814f08a0c3670b4f9d807441@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160209132608.814f08a0c3670b4f9d807441@linux-foundation.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2016 at 01:26:08PM -0800, Andrew Morton wrote: > On Tue, 9 Feb 2016 21:41:44 +0530 "Aneesh Kumar K.V" wrote: > > @@ -660,6 +660,18 @@ static int __init hugepage_init(void) > > return -EINVAL; > > } > > > > + khugepaged_pages_to_scan = HPAGE_PMD_NR * 8; > > + khugepaged_max_ptes_none = HPAGE_PMD_NR - 1; > > I don't understand this change. We change the initialization from > at-compile-time to at-run-time, but nothing useful appears to have been > done. It's preparation patch. HPAGE_PMD_NR is going to be based on variable on Power soon. Compile-time is not an option. -- Kirill A. Shutemov