SD card unpartitioned space -- used for swap?

Mikus Grinbergs mikus at bga.com
Mon Nov 22 20:53:59 EST 2010


>> Note:  I'm using an external SD card.  So if it fails before the OLPC
>> itself fails, I can at reasonable expense replace this swap device -- I
>> don't have to plan for a definite wear lifetime.
> Are you making regular backups?

Anything that needs to be preserved is copied to a central hard-disk
backup.  The SD card data is intended to be identical between systems --
that way, if any card gets accidentally erased, I can substitute
another.  I synchronize those SD cards manually.

> The contents of /proc/diskstats seem to contain the interesting info.

Here's the current contents from one of my XO-1s.  About 80 hours since
last boot.  Partition 1 is data;  partition 2 is swap.

 >              Reads  rd sect  Writes  wr sect  totl msec
 >
 >  mmcblk0p1  808112  6464890    7813    62504    9978500
 >  mmcblk0p2    1341    10728    5922    47376     765650

And a more typical system (about 100 hours since last boot):

 >              Reads  rd sect  Writes  wr sect  totl msec
 >
 >  mmcblk0p1  115837   926690   80763   646184   52117100
 >  mmcblk0p2    2374    18992    2629    21032    1889550

mikus




More information about the Devel mailing list