NAND out of space bikeshed

John Gilmore gnu at toad.com
Tue Jul 22 20:53:03 EDT 2008


What a bikeshed...  Could mgmt please assign one person to push this to
resolution?

> We need both the reliability in Sugar/Journal
> and decent handling of  "disk-full boot".

For Uruguay, you can't fix it til it can boot.

Thus, any small change that makes the machine boot up is an enabler.
A signed USB stick that lets Forth delete a replaceable file or two
would do.

(The /versions stuff will complicate removing things -- if you remove
it, it's still there in another /version.  To free up the space, you
have to delete it in all versions that share it -- or for simplicity,
in all versions.)

Here are the largest 60 files in my update.1 XO:

% find / -ls | sort -k 2nr | head -60
 30595 76136 -rw-r--r--   2 root     root     77962480 Nov  2  2007 /usr/lib/locale/locale-archive
 41528 41170 -rw-rw-rw-   1 10007    10007    42157487 Mar  5 21:18 /home/olpc/.sugar/default/datastore/store/f8e98054-49d6-4f6d-852a-87a762d2a743
 44804 34320 -rw-r--r--   1 root     root     35142968 Mar 26 14:30 /home/olpc/core.1595
 12935 25601 -rw-r--r--   4 root     root     26214401 Nov  2  2007 /usr/share/dbench/client.txt
 49451 21994 -rw-r--r--   1 root     root     22521856 May  8 02:48 /var/cache/yum/olpc_koji-update1/primary.sqlite
 39768 20480 -rw-r--r--   1 root     root     20971520 Feb 15 08:58 /home/olpc/swapfile
 30264 19963 -rwxr-xr-x   2 root     root     20441156 Nov  2  2007 /usr/lib/xulrunner-1.9b3pre/libxul.so
 58134 19764 -rw-rw-rw-   1 10007    10007    20237838 Jul 19 20:52 /home/olpc/.sugar/default/datastore/store/aa51e63f-4cce-43b8-b357-bb98e7c7dba9
 35436 16545 -rw-r--r--   2 root     root     16941284 Nov  2  2007 /usr/share/etoys/etoys.image
 13126 14202 -rw-r--r--   4 root     root     14542313 Nov  2  2007 /usr/share/etoys/SqueakV3.sources
 55941 12659 -rwxr-xr-x   1 olpc     olpc     12962304 May 29 20:21 /home/olpc/firefox/libxul.so
 35435 11708 -rw-r--r--   2 root     root     11988507 Nov  2  2007 /usr/share/etoys/etoys.changes
  3536 9915 -rwxr-xr-x   4 root     root     10152492 Nov  2  2007 /usr/lib/libicudata.so.36.0
 55807 8871 -rw-rw-r--   1 olpc     olpc      9083705 Jun 10 19:07 /home/olpc/firefox-3.0.tar.bz2
 35925 8612 -rw-r--r--   2 rpm      rpm       8818688 May  8 02:58 /var/lib/rpm/Packages
 12929 8110 -rw-r--r--   4 root     root      8303683 Nov  2  2007 /usr/share/cracklib/pw_dict.pwd
 43466 7023 -rw-rw-rw-   1 10007    10007     7191460 Mar 21 05:40 /home/olpc/.sugar/default/datastore/store/4fad7315-aae9-455a-b068-89a099bec8a7
 29891 6382 -rwxr-xr-x   2 root     root      6535120 Nov  2  2007 /usr/lib/libabiword-2.6.so
 56111 5556 -rw-r--r--   1 olpc     olpc      5689344 Jul  3 03:17 /home/olpc/.mozilla/firefox/38kms8rk.default/urlclassifier3.sqlite
  8454 5206 -rwxr-xr-x   4 root     root      5330388 Nov  2  2007 /usr/libexec/gcc/i386-redhat-linux/4.1.2/cc1
 27068 4290 -rwxr-xr-x   1 root     root      4392150 Feb  4 19:15 /home/olpc/287325f3e48239b051ccf83fdd81c308
 27070 4290 -rwxr-xr-x   1 root     root      4392150 Feb  4 19:20 /home/olpc/foof
 32449 4124 -rw-r--r--   2 root     root      4222611 Nov  2  2007 /usr/share/activities/bundle-archive/bundles/Simcity-4.xo
 29938 4085 -rwxr-xr-x   2 root     root      4182352 Nov  2  2007 /usr/lib/atlas/liblapack.so.3.0
  3524 3699 -rwxr-xr-x   4 root     root      3787248 Nov  2  2007 /usr/lib/libgtk-x11-2.0.so.0.1000.14
 12741 3512 -r--r--r--   4 root     root      3596159 Nov  2  2007 /usr/share/activities/worldfactbook-maps/political_world.pdf
 29935 3421 -rwxr-xr-x   2 root     root      3502100 Nov  2  2007 /usr/lib/atlas/libblas.so.3.0
  3411 3301 -rw-r--r--   4 root     root      3379793 Nov  2  2007 /usr/lib/libcsound.so.5.1
 13144 3261 -rw-r--r--   4 root     root      3338558 Nov  2  2007 /usr/share/etoys/ExampleEtoys/ParticleDyeInWater.mpg
 29934 3220 -rwxr-xr-x   2 root     root      3296572 Nov  2  2007 /usr/lib/atlas/libatlas.so.3.0
  2633 2866 -rwxr-xr-x   4 root     root      2933972 Nov  2  2007 /usr/bin/gdb
  2635 2866 -rwxr-xr-x   4 root     root      2933976 Nov  2  2007 /usr/bin/gdbtui
 30234 2865 -rwxr-xr-x   2 root     root      2933756 Nov  2  2007 /usr/lib/gnash/libgnashserver-cvs.so
 43458 2845 -rw-rw-rw-   1 10007    10007     2912517 Mar 21 05:40 /home/olpc/.sugar/default/datastore/store/f1e1b6fc-a27d-4f89-9df1-8b6269e76b6e
 12706 2765 -rw-r--r--   4 root     root      2830721 Nov  2  2007 /usr/share/activities/music/948.ogg
  3820 2589 -rw-r--r--   4 root     root      2650848 Nov  2  2007 /usr/lib/aspell-0.60/en-common.rws
 11769 2572 -rw-r--r--   4 root     root      2633153 Nov  2  2007 /usr/share/activities/biology/Phyla-EOW.pdf
 55180 2572 -rw-rw-rw-   1 10007    10007     2633153 Jun 10 16:32 /home/olpc/.sugar/default/datastore/store/a11d03f9-c477-45d8-b7bb-e756f6d787b1
 55187 2572 -rw-rw-rw-   1 10007    10007     2633153 Jun 10 16:32 /home/olpc/.sugar/default/datastore/store/59225ad4-3c55-42ff-b2ff-363b0c3b7b03
 29702 2439 -rw-r--r--   2 root     root      2496640 Nov  2  2007 /boot/olpcrd-2.6.22-20080131.2.olpc.f150813900a7eec.img
 29704 2439 -rw-r--r--   2 root     root      2497506 Nov  2  2007 /boot/rd.zip
 49506 2435 -rwxr-xr-x   1 root     root      2493160 Jul  9  2007 /usr/lib/dri/i965_dri.so
 33850 2373 -rw-r--r--   2 root     root      2429608 Nov  2  2007 /usr/share/activities/wikibooks/books/spanish.pdf
 47303 2373 -rw-rw-rw-   1 10007    10007     2429608 Mar 28 16:22 /home/olpc/.sugar/default/datastore/store/20cce31b-56d4-44c0-a185-c62f2622958b
 49508 2354 -rwxr-xr-x   1 root     root      2410472 Jul  9  2007 /usr/lib/dri/mga_dri.so
 49510 2353 -rwxr-xr-x   1 root     root      2408776 Jul  9  2007 /usr/lib/dri/r200_dri.so
 49504 2335 -rwxr-xr-x   1 root     root      2390952 Jul  9  2007 /usr/lib/dri/i915_dri.so
 49505 2327 -rwxr-xr-x   1 root     root      2382700 Jul  9  2007 /usr/lib/dri/i915tex_dri.so
 49512 2316 -rwxr-xr-x   1 root     root      2371400 Jul  9  2007 /usr/lib/dri/radeon_dri.so
 49507 2313 -rwxr-xr-x   1 root     root      2367528 Jul  9  2007 /usr/lib/dri/mach64_dri.so
 49514 2285 -rwxr-xr-x   1 root     root      2339432 Jul  9  2007 /usr/lib/dri/tdfx_dri.so
 49513 2277 -rwxr-xr-x   1 root     root      2330920 Jul  9  2007 /usr/lib/dri/savage_dri.so
 49511 2259 -rwxr-xr-x   1 root     root      2312872 Jul  9  2007 /usr/lib/dri/r300_dri.so
 49509 2228 -rwxr-xr-x   1 root     root      2281384 Jul  9  2007 /usr/lib/dri/r128_dri.so
 49503 2224 -rwxr-xr-x   1 root     root      2277064 Jul  9  2007 /usr/lib/dri/i810_dri.so
 49515 2213 -rwxr-xr-x   1 root     root      2265388 Jul  9  2007 /usr/lib/dri/unichrome_dri.so
 33847 2166 -rw-r--r--   2 root     root      2217709 Nov  2  2007 /usr/share/activities/wikibooks/books/french.pdf
 56053 2158 -rw-r--r--   1 olpc     olpc      2209635 Jul  3 02:30 /home/olpc/.mozilla/firefox/38kms8rk.default/XPC.mfasl
 12702 2135 -rw-r--r--   4 root     root      2186166 Nov  2  2007 /usr/share/activities/music/2970.ogg
 12899 2110 -rw-r--r--   4 root     root      2160012 Nov  2  2007 /usr/share/boot-anim/frame00.565

There are many megabytes of preinstalled crud in there -- two not
particularly noteworthy Ogg songs, the eToys movie, GCC's cc1, the yum
cache, a couple of Wikibooks, a dozen video drivers for hardware we
don't have, etc.  Deleting any ONE of them, from a signed OFW script
on a USB memory stick, should let the system boot.  (You should be
able to get it back, after cleaning up the filesystem, with
olpc-update from a pristine copy of your current version.)

Then the administrator and the user can act to remove the real cause
of the problem.  If deleting Journal entries in 656 doesn't free up
their disk space, let's make a patch so it does.  If the 656 journal
can't sort by size, let's make a patch so it does.  If any big user
files exist outside the Journal/Datastore, such as installed
activities, a small shell script like the above "find" output could
find them and offer the option to delete them.

That should fix most of the Uruguay machines.  What to do for future
software releases is separate, and lower priority.

>> One of the machines booted, but wouldn't allow any activities to  
>> launch
>> (which since you can't log in on vttys kinda locks down the machine).

Wad, why can't you get a shell on ctrl-alt-f1?  Is this due to some
special Uruguay software change; the disk full problem; or unknown cause?

	John


More information about the Devel mailing list