linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Andi Kleen <ak@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>,
	akpm@osdl.org, linux-mm@kvack.org,
	ext2-devel@lists.sourceforge.net
Subject: Re: [Ext2-devel] ext3 fsync being starved for a long time by cp and cronjob
Date: Sat, 26 Aug 2006 00:14:22 -0400	[thread overview]
Message-ID: <20060826041422.GA2397@thunk.org> (raw)
In-Reply-To: <200608251430.56655.ak@suse.de>

On Fri, Aug 25, 2006 at 02:30:56PM +0200, Andi Kleen wrote:
> So you think it's the elevator? I was about to blame JBD.

Earlier in the thread, you said:

>Background load is a large cp from the same fs to a tmpfs and a cron job
>doing random cron job stuff. All on a single sata disk with a 28G partition.

That doesn't sound like you are doing anything that would result in a
lot of ext3 journal activity (unless there's something strange running
out of your cron scripts).

As such, it's hard to see how this would be an JBD issue.  Ext3 might
have been in the middle of doing a synchronous write of a commit
block, which might have been getting starved by an elevator which
prioritizes read traffic ahead of write traffic, but it doesn't sound
like it's due to the excessive journal traffic.

So if you're focused on allocating blame :-), it's probably both ext3
and the elevator code equally at fault.  I suspect what we need is a
way of informing the elevator that when ext3 is writing commit records
or other writes that block filesystem I/O, that these synchronous
writes should be prioritized about other (asynchronous) write traffic.
This hint would have to be passed through the buffer cache layer,
since the jbd layer is still using buffer heads.

Regards,

						- Ted

--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2006-08-26  4:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-25 11:53 Andi Kleen
2006-08-25 12:07 ` Jens Axboe
2006-08-25 12:22   ` Andi Kleen
2006-08-25 12:26     ` Jens Axboe
2006-08-25 12:30       ` Andi Kleen
2006-08-25 12:34         ` Jens Axboe
2006-08-25 12:51           ` Andi Kleen
2006-08-26  4:14         ` Theodore Tso [this message]
2006-08-26 10:04           ` [Ext2-devel] " Andi Kleen

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=20060826041422.GA2397@thunk.org \
    --to=tytso@mit.edu \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=axboe@kernel.dk \
    --cc=ext2-devel@lists.sourceforge.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox