[Sugar-devel] [Dextrose] Datastore index corruption!
Tomeu Vizoso
tomeu at sugarlabs.org
Mon Aug 2 13:40:53 EDT 2010
On Mon, Aug 2, 2010 at 19:36, Bernie Innocenti <bernie at codewiz.org> wrote:
> On Fri, 2010-07-30 at 07:11 +0000, Aleksey Lim wrote:
>> > Is it in Rarian or in the datastore code itelf? How do we change it to a
>> > sane 2-3 seconds delay?
>>
>> imo, initiating ds flush (or regualr ds shutdown), and thus setting update
>> flag, on power-off button ACPI catch is more appropriate way to handle only
>> this usecase (we can all time play w/ timeout and don't find proper value
>> that will be good in all cases).
>
> This would help catch a few more cases of data loss, but not all of
> them.
>
> So, while it would be useful, I'd complement it with a shorter flush
> delay.
I think this should be the first thing we do about this problem.
> What's to be gained by delaying writes 60 seconds anyway? How
> long does it actually take to flush the index to disk?
Shouldn't take much, even on platforms with very slow writes as the
XOs. I would suggest 6 seconds or less.
Regards,
Tomeu
> --
> // Bernie Innocenti - http://codewiz.org/
> \X/ Sugar Labs - http://sugarlabs.org/
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
More information about the Sugar-devel
mailing list