Date: Tue, 18 May 2004 10:14:33 +0800 From: Xin LI <delphij@frontfree.net> To: Julian Elischer <julian@elischer.org> Cc: Mikhail Teterin <mi+mx@aldan.algebra.com> Subject: Re: QMail and SoftUpdates Message-ID: <20040518021433.GA969@frontfree.net> In-Reply-To: <Pine.BSF.4.21.0405171323010.27448-100000@InterJet.elischer.org> References: <20040517174836.GA983@frontfree.net> <Pine.BSF.4.21.0405171323010.27448-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 17, 2004 at 01:25:04PM -0700, Julian Elischer wrote: [...] > Softupdates is NOT unsafe for this task IF the app does an fsync() > before acknowldging the incoming mail. Fsync under Soft updates will not > return until all data and metadata associated with the file > has been written to disk. This will make the write as slow as a sync=20 > munted filesystem, but all other writes on the disk will proceeed at=20 > soft-updates speed. Oh... I missed this point, sorry. Your statement is more accurate, thanks for pointing this out :-) I think it should be noted that on ATA drives, the hardware writing cache (without an acknowledge back to the operating system when the data is actually written to the disk, like on a tagged queue enabled SCSI disk), is enabled by default. This will greatly disturb SoftUpdates' work and may lead to data loss even when the application is correctly doing fsync(), because with ATA hardware writing cache, the disk will "cheat" the opearting system - Before the data actually goes to disk, it tells that it is, and data is lost if crash occours here. Cheers, --=20 Xin LI <delphij frontfree net> http://www.delphij.net/ See complete headers for GPG key and other information. --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAqXGJOfuToMruuMARAmBRAKCBpWLq9SP/t+Lsot9Qs/ROEoTR+ACfWYC7 pO2JHcyfttpmHzlBSGTx1VU= =b0g2 -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518021433.GA969>