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 11:28:46 -0700 [thread overview]
Message-ID: <3BD4655E.82ED21CC@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.30.0110221415460.19985-100000@multivac.famaf.unc.edu.ar>
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.
>
> what I'm doing is to try to put the disks to sleep at night, or
> when I'm not using the machine. I found what proceses to shutdown, mainly
> those that do things from time to time, like the MTA. then I send a STOP
> signal to kupdated. so far, so good. that works.
>
> then I switched to ext3 and kjournald started to appear on the
> processes list. and it commits the transactions very often.
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.
> 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.
That is certainly a simple way of addressing the problem, and
it does work. You'll need to edit fs/jbd/journal.c and change the `5'
in this line:
journal->j_commit_interval = (HZ * 5);
to 3600 or whatever. I'd agree that this user interface could be
improved :) Probably a field in the journal superblock.
The result of this change is that you could lose up to an hour's work
after a crash rather than up to five seconds worth. You can manually
force a commit at any time by running /bin/sync.
Probably the best way of addressing all of this is teach ext3 to
look at the kupdate writeback interval from /proc/sys/vm/bdflush.
Users can then set the value in there to, say, one hour and it
should all just work.
-
next prev parent reply other threads:[~2001-10-22 18:33 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 [this message]
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
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=3BD4655E.82ED21CC@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.