Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754802AbbLXCse (ORCPT ); Wed, 23 Dec 2015 21:48:34 -0500 Received: from g9t5008.houston.hp.com ([15.240.92.66]:38865 "EHLO g9t5008.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754503AbbLXCsT (ORCPT ); Wed, 23 Dec 2015 21:48:19 -0500 From: "Elliott, Robert (Persistent Memory)" To: Cholerae Hu , Dan Williams CC: 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" Subject: RE: A blocksize problem about dax and ext4 Thread-Topic: A blocksize problem about dax and ext4 Thread-Index: AQHRPXn8bxToPOnbsUmlb/yBrXUup57Y0FsAgAA5STCAADeRgIAACZyAgAAGkACAABtSgIAAAlzA Date: Thu, 24 Dec 2015 02:47:07 +0000 Message-ID: <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@G9W0745.americas.hpqcorp.net> References: <94D0CD8314A33A4D9D801C0FE68B40295BEC985F@G9W0745.americas.hpqcorp.net> <20151224000021.GU19802@dastard> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.210.48.36] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id tBO2mmGF019191 Content-Length: 920 Lines: 21 > -----Original Message----- > From: Cholerae Hu [mailto:choleraehyq@gmail.com] > Sent: Wednesday, December 23, 2015 8:36 PM > Subject: Re: A blocksize problem about dax and ext4 ... > xfs will silently disable dax when the fs block size is too small, > i.e. your mmap() operations are backed by page cache in this case. > Currently the only indication of whether a mapping is DAX backed or > not is the presence of the VM_MIXEDMAP flag ("mm" in the VmFlags field > of /proc//smaps) > > 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. --- Robert Elliott, HPE Persistent Memory ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?