From: Christoph Hellwig Subject: Re: A blocksize problem about dax and ext4 Date: Thu, 24 Dec 2015 02:11:11 -0800 Message-ID: <20151224101111.GA6438@infradead.org> References: <94D0CD8314A33A4D9D801C0FE68B40295BEC985F@G9W0745.americas.hpqcorp.net> <20151224000021.GU19802@dastard> <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@G9W0745.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Cholerae Hu , Dan Williams , Dave Chinner , Ted Tso , "adilger.kernel@dilger.ca" , "linux-nvdimm@lists.01.org" , "linux-ext4@vger.kernel.org" , "xfs@oss.sgi.com" , "linux-kernel@vger.kernel.org" To: "Elliott, Robert (Persistent Memory)" Return-path: Content-Disposition: inline In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@G9W0745.americas.hpqcorp.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Thu, Dec 24, 2015 at 02:47:07AM +0000, Elliott, Robert (Persistent Memory) wrote: > > Did you mean that I should make the blocksize bigger until the mount > > command tell me that dax is enabled? > > To really use DAX, the filesystem block size must match the > system CPU's page size, which is probably 4096 bytes. No, it doesn't. File you use for DAX must be aligne at page size granularity. For XFS you could do this with the per-inode extent size hint for example even if the overall block size is smaller.