]> git.neil.brown.name Git - history.git/commit
[PATCH] tunable ext3 commit interval
authorAndrew Morton <akpm@zip.com.au>
Sat, 10 Aug 2002 09:44:42 +0000 (02:44 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 10 Aug 2002 09:44:42 +0000 (02:44 -0700)
commit88cb17e42469d622161887140a34bb1b85fff106
tree7cea5bbb06187d1cd9b3703373237e2e316ba300
parentd34e8c85df7bd8070111334e818e7c5674183f34
[PATCH] tunable ext3 commit interval

The patch from Stephen Tweedie allows users to modify the journal
commit interval for the ext3 filesystem.

The commit interval is normally five seconds.  For portable computers
with spun-down drives it is advantageous to be able to increase the
commit interval.

There may also be advantages in decreasing the commit interval for
specialised applications such as heavily-loaded NFS servers which are
using synchronous exports.

The laptop users will also need to increase the pdflush periodic
writeback interval (/proc/sys/vm/dirty_writeback_centisecs), because
the `kupdate' activity also forces a commit.

To specify the commit interval, use

mount -o commit=30 /dev/hda1 /mnt/whatever

or
mount -o remount,commit=30 /dev/hda1

The commit interval is specified in units of seconds.
fs/ext3/super.c