Re: [Ext2-devel] Re: 2.4.6 and ext3-2.4-0.9.1-246

Andreas Dilger (adilger@turbolinux.com)
Tue, 10 Jul 2001 12:51:29 -0600 (MDT)


Mike Black writes:
> Also, having it in files allows me to easily add more swap as needed.

But you usually have a base amount of swap, and only add more files as
needed, right? Put the base swap into its own partition, and then only
put "extra" swap into files.

> As far as journalling mode I just used tune2fs to put a journal on with
> default parameters so I assume that's full journaling.

The default is metadata-only journaling mode, called ordered data mode.
This gives the best performance in many cases, and also prevents you
from getting garbage in new/modified files after a crash. It does so
by forcing data writes to the disk before the metadata changes in the
journal are committed to the filesystem. This is also good for performance
because you separate writes to the journal from writes to the fs to avoid
excess seeking.

There is full data journaling, which slows down all I/O by half, because
it writes everything once to the journal and then again to the filesystem.

There is also writeback journaling mode, which writes all data directly
to the disk whenever it can, independent of metadata writes to the journal
and filesystem. This allows the possibility of bad data in files if a
change was added to the journal/fs but the data write did not make it to
disk. This is the only mode that reiserfs can use right now, but Chris
Mason is working on getting ordered data mode to work as well.

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/