xfs
[Top] [All Lists]

Re: A blocksize problem about dax and ext4

To: "Elliott, Robert (Persistent Memory)" <elliott@xxxxxxx>
Subject: Re: A blocksize problem about dax and ext4
From: Cholerae Hu <choleraehyq@xxxxxxxxx>
Date: Thu, 24 Dec 2015 12:13:26 +0800
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Ted Tso <tytso@xxxxxxx>, "adilger.kernel@xxxxxxxxx" <adilger.kernel@xxxxxxxxx>, "linux-nvdimm@xxxxxxxxxxxx" <linux-nvdimm@xxxxxxxxxxxx>, "linux-ext4@xxxxxxxxxxxxxxx" <linux-ext4@xxxxxxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EKvf64h/kHvR3YP4oQVMEBejcvqml21inIFp6ejchiM=; b=rLtAKOTkW8hYuTYHebkswCsWMWqLBWg7YrDCjlLb0qwOsM5oOkjvhr0Q26kfqiO1g+ RUiRNyp6hNTZ24jfXPswcavjRixL0pN9bIm0a2WgQhdGQE6TaXe2Fep5ple/XZCNvZyx QSq51S8xDk1QvvGyYjFvLwsl/SHFEcucBUJ1O6y44dxU4jAV3eYRIuI9ZSJ9Uk8HqkzS lhaQBio8Pkk8hJy3uxpBLynJ/aHnruP2PiBsqAXd+3zMTIQ1wCVdujm+awWjO4TJ4p8/ 655rMEbFsRUlni5qQ6k78CFNTXy0SVkERiQYrezJgSB9rcmYLNE23lA4i0eh2JiQTA+8 EWzg==
In-reply-to: <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <CAM=YXF-aXxp19=uFDExUswpEfKXNN6LJScxAB-7-u-AgRiXJ2g@xxxxxxxxxxxxxx> <CAPcyv4gYHuSWuugnELSO6B1rye+b89io3zJVUXwRt0wE1ZfPrA@xxxxxxxxxxxxxx> <94D0CD8314A33A4D9D801C0FE68B40295BEC985F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20151224000021.GU19802@dastard> <CAM=YXF9Dt-BuY9yM7d023a16gp=edGHeCDVTCwV-AEotj6sbFg@xxxxxxxxxxxxxx> <CAPcyv4g1eHgm8oUvxFaJkRD-T7jAyw95FQ-q3_GC2JU_kkU-Kg@xxxxxxxxxxxxxx> <CAM=YXF-wZEhodxVRN8nqyH9Vg7t85ut2-0PnEn9OvhpG_jX3mA@xxxxxxxxxxxxxx> <94D0CD8314A33A4D9D801C0FE68B40295BEC9CDD@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxx>:
> -----Original Message-----
> From: Cholerae Hu [mailto:choleraehyq@xxxxxxxxx]
> 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/<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


<Prev in Thread] Current Thread [Next in Thread>