<div dir="ltr">I used ext4 and set the blocksize to 4096, the mount command was silent. Does it indicate that dax has already been enabled?</div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-24 10:47 GMT+08:00 Elliott, Robert (Persistent Memory) <span dir="ltr"><<a href="mailto:elliott@hpe.com" target="_blank">elliott@hpe.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> -----Original Message-----<br>
> From: Cholerae Hu [mailto:<a href="mailto:choleraehyq@gmail.com">choleraehyq@gmail.com</a>]<br>
> Sent: Wednesday, December 23, 2015 8:36 PM<br>
> Subject: Re: A blocksize problem about dax and ext4<br>
</span><span class="">...<br>
> xfs will silently disable dax when the fs block size is too small,<br>
> i.e. your mmap() operations are backed by page cache in this case.<br>
> Currently the only indication of whether a mapping is DAX backed or<br>
> not is the presence of the VM_MIXEDMAP flag ("mm" in the VmFlags field<br>
> of /proc/<pid>/smaps)<br>
><br>
> Did you mean that I should make the blocksize bigger until the mount<br>
> command tell me that dax is enabled?<br>
<br>
</span>To really use DAX, the filesystem block size must match the<br>
system CPU's page size, which is probably 4096 bytes.<br>
<div class="HOEnZb"><div class="h5"><br>
---<br>
Robert Elliott, HPE Persistent Memory<br>
<br>
</div></div></blockquote></div><br></div>