From: Chris Mason <chris.mason@oracle.com>
To: David Chinner <dgc@sgi.com>
Cc: "Jörn Engel" <joern@logfs.org>, "David Chinner" <dgc@sgi.com>,
"Nick Piggin" <npiggin@suse.de>, "Rik van Riel" <riel@redhat.com>,
"Zach Brown" <zach.brown@oracle.com>,
"Anton Altaparmakov" <aia21@cam.ac.uk>,
"Suparna Bhattacharya" <suparna@in.ibm.com>,
"Christoph Hellwig" <hch@infradead.org>,
"Hugh Dickins" <hugh@veritas.com>,
"Jared Hulbert" <jaredeh@gmail.com>,
"Martin J. Bligh" <mbligh@mbligh.org>,
"Trond Myklebust" <trond.myklebust@fys.uio.no>,
"Neil Brown" <neilb@suse.de>,
"Miklos Szeredi" <miklos@szeredi.hu>,
"Mingming Cao" <cmm@us.ibm.com>,
"Linux Memory Management List" <linux-mm@kvack.org>,
linux-fsdevel@vger.kernel.org,
"Evgeniy Polyakov" <johnpol@2ka.mipt.ru>,
"Steven Whitehouse" <steve@chygwyn.com>,
"Dave McCracken" <dave.mccracken@oracle.com>,
"Peter Zijlstra" <peterz@infradead.org>
Subject: Re: vm/fs meetup details
Date: Fri, 6 Jul 2007 09:52:14 -0400 [thread overview]
Message-ID: <20070706095214.1ac9da94@think.oraclecorp.com> (raw)
In-Reply-To: <20070706134201.GL31489@sgi.com>
On Fri, 6 Jul 2007 23:42:01 +1000
David Chinner <dgc@sgi.com> wrote:
> On Fri, Jul 06, 2007 at 12:26:23PM +0200, Jörn Engel wrote:
> > On Fri, 6 July 2007 20:01:10 +1000, David Chinner wrote:
> > > On Fri, Jul 06, 2007 at 04:26:51AM +0200, Nick Piggin wrote:
> > >
> > > But, surprisingly enough, the above work is relevent to this
> > > forum because of two things:
> > >
> > > - we've had to move to direct I/O and user space caching
> > > to work around deficiencies in kernel block device caching under
> > > memory pressure....
> > >
> > > - we've exploited techniques that XFS supports but the VM
> > > does not. i.e. priority tagging of cached metadata so that less
> > > important metadata is tossed first (e.g. toss tree leaves before
> > > nodes and nodes before roots) when under memory pressure.
> >
> > And the latter is exactly what logfs needs as well. You certainly
> > have me interested.
> >
> > I believe it applies to btrfs and any other cow-fs as well. The
> > point is that higher levels get dirtied by writing lower layers.
> > So perfect behaviour for sync is to write leaves first, then nodes,
> > then the root. Any other order will either cause sync not to sync
> > or cause unnecessary writes and cost performance.
>
> Hmmm - I guess you could use it for writeback ordering. I hadn't
> really thought about that. Doesn't seem a particularly efficient way
> of doing it, though. Why not just use multiple address spaces for
> this? i.e. one per level and flush in ascending order.
>
At least in the case of btrfs, the perfect order for sync is disk
order ;) COW happens when blocks are changed for the first time in a
transaction, not when they are written out to disk. If logfs is
writing things out some form of tree order, you're going to have to
group disk allocations such that tree order reflects disk order somehow.
But, the part where we toss leaves first is definitely useful.
-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-07-06 13:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 4:01 vm/fs meetup details Nick Piggin
2007-07-05 14:32 ` Peter Zijlstra
2007-07-05 17:54 ` Rik van Riel
2007-07-05 20:40 ` Zach Brown
2007-07-05 21:27 ` David Chinner
2007-07-05 21:40 ` Rik van Riel
2007-07-06 2:26 ` Nick Piggin
2007-07-06 10:01 ` David Chinner
2007-07-06 10:26 ` Jörn Engel
2007-07-06 13:42 ` David Chinner
2007-07-06 13:52 ` Chris Mason [this message]
2007-07-06 15:57 ` Jörn Engel
2007-07-06 15:58 ` Steven Whitehouse
2007-07-06 23:47 ` Neil Brown
2007-07-06 2:00 ` Nick Piggin
2007-07-06 20:40 ` Christoph Lameter
2007-07-07 10:45 ` Jörn Engel
2007-07-08 23:29 ` David Chinner
2007-07-09 0:27 ` Jörn Engel
2007-07-09 15:53 ` Martin Bligh
2007-07-27 14:30 ` Dave Kleikamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070706095214.1ac9da94@think.oraclecorp.com \
--to=chris.mason@oracle.com \
--cc=aia21@cam.ac.uk \
--cc=cmm@us.ibm.com \
--cc=dave.mccracken@oracle.com \
--cc=dgc@sgi.com \
--cc=hch@infradead.org \
--cc=hugh@veritas.com \
--cc=jaredeh@gmail.com \
--cc=joern@logfs.org \
--cc=johnpol@2ka.mipt.ru \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mbligh@mbligh.org \
--cc=miklos@szeredi.hu \
--cc=neilb@suse.de \
--cc=npiggin@suse.de \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
--cc=steve@chygwyn.com \
--cc=suparna@in.ibm.com \
--cc=trond.myklebust@fys.uio.no \
--cc=zach.brown@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).