linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Theodore Tso <tytso@mit.edu>
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 12:04:17 +0200	[thread overview]
Message-ID: <200608261204.17944.ak@suse.de> (raw)
In-Reply-To: <20060826041422.GA2397@thunk.org>

On Saturday 26 August 2006 06:14, Theodore Tso wrote:

> >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).

(looking through the process list again)

kmail was doing some write IO, not sure how much.

So yes.

> So if you're focused on allocating blame :-), 

I would be mostly interested in a solution.

(sorry "assigning blame" is a SUSE tongue-in-cheek and just means the 
first step in debugging when you try to figure out which subsystem
to look at. It wasn't meant as in to blame some person of 
wrong-doing.) 

> 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.

Hmm, I thought CFQ currently only looked at processes for priority,
but maybe it's possible to add temporary boosts. Jens? 

Or maybe just run kjournald always with a high io priority? I assume
it mostly does journal IO and not much else, right?

-Andi

--
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>

      reply	other threads:[~2006-08-26 10:04 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         ` [Ext2-devel] " Theodore Tso
2006-08-26 10:04           ` Andi Kleen [this message]

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=200608261204.17944.ak@suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=axboe@kernel.dk \
    --cc=ext2-devel@lists.sourceforge.net \
    --cc=linux-mm@kvack.org \
    --cc=tytso@mit.edu \
    /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