From: Andrew Morton <akpm@zip.com.au>
To: Marcos Dione <mdione@hal.famaf.unc.edu.ar>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kjournald and disk sleeping
Date: Mon, 22 Oct 2001 14:17:29 -0700 [thread overview]
Message-ID: <3BD48CE9.C8F5FD60@zip.com.au> (raw)
In-Reply-To: <3BD4655E.82ED21CC@zip.com.au> <Pine.LNX.4.33.0110221424500.25281-100000@hp11.labcomp.famaf.unc.edu.ar>
Marcos Dione wrote:
>
> On Mon, 22 Oct 2001, Andrew Morton wrote:
>
> > Yes, this is a bit of a problem - it's probably atime updates,
> > things which write to inodes, etc. A commit will be forced within
> > five seconds of this happening.
>
> Reading journal.c I guessed that kjournald flushes thing *even if
> it doesn't have things to flush*. I guess that from commit_timeout and
> the comments on the thread process, but I can be wrong.
It's rather convoluted, but a commit fires if:
1: more than approx 1/4 of the journal has been used by the
current transaction or
2: this transaction has been open for >5 seconds.
And a commit will close off the current transaction, but will *not*
open a new one. Opening a new transaction will only happen when
new writes come in.
So there should be no commit activity on an fs which isn't being
written to.
You can watch all this happening by building with debug support and
running
echo 1 > /proc/sys/fs/jbd-debug
You may want to stop syslogd first though - otherwise you get into
this loop where commits create logs and logs create commits. Tends
to fill your logs up rather boringly.
-
next prev parent reply other threads:[~2001-10-22 21:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-22 17:29 kjournald and disk sleeping Marcos Dione
2001-10-22 18:28 ` Andrew Morton
2001-10-22 18:00 ` Marcos Dione
2001-10-22 21:17 ` Andrew Morton [this message]
2001-10-24 20:38 ` Stephen C. Tweedie
2001-10-22 18:47 ` Andreas Dilger
2001-10-22 18:12 ` Marcos Dione
2001-10-25 16:02 ` Marcos Dione
2001-10-25 16:13 ` Pavel Machek
2001-10-26 9:27 ` CaT
2001-10-26 21:54 ` Pavel Machek
2001-10-27 4:06 ` CaT
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=3BD48CE9.C8F5FD60@zip.com.au \
--to=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mdione@hal.famaf.unc.edu.ar \
/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