| To: | Jan Kara <jack@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v2 00/11] DAX fsynx/msync support |
| From: | Dan Williams <dan.j.williams@xxxxxxxxx> |
| Date: | Mon, 16 Nov 2015 08:58:11 -0800 |
| Cc: | Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, "J. Bruce Fields" <bfields@xxxxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>, Andreas Dilger <adilger.kernel@xxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Jan Kara <jack@xxxxxxxx>, Jeff Layton <jlayton@xxxxxxxxxxxxxxx>, Matthew Wilcox <willy@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, linux-ext4 <linux-ext4@xxxxxxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, Linux MM <linux-mm@xxxxxxxxx>, "linux-nvdimm@xxxxxxxxxxxx" <linux-nvdimm@xxxxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, XFS Developers <xfs@xxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kXkmsLCKRQlIbRLj9yKRsgJHRGHreRgXFcHhutQ37Ig=; b=Ddtaw15TapAL/Q+Y+BIpOYnEd348VYVXnmVZzdeT1VSfLGtR6cgckgO6g/wwj1n2uU Hco448IPeQr1HM+CIjfYbsHHRwHaFybAoTqBtUxFxaby9xMOliiQvAmf6awAvTqSNBOb 8LVMrSBhi4I1BSP1q/1nw5nrtJzx1bNzBcgHrxTTsXVpjWmeJ1mAb0+cEg0rwJjIwCWA iWwsXKHWLi3wsXBmr+6EVgme+dmL3ndhKmRRpduZiXsivRHHT4dbonHqYTYMg9N24ahO jRgvmAKi8+YRAFnKkjfJCXQZs+Hq429mdKDn+pEZJ1pct722RC9fnbg3jcMa3pkIK1BI ITmw== |
| In-reply-to: | <20151116144130.GD3443@xxxxxxxxxxxxx> |
| References: | <1447459610-14259-1-git-send-email-ross.zwisler@xxxxxxxxxxxxxxx> <20151116144130.GD3443@xxxxxxxxxxxxx> |
On Mon, Nov 16, 2015 at 6:41 AM, Jan Kara <jack@xxxxxxx> wrote: > On Fri 13-11-15 17:06:39, Ross Zwisler wrote: >> This patch series adds support for fsync/msync to DAX. >> >> Patches 1 through 7 add various utilities that the DAX code will eventually >> need, and the DAX code itself is added by patch 8. Patches 9-11 update the >> three filesystems that currently support DAX, ext2, ext4 and XFS, to use >> the new DAX fsync/msync code. >> >> These patches build on the recent DAX locking changes from Dave Chinner, >> Jan Kara and myself. Dave's changes for XFS and my changes for ext2 have >> been merged in the v4.4 window, but Jan's are still unmerged. You can grab >> them here: >> >> http://www.spinics.net/lists/linux-ext4/msg49951.html > > I had a quick look and the patches look sane to me. I'll try to give them > more detailed look later this week. When thinking about the general design > I was wondering: When we have this infrastructure to track data potentially > lingering in CPU caches, would not it be a performance win to use standard > cached stores in dax_io() and mark corresponding pages as dirty in page > cache the same way as this patch set does it for mmaped writes? I have no > idea how costly are non-temporal stores compared to cached ones and how > would this compare to the cost of dirty tracking so this may be just > completely bogus... Keep in mind that this approach will flush every virtual address that may be dirty. For example, if you touch 1byte in a 2MB page we'll end up looping through the entire 2MB range. At some point the dirty size becomes large enough that is cheaper to flush the entire cache, we have not measured where that crossover point is. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: memory reclaim problems on fs usage, Michal Hocko |
|---|---|
| Next by Date: | Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling, Dan Williams |
| Previous by Thread: | Re: [PATCH v2 00/11] DAX fsynx/msync support, Jan Kara |
| Next by Thread: | Re: [PATCH v2 00/11] DAX fsynx/msync support, Ross Zwisler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |