mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Badari Pulavarty <pbadari@us.ibm.com>
To: Jan Kara <jack@suse.cz>
Cc: Cliff White <cliffw@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>,
	suparna@in.ibm.com
Subject: Re: 2.6.12-rc2 + rc3: reaim with ext3 - system stalls.
Date: 06 May 2005 08:06:53 -0700	[thread overview]
Message-ID: <1115392011.26913.930.camel@dyn318077bld.beaverton.ibm.com> (raw)
In-Reply-To: <20050506101434.GC25677@atrey.karlin.mff.cuni.cz>

On Fri, 2005-05-06 at 03:14, Jan Kara wrote:
>   Hello Badari!
> 
> > I have an extremely simple patch to fix the problem.
> > Basically, move the journal_start_handle from writepages()
> > to ext3_writepages_get_block() (which gets called after locking
> > the page). What am I missing here ? The patch can't
> > be that simple :(
>   Umm. I think this change does not help much - you solve the problem
> for the first page but then you unlock that page and you'd like to lock
> the next one and you're again in trouble (trying to acquire PageLock
> wile holding transaction open).
>   I can see three solutions of the problem:
> Either do ext3_journal_start/stop for each page - you should be actually
> getting the handle of the same transaction until the transaction gets
> filled. But still you'll have some overhead of the calls in JBD. I
> actually don't see much difference to the approach we used before your
> patch but probably there's some.

I will patch it and find out if it buys anything. I am not hopeful
either.

>   Or rewrite __mpage_writepages() to lock a page range (e.g. lock pages
> until we find some on which we'd block) and then call some filesystem
> routine to write-out all the locked pages (which would start a
> transaction and so on). But this is more work.

We are re-writing mpage_writepages() anyway for supporting delayed
and multiblock allocation. So I will talk to Suparna and see if we
can do this also. But this requires more calls to figure out, if we
need block allocation and then start the transaction. (getblock(READ)
followed by getblock(WRITE) after starting transaction). Isn't it ?

>   Finally there's the theoretical ;) possibility to rewrite all the
> write-out code and change the lock ordering to journal->PageLock...
> 

Its beyond my capabilities :(

Thanks,
Badari


  reply	other threads:[~2005-05-06 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 22:23 cliff white
2005-05-03 14:43 ` Jan Kara
2005-05-03 15:01   ` Badari Pulavarty
2005-05-03 15:32     ` cliff white
2005-05-04 16:02     ` Cliff White
2005-05-05 17:57       ` Badari Pulavarty
2005-05-06 10:14         ` Jan Kara
2005-05-06 15:06           ` Badari Pulavarty [this message]
2005-05-09  9:25             ` Jan Kara

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=1115392011.26913.930.camel@dyn318077bld.beaverton.ibm.com \
    --to=pbadari@us.ibm.com \
    --cc=akpm@osdl.org \
    --cc=cliffw@osdl.org \
    --cc=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suparna@in.ibm.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

all inboxes | Powered by JetHome®