From: Andreas Dilger <adilger@clusterfs.com>
To: Leon Woestenberg <leon.woestenberg@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: commit only journal entries older than commit period?
Date: Wed, 9 May 2007 09:20:29 -0700 [thread overview]
Message-ID: <20070509162029.GM6375@schatzie.adilger.int> (raw)
In-Reply-To: <c384c5ea0705090631v1fa61e73kc54e8173b73c25d@mail.gmail.com>
On May 09, 2007 15:31 +0200, Leon Woestenberg wrote:
> this is something I have long wondered about but have been afraid to ask.
>
> When my system is chewing away on builds, the disk I/O write access
> pattern of my ext3 root filesystem (using CFQ, Intel SATA controller,
> hard disk) when visualized by GNOME System Monitor clearly shows a
> repetitive landscape of large peaks, 5 seconds apart, which not much
> activity inbetween.
>
> I understand that's due to the ex3 journal commit interval (defaults
> to 5 seconds).
>
> But why isn't the filesystem continuously committing only that part of
> the journal that is older than 5 seconds?
>
> I would then expect the write requests to be smoothened over time,
> which can only be good in terms of performance and low latency.
The journal cannot start checkpoint of blocks to the filesystem until
the transaction is committed, otherwise a crash would leave the filesystem
inconsistent. After the transaction is committed the blocks are written
into the fs and I'd guess that this can happen quickly enough that it
only takes a fraction of a second.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
prev parent reply other threads:[~2007-05-09 16:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 13:31 commit only journal entries older than commit period? Leon Woestenberg
2007-05-09 16:20 ` Andreas Dilger [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=20070509162029.GM6375@schatzie.adilger.int \
--to=adilger@clusterfs.com \
--cc=leon.woestenberg@gmail.com \
--cc=linux-ext4@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).