Re: Enable asynchronous commits by default patch revoked?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Dilger
Date: Monday, August 24, 2009 - 3:46 pm

On Aug 24, 2009  18:07 -0400, Theodore Ts'o wrote:

Hmm, I think you are missing a step here.  In both jbd and jbd2 there is
a wait for these buffers to hit the disk.  In the jbd case it is at
"commit phase 2", and in jbd2 it is at "wait_for_iobuf".


Similarly, in the async case, all of the data blocks and the commit
block are waited on, AFAICS.  It's just that with async_commit the
commit block is submitted with the data blocks, and in case of a
crash the transaction checksum is needed to determine if the commit
block is valid or not.


Since a barrier is a painful operation, it is better to just wait
explicitly on the completion of the various blocks as needed (i.e.
journal data + commit block).  That avoids the huge wait on many
other blocks that may have been sent to disk unrelated to the journal
itself, if the journal is on the same device as the filesystem.


Are you _really_ sure that isn't what is done today?  My reading of the
code is different, but it's of course possible that I'm seeing what I
want to see (which is how it was originally designed) and not what is
really there.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Enable asynchronous commits by default patch revoked?, Christian Fischer, (Mon Aug 24, 1:33 am)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Mon Aug 24, 11:31 am)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Mon Aug 24, 2:28 pm)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Mon Aug 24, 3:46 pm)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Mon Aug 24, 4:43 pm)
Re: Enable asynchronous commits by default patch revoked?, Christian Fischer, (Mon Aug 24, 11:16 pm)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Tue Aug 25, 10:52 am)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Wed Aug 26, 2:50 am)
Re: Enable asynchronous commits by default patch revoked?, Andreas Dilger, (Wed Aug 26, 3:00 pm)