Dnia Wed, 12 Jul 2006 01:41:10 +0200, Toby Thain <[EMAIL PROTECTED]>
napisał:
On 11-Jul-06, at 5:57 PM, [EMAIL PROTECTED] wrote:
On Tue, 11 Jul 2006 23:03:12 +0200, =?iso-8859-2?B?
o3VrYXN6IE1pZXJ6d2E=?= said:
I got problem with apps that are calling fsync, it makes my hard drive
flush like mad and it slows down things quite a lot.
Several have posted how to bypass it. I'll pose the opposite side:
Usually, applications call fsync() because they're pretty sure that if
the disk and in-memory copies aren't lined up, a crash at that point
could
result in data loss and/or corruption.
So sqlite calls fsync() - probably because if it *doesn't*, and your
system crashes/reboots, you *will* lose that sqlite database.
Absolutely; it's required for commit semantics. :-)
Your data, your decision.
I know it's there to keep data integrity but what should I do when it
makes some apps unusable? Becouse it really hurts amarok for me and
without disabling it in sqlite code amarok I can't call it listening to
music. I can always patch one or few apps and live with it but what if
half of my apps will do it?
Anyway I'm goint to work now so I won't be having this problem for next 8
hours.