From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757879Ab1FVDIx (ORCPT ); Tue, 21 Jun 2011 23:08:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58983 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757528Ab1FVDIv (ORCPT ); Tue, 21 Jun 2011 23:08:51 -0400 Message-ID: <4E015CB8.1010300@redhat.com> Date: Wed, 22 Jun 2011 11:08:40 +0800 From: Cong Wang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: David Rientjes CC: linux-kernel@vger.kernel.org, Andrew Morton , Randy Dunlap , Andrea Arcangeli , Rik van Riel , Johannes Weiner , KAMEZAWA Hiroyuki , linux-doc@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 1/4] mm: completely disable THP by transparent_hugepage=0 References: <1308643849-3325-1-git-send-email-amwang@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2011年06月22日 09:16, David Rientjes 写道: > On Tue, 21 Jun 2011, Amerigo Wang wrote: > >> Introduce "transparent_hugepage=0" to totally disable THP. >> "transparent_hugepage=never" means setting THP to be partially >> disabled, we need a new way to totally disable it. >> > > Why can't you just compile it off so you never even compile > mm/huge_memory.c in the first place and save the space in the kernel image > as well? Having the interface available to enable the feature at runtime > is worth the savings this patch provides, in my opinion. https://lkml.org/lkml/2011/6/20/506