All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@innominate.de>
To: David Wragg <dpw@doc.ic.ac.uk>
Cc: linux-mm@kvack.org
Subject: Re: Random thoughts on sustained write performance
Date: Sat, 27 Jan 2001 18:23:55 +0100	[thread overview]
Message-ID: <01012718341801.28895@gimli> (raw)
In-Reply-To: <y7rzogdkssm.fsf@sytry.doc.ic.ac.uk>

On Sat, 27 Jan 2001, David Wragg wrote:
> Daniel Phillips <phillips@innominate.de> writes:
> > Actually, this doesn't account for all the slowdown we observe with
> > streaming writes to multimegabyte files in Ext2.  I'm still thinking
> > about what the rest of it might be - Ext2 has been observed to suffer
> > considerably more than this when files get large.
> 
> It might be worth hacking ext2 to save a timestamped log of all the
> reads and writes it does.

Yes, that would be interesting and useful.  Also check out the Linux
Trace Toolkit:

  http://www.opersys.com/LTT/screenshots.html

> > > Could deferred allocation help here, if it's implementated
> > > appropriately?  When writing a page, defer allocation until:
> > > 
> > > - We have all the necessary indirect blocks in memory
> > > 
> > > - And if the indirect block doesn't give an allocation for the page,
> > > and we have filled the relevant block bitmap, defer further until we
> > > have a block bitmap that does have free space.
> > > 
> > > A write would still have to wait until the metadata reads its location
> > > depends on were done, but it wouldn't cause later writes to stall.
> > 
> > Yes, correct.  Deferred allocation could let us run some filesystem
> > transactions in parallel with the needed metadata reads.  Did you see
> > my "[RFC] Generic deferred file writing" patch on lkml?  For each page
> > in the generic_file_write we'd call the filesystem and it would
> > initiate IO for the needed metadata.  The last of these reads could be
> > asynchronous, and just prior to carrying out the deferred writes we'd
> > wait for all the metadata reads to complete.  This hack would most
> > likely be good for a few percent throughput improvement. It's a
> > subtle point, isn't it? 
> 
> What's the reason for only making the last read asynchronous, rather
> than all of them?

You don't know the block number of the bottom-level index block until
you read its parents.

-- 
Daniel
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  reply	other threads:[~2001-01-27 17:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-23 13:56 limit on number of kmapped pages David Wragg
2001-01-23 18:23 ` Eric W. Biederman
2001-01-23 18:23   ` Eric W. Biederman
2001-01-24  0:35   ` David Wragg
2001-01-24  0:35     ` David Wragg
2001-01-24  2:03     ` Benjamin C.R. LaHaise
2001-01-24  2:03       ` Benjamin C.R. LaHaise
2001-01-24 10:09       ` David Wragg
2001-01-24 10:09         ` David Wragg
2001-01-24 14:27         ` Eric W. Biederman
2001-01-24 14:27           ` Eric W. Biederman
2001-01-25 10:06         ` Random thoughts on sustained write performance Daniel Phillips
2001-01-25 10:06           ` Daniel Phillips
     [not found]           ` <y7rsnm7mai7.fsf@sytry.doc.ic.ac.uk>
     [not found]             ` <01012615062602.20169@gimli>
2001-01-27 13:50               ` David Wragg
2001-01-27 17:23                 ` Daniel Phillips [this message]
2001-01-27 21:23                   ` David Wragg
2001-01-25 18:16     ` limit on number of kmapped pages Stephen C. Tweedie
2001-01-25 18:16       ` Stephen C. Tweedie
2001-01-25 23:53       ` David Wragg
2001-01-25 23:53         ` David Wragg

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=01012718341801.28895@gimli \
    --to=phillips@innominate.de \
    --cc=dpw@doc.ic.ac.uk \
    --cc=linux-mm@kvack.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.