xfs
[Top] [All Lists]

RE: cache+barriers vs cache+nobarriers vs disabled cache+barriers vs dis

To: "'Martin Steigerwald'" <Martin@xxxxxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
Subject: RE: cache+barriers vs cache+nobarriers vs disabled cache+barriers vs disabled cache+nobarriers
From: "Leon Kolchinsky" <leonk@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Mar 2007 12:07:11 +0200
In-reply-to: <200703151339.36259.Martin@xxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
Thread-index: AcdnAthP/ohJyY/dQoi80dtD3Gr+UQCQJ2aQ
> > Hello All,
> >
> >
> > After reading http://oss.sgi.com/projects/xfs/faq.html#wcache
> > and some posts on the list I've got the following question:
> >
> > If I have disabled write cache on the disk (hdparm -W0 /dev/hda) and by
> > default FS is mounted with "barrier" enabled, Is there any taste in
> > enabling "barrier"(by default) because write cache is disabled anyway
> > or may be it's a good idea to mount with "nobarriers" in this case?
> 
> Hello Leon!
> 
> It is not needed to enable barriers when write cache is disabled. Enabling
> barriers in this case shouldn't have any visible effect I think.
> 

Thanks for your reply Martin,

My goal is to avoid filesystem corruption at any cost (while trying to use
fastest FS for linux) and according to the FAQ disabling write cache is the
right way to do it. 
Power/Hardware failure may occur in-between the flushes (with write barrier
enabled) so the safe way (I think) is to disable write cache.

It's interesting if there is a significant drop in the performance with
disabled disk "write cache" and XFS filesystem comparing to ext3+enabled
"write cache".

Has anyone some statistics or tests comparing ext3+enabled write cache vs.
xfs+disabled write cache?


Best Regards,
Leon Kolchinsky


<Prev in Thread] Current Thread [Next in Thread>