[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190215180852.GJ12668@bombadil.infradead.org>
Date: Fri, 15 Feb 2019 10:08:52 -0800
From: Matthew Wilcox <willy@...radead.org>
To: Christopher Lameter <cl@...ux.com>
Cc: Dave Chinner <david@...morbit.com>,
Jerome Glisse <jglisse@...hat.com>,
Jason Gunthorpe <jgg@...pe.ca>,
Dan Williams <dan.j.williams@...el.com>,
Jan Kara <jack@...e.cz>, Doug Ledford <dledford@...hat.com>,
Ira Weiny <ira.weiny@...el.com>,
lsf-pc@...ts.linux-foundation.org,
linux-rdma <linux-rdma@...r.kernel.org>,
Linux MM <linux-mm@...ck.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
John Hubbard <jhubbard@...dia.com>,
Michal Hocko <mhocko@...nel.org>
Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving
longterm-GUP usage by RDMA
On Fri, Feb 15, 2019 at 03:42:02PM +0000, Christopher Lameter wrote:
> On Fri, 15 Feb 2019, Dave Chinner wrote:
>
> > Which tells us filesystem people that the applications are doing
> > something that _will_ cause data corruption and hence not to spend
> > any time triaging data corruption reports because it's not a
> > filesystem bug that caused it.
> >
> > See open(2):
> >
> > Applications should avoid mixing O_DIRECT and normal I/O to
> > the same file, and especially to overlapping byte regions in
> > the same file. Even when the filesystem correctly handles
> > the coherency issues in this situation, overall I/O
> > throughput is likely to be slower than using either mode
> > alone. Likewise, applications should avoid mixing mmap(2)
> > of files with direct I/O to the same files.
>
> Since RDMA is something similar: Can we say that a file that is used for
> RDMA should not use the page cache?
That makes no sense. The page cache is the standard synchronisation point
for filesystems and processes. The only problems come in for the things
which bypass the page cache like O_DIRECT and DAX.
Powered by blists - more mailing lists