From: Andreas Dilger <adilger@turbolabs.com>
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 12:47:51 -0600 [thread overview]
Message-ID: <20011022124751.C5146@turbolinux.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0110221415460.19985-100000@multivac.famaf.unc.edu.ar>
In-Reply-To: <Pine.LNX.4.30.0110221415460.19985-100000@multivac.famaf.unc.edu.ar>
On Oct 22, 2001 14:29 -0300, Marcos Dione wrote:
> Hi. first of all, I'm not suscribed to the mailing list, so cc to
> me in the replies. thanks. and I'm running 2.4.10.
Don't use 2.4.10 Linus kernel with ext3. It is bad. Use a newer kernel,
or -ac kernel instead.
> then I switched to ext3 and kjournald started to appear on the
> processes list. and it commits the transactions very often. I know I can
> set the commit interval to a high value, but both I don't know exactly
> how, and I think that it's not the solution I need. sending STOP signals
> to kjournald doesn't work, it seems to ignore them. what can I do?
Hmm. I have a laptop running with all ext3 filesystems, and it has no
problems spinning down the disk. I have not done anything to increase
the flush interval of kjournald. It may be that kjournald is writing
to disk because you have things which are trying to write to disk.
> then I send a STOP signal to kupdated
Well, this is a sure sign that you are getting disk write requests.
Note that it is very dangerous to do this. Instead, you should give it
a long (but finite) interval so that you at least get some data written
to disk instead of none at all.
I have all of the filesystems on my laptop mounted noatime (this breaks
/tmp auto-cleanup, but oh well) and I have moved all of the entries from
/etc/cron.hourly to /etc/cron.daily, as they are not so critical for me.
If you want, you can still increase the kjournald flush interval by editing
fs/jbd/journal.c:journal_init_common(). Granted, this is not elegant, and
it _should_ be configurable somewhere, but it isn't yet.
If you change the commit interval and run in journaled-data mode, and have
a long interval to kupdated, then ext3 _should_ buffer all of your I/O in
memory until the journal is full. This is much safer than just turning off
kupdated, since you WILL get things written to disk if there have been enough
changes to fill the journal, so you have an upper limit of a few MB of data
that can be lost if it never flushes to disk.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
next prev parent reply other threads:[~2001-10-22 18:47 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
2001-10-24 20:38 ` Stephen C. Tweedie
2001-10-22 18:47 ` Andreas Dilger [this message]
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=20011022124751.C5146@turbolinux.com \
--to=adilger@turbolabs.com \
--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