
Messages in this thread
SubjectRe: Disk hardware caching, performance, and journalling
On Sat, Nov 24, 2001 at 12:36:18PM -0600, Steve Bergman wrote:

1. Disk hardware caching defaults to ON. (hdparm -W1 /dev/hda)
2. It makes a *big* difference in write performance.

I depends on the drive, my IDE drives do default to on, my SCSI drives
do not.

The difference in write performance doesn't seem to be a problem other
that in contrived situations (eg. streaming 5G of data to disk takes
the same amount of time either way, but untar something then 'sync' is
faster with the drive caching).

It also depends of your filesystems to some extent and the operations
being performed [1].

So what are the implications here for journalling? Do I have to
turn off caching and suffer a huge performance hit?

Yes. I do this on workstations and it doesn't seem to hurt in
practice (only in benchmarks).

I can't comment on your bonnie++ results and I have no idea how well
they reflect reality (I assume to a large extent they try to though).


[1] XFS rm -rf some_large_dir bites with drive-caching off for example.
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
©2003-2014 Jasper Spaans. Advertise on this site