Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755536Ab1FTRTp (ORCPT ); Mon, 20 Jun 2011 13:19:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57312 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755502Ab1FTRTn (ORCPT ); Mon, 20 Jun 2011 13:19:43 -0400 Message-ID: <4DFF8106.8090702@redhat.com> Date: Tue, 21 Jun 2011 01:19:02 +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: Rik van Riel CC: Mel Gorman , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Andrea Arcangeli , Johannes Weiner , KAMEZAWA Hiroyuki , linux-mm@kvack.org Subject: Re: [PATCH 1/3] mm: completely disable THP by transparent_hugepage=never References: <1308587683-2555-1-git-send-email-amwang@redhat.com> <20110620165844.GA9396@suse.de> <4DFF7E3B.1040404@redhat.com> <4DFF7F0A.8090604@redhat.com> In-Reply-To: <4DFF7F0A.8090604@redhat.com> 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 Content-Length: 1522 Lines: 38 于 2011年06月21日 01:10, Rik van Riel 写道: > On 06/20/2011 01:07 PM, Cong Wang wrote: >> 于 2011年06月21日 00:58, Mel Gorman 写道: >>> On Tue, Jun 21, 2011 at 12:34:28AM +0800, Amerigo Wang wrote: >>>> transparent_hugepage=never should mean to disable THP completely, >>>> otherwise we don't have a way to disable THP completely. >>>> The design is broken. >>>> >>> >>> I don't get why it's broken. Why would the user be prevented from >>> enabling it at runtime? >>> >> >> We need to a way to totally disable it, right? Otherwise, when I configure >> THP in .config, I always have THP initialized even when I pass "=never". >> >> For me, if you don't provide such way to disable it, it is not flexible. >> >> I meet this problem when I try to disable THP in kdump kernel, there is >> no user of THP in kdump kernel, THP is a waste for kdump kernel. This is >> why I need to find a way to totally disable it. > > What you have not explained yet is why having THP > halfway initialized (but not used, and without a > khugepaged thread) is a problem at all. > > Why is it a problem for you? It occupies some memory, memory is valuable in kdump kernel (usually only 128M). :) Since I am sure no one will use it, why do I still need to initialize it at all? Thanks. -- 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/