<div class="gmail_quote">On Thu, Sep 2, 2010 at 3:23 AM, Stefan Monnier <span dir="ltr">&lt;<a href="mailto:monnier@iro.umontreal.ca">monnier@iro.umontreal.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Ah, now that makes sense.<br>
So yes, it would be good to be able to tweak Linux&#39;s swap handling so it<br>
tries to write in chunks that are erase-block sized and aligned, as far<br>
as possible.  Tho maybe trying to just maximize the chunk size (without<br>
paying particular attention to a particular size or alignment) would be<br>
good enough.<br></blockquote><div><br>It would seem, rather than starting from scratch, compcache could be a 
useful starting point.  The compression compcache provides should help 
greatly with the the general bandwidth issues of any NAND based device, 
reducing the amount of data transferred.  And because of compcache&#39;s 
compression, I&#39;m assuming it already needs to re-map compressed pages --
 an area that could hopefully be tweaked to re-map into neat erase block
 sized buffers before finally committing them to a block storage device. <br></div></div>