Failed to garbage collect: ENOSPC

David Woodhouse dwmw2 at infradead.org
Thu Mar 11 05:19:48 EST 2004


On Thu, 2004-03-11 at 10:59 +0100, Joakim Tjernlund wrote:
> > Only way to get out of this is to remove the log file that 
> > was written to most. This file is then about 200kB in size 
> > but after removal the free space of the partition grows from 
> > 124kB to 2MB! Apparently there was dirty space to collect?
> 
> The JFFS2 overhead from small writes is rather big. Each write is its own node in
> flash so a 124kB log file can be 2MB on flash. If you copy the log file and delete the
> old file, you will free flash space.

We really ought to count the space taken up that way. We already have
the offending nodes marked as non-optimal, so that on GC we actually
read the whole page and write it out again in a single node, obsoleting
lots of the smaller nodes. We should keep track of them separately and
GC them before returning -ENOSPC.

-- 
dwmw2




More information about the linux-mtd mailing list