From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935179AbcJUPMq (ORCPT ); Fri, 21 Oct 2016 11:12:46 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34716 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932934AbcJUPMo (ORCPT ); Fri, 21 Oct 2016 11:12:44 -0400 Date: Fri, 21 Oct 2016 17:12:41 +0200 From: Michal Hocko To: "Kirill A. Shutemov" Cc: Dave Chinner , Andi Kleen , Hugh Dickins , "Kirill A. Shutemov" , Andrea Arcangeli , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] shmem: avoid huge pages for small files Message-ID: <20161021151241.GP6045@dhcp22.suse.cz> References: <20161017145539.GA26930@node.shutemov.name> <20161018142007.GL12092@dhcp22.suse.cz> <20161018143207.GA5833@node.shutemov.name> <20161018183023.GC27792@dhcp22.suse.cz> <20161020103946.GA3881@node.shutemov.name> <20161020224630.GO23194@dastard> <20161021020116.GD1075@tassilo.jf.intel.com> <20161021050118.GR23194@dastard> <20161021150007.GA13597@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161021150007.GA13597@node.shutemov.name> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 21-10-16 18:00:07, Kirill A. Shutemov wrote: > On Fri, Oct 21, 2016 at 04:01:18PM +1100, Dave Chinner wrote: [...] > > None of these aspects can be optimised sanely by a single threshold, > > especially when considering the combination of access patterns vs file > > layout. > > I agree. > > Here I tried to address the particular performance regression I see with > huge pages enabled on tmpfs. It doesn't mean to fix all possible issues. So can we start simple and use huge pages on shmem mappings only when they are larger than the huge page? Without any tunable which might turn out to be misleading/wrong later on. If I understand Dave's comments it is really not all that clear that a mount option makes sense. I cannot comment on those but they clearly show that there are multiple points of view here. -- Michal Hocko SUSE Labs