From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932257AbcJUCBT (ORCPT ); Thu, 20 Oct 2016 22:01:19 -0400 Received: from mga06.intel.com ([134.134.136.31]:16396 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbcJUCBS (ORCPT ); Thu, 20 Oct 2016 22:01:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,374,1473145200"; d="scan'208";a="182142216" Date: Thu, 20 Oct 2016 19:01:16 -0700 From: Andi Kleen To: Dave Chinner Cc: "Kirill A. Shutemov" , Hugh Dickins , Michal Hocko , "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: <20161021020116.GD1075@tassilo.jf.intel.com> References: <20161017121809.189039-1-kirill.shutemov@linux.intel.com> <20161017123021.rlyz44dsf4l4xnve@black.fi.intel.com> <20161017141245.GC27459@dhcp22.suse.cz> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161020224630.GO23194@dastard> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Ugh, no, please don't use mount options for file specific behaviours > in filesystems like ext4 and XFS. This is exactly the sort of > behaviour that should either just work automatically (i.e. be > completely controlled by the filesystem) or only be applied to files Can you explain what you mean? How would the file system control it? > specifically configured with persistent hints to reliably allocate > extents in a way that can be easily mapped to huge pages. > e.g. on XFS you will need to apply extent size hints to get large > page sized/aligned extent allocation to occur, and so this It sounds like you're confusing alignment in memory with alignment on disk here? I don't see why on disk alignment would be needed at all, unless we're talking about DAX here (which is out of scope currently) Kirill's changes are all about making the memory access for cached data more efficient, it's not about disk layout optimizations. > persistent extent size hint should trigger the filesystem to use > large pages if supported, the hint is correctly sized and aligned, > and there are large pages available for allocation. That would be ioctls and similar? That would imply that every application wanting to use large pages would need to be especially enabled. That would seem awfully limiting to me and needlessly deny benefits to most existing code. -Andi