From: Cholerae Hu Subject: Re: A blocksize problem about dax and ext4 Date: Thu, 24 Dec 2015 12:13:26 +0800 Message-ID: References: <94D0CD8314A33A4D9D801C0FE68B40295BEC985F@G9W0745.americas.hpqcorp.net> <20151224000021.GU19802@dastard> <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@G9W0745.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0646539351401245494==" Cc: Ted Tso , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "xfs@oss.sgi.com" , "adilger.kernel@dilger.ca" , Dan Williams , "linux-ext4@vger.kernel.org" To: "Elliott, Robert (Persistent Memory)" Return-path: In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@G9W0745.americas.hpqcorp.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com List-Id: linux-ext4.vger.kernel.org --===============0646539351401245494== Content-Type: multipart/alternative; boundary=001a114fa8ac77890605279d0f66 --001a114fa8ac77890605279d0f66 Content-Type: text/plain; charset=UTF-8 I used ext4 and set the blocksize to 4096, the mount command was silent. Does it indicate that dax has already been enabled? 2015-12-24 10:47 GMT+08:00 Elliott, Robert (Persistent Memory) < elliott@hpe.com>: > > -----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 > > --001a114fa8ac77890605279d0f66 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I used ext4 and set the blocksize to 4096, the mount comma= nd was silent. Does it indicate that dax has already been enabled?

2015-12-24 10:47 GMT= +08:00 Elliott, Robert (Persistent Memory) <elliott@hpe.com>:<= br>
> -----Original Messa= ge-----
> From: Cholerae Hu [mailto:cho= leraehyq@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 VmF= lags field
> of /proc/<pid>/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


--001a114fa8ac77890605279d0f66-- --===============0646539351401245494== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============0646539351401245494==--