From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756683Ab1FUN4K (ORCPT ); Tue, 21 Jun 2011 09:56:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47728 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978Ab1FUN4J (ORCPT ); Tue, 21 Jun 2011 09:56:09 -0400 Date: Tue, 21 Jun 2011 15:30:53 +0200 From: Andrea Arcangeli To: Amerigo Wang Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Randy Dunlap , 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 Message-ID: <20110621133053.GO20843@redhat.com> References: <1308643849-3325-1-git-send-email-amwang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1308643849-3325-1-git-send-email-amwang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 21, 2011 at 04:10:42PM +0800, 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. > I think I already clarified this is not worth it. Removing sysfs registration is just pointless. If you really want to save ~8k of RAM, at most you can try to move the init of the khugepaged slots hash and the kmem_cache_init to the khugepaged deamon start but even that isn't so useful. Not registering into sysfs is just pointless and it's a gratuitous loss of a feature. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id B37AB90013A for ; Tue, 21 Jun 2011 09:56:07 -0400 (EDT) Date: Tue, 21 Jun 2011 15:30:53 +0200 From: Andrea Arcangeli Subject: Re: [PATCH v2 1/4] mm: completely disable THP by transparent_hugepage=0 Message-ID: <20110621133053.GO20843@redhat.com> References: <1308643849-3325-1-git-send-email-amwang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1308643849-3325-1-git-send-email-amwang@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Amerigo Wang Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Randy Dunlap , Rik van Riel , Johannes Weiner , KAMEZAWA Hiroyuki , linux-doc@vger.kernel.org, linux-mm@kvack.org On Tue, Jun 21, 2011 at 04:10:42PM +0800, 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. > I think I already clarified this is not worth it. Removing sysfs registration is just pointless. If you really want to save ~8k of RAM, at most you can try to move the init of the khugepaged slots hash and the kmem_cache_init to the khugepaged deamon start but even that isn't so useful. Not registering into sysfs is just pointless and it's a gratuitous loss of a feature. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org