- 论坛徽章:
- 0
|
原帖由 nntp 于 2005-12-10 21:58 发表
n多人上来就用默认的ext3, ext3性能很糟糕,而且日志只有meta data才做,data区没有日志机制保护的,不像ReiserFS, JFS, XFS那样
ext3是可以保护data的一致性的,事实上用户可以选择三种不同的日志模式。我听说倒是JFS等系统不支持data journaling。
以下摘自:linux/Documentation/filesystems/ext3.txt
Data Mode
---------
There's 3 different data modes:
* writeback mode
In data=writeback mode, ext3 does not journal data at all. This mode
provides a similar level of journaling as XFS, JFS, and ReiserFS in its
default mode - metadata journaling. A crash+recovery can cause
incorrect data to appear in files which were written shortly before the
crash. This mode will typically provide the best ext3 performance.
* ordered mode
In data=ordered mode, ext3 only officially journals metadata, but it
logically groups metadata and data blocks into a single unit called a
transaction. When it's time to write the new metadata out to disk, the
associated data blocks are written first. In general, this mode
perform slightly slower than writeback but significantly faster than
journal mode.
* journal mode
data=journal mode provides full data and metadata journaling. All new
data is written to the journal first, and then to its final location.
In the event of a crash, the journal can be replayed, bringing both
data and metadata into a consistent state. This mode is the slowest
except when data needs to be read from and written to disk at the same
time where it outperform all others mode.
BTW, 请问有什么数据支持"ext3性能很糟糕"这样的说法?
[ 本帖最后由 foobar 于 2006-1-22 02:28 编辑 ] |
|