RE: A blocksize problem about dax and ext4

2015-12-24 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Thursday, December 24, 2015 4:11 AM > Subject: Re: A blocksize problem about dax and ext4 > > On Thu, Dec 24, 2015 at 02:47:07AM +, Elliott, Robert (Persistent > Memory) wrote: &g

Re: A blocksize problem about dax and ext4

2015-12-24 Thread Christoph Hellwig
On Thu, Dec 24, 2015 at 02:47:07AM +, 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

RE: A blocksize problem about dax and ext4

2015-12-23 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Cholerae Hu [mailto:cholerae...@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() operat

Re: A blocksize problem about dax and ext4

2015-12-23 Thread Dan Williams
On Wed, Dec 23, 2015 at 4:34 PM, Cholerae Hu wrote: > The block size is 1024. > # dumpe2fs -h /dev/pmem0 | grep "Block size" > dumpe2fs 1.42.13 (17-May-2015) > Block size: 1024 > > I tried it out on xfs and I succeeded. There are the prompting messages: > # mkfs.xfs -f -b size=1024 /

Re: A blocksize problem about dax and ext4

2015-12-23 Thread Dave Chinner
t; To: Cholerae Hu > > Cc: linux-nvd...@lists.01.org > > Subject: Re: A blocksize problem about dax and ext4 > > > > On Wed, Dec 23, 2015 at 4:03 AM, Cholerae Hu > > wrote: > ... > > > [root@localhost cholerae]# mount -o dax /dev/pmem0 /m

RE: A blocksize problem about dax and ext4

2015-12-23 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of > Dan Williams > Sent: Wednesday, December 23, 2015 11:16 AM > To: Cholerae Hu > Cc: linux-nvd...@lists.01.org > Subject: Re: A blocksize problem about dax and ext4 >