Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-11-07 Thread Simon Schampijer

On 11/07/2012 12:50 PM, Martin Langhoff wrote:

On Wed, Nov 7, 2012 at 2:31 AM, Simon Schampijer  wrote:

Thanks Martin, Sam and Manuel for your work on this. The datastore runs here
fine. I pushed the changes. Will be available in 0.97.2.


Great! I was going to write a longer thank-you for the review, but I
ran out of space.

:-)


Same for me, I wanted to write a loong and fancy release announcement, 
but these damn space constraints...


Cheers,
   Simon

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-11-07 Thread Martin Langhoff
On Wed, Nov 7, 2012 at 2:31 AM, Simon Schampijer  wrote:
> Thanks Martin, Sam and Manuel for your work on this. The datastore runs here
> fine. I pushed the changes. Will be available in 0.97.2.

Great! I was going to write a longer thank-you for the review, but I
ran out of space.

:-)



m
--
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-11-06 Thread Simon Schampijer

On 09/26/2012 06:09 PM, Martin Langhoff wrote:

On Sat, Sep 22, 2012 at 10:09 PM, Martin Langhoff  wrote:

On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff
 wrote:

Reviews are boring. Testing is more fun! rpms for ARM at


Reviews are boring, but necessary.

As these patches have seen some reviews, and the ml is a bit awkward
for tracking those, I've pushed a 'pu' (proposed updates) branch at
http://dev.laptop.org/git/users/martin/sugar-datastore/

I have posted all the patches to the mailing list, and will continue
to do so. The pu branch will have the latest, freshest set of patches
(so: it rewinds/rebases as needed).



m



Thanks Martin, Sam and Manuel for your work on this. The datastore runs 
here fine. I pushed the changes. Will be available in 0.97.2.


Regards,
   Simon
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-26 Thread Martin Langhoff
On Sat, Sep 22, 2012 at 10:09 PM, Martin Langhoff  wrote:
> On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff
>  wrote:
>> Reviews are boring. Testing is more fun! rpms for ARM at

Reviews are boring, but necessary.

As these patches have seen some reviews, and the ml is a bit awkward
for tracking those, I've pushed a 'pu' (proposed updates) branch at
http://dev.laptop.org/git/users/martin/sugar-datastore/

I have posted all the patches to the mailing list, and will continue
to do so. The pu branch will have the latest, freshest set of patches
(so: it rewinds/rebases as needed).



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-22 Thread Martin Langhoff
On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff
 wrote:
> Reviews are boring. Testing is more fun! rpms for ARM at
>
>http://dev.laptop.org/~martin/ds-enospc/

New rpms for testing, including "datastore: handle low-disk and ENOSPC
conditions gracefully - v2". This is exactly what Sam is testing.

> The datastore.org will be telling you whether we are using tmpfs for

make that datastore.log :-)




m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-21 Thread Martin Langhoff
On Thu, Sep 20, 2012 at 11:55 PM, Martin Langhoff  wrote:
> In conditions of very low disk space available, or ENOSPC, the datastore
> misbehaves grossly:

Reviews are boring. Testing is more fun! rpms for ARM at

   http://dev.laptop.org/~martin/ds-enospc/

How to test:

 - Set Sugar to verbose debugging
 - Make sure sugar logs are not on /, add a file in /etc/statetab.d
containing "/home/olpc/.sugar/default/logs"
 - use "dd if=/dev/zero of=/bigfile bs=1M count=" to
fill up your disk

I usually create one large file to put the system where it has little
disk space remaining, then add/remove smaller files to tighten the
free space further, or to push all the way to ENOSPC. This is faster
than recreating a very large file everytime.

The datastore.org will be telling you whether we are using tmpfs for
the index, when a rebuild is triggered, ENOSPC is hit, etc.

It is also interesting to monitor the presence of two "clean" markers
in the datastore dir, ds_clean and index_updated. You can use
inotifywatch -e create -e delete /home/olpc/.sugar/default/datastore

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel