public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Lost space on JFFS2 partition
@ 2003-08-28  9:50 John Hall
  2003-08-28 10:23 ` David Woodhouse
  0 siblings, 1 reply; 8+ messages in thread
From: John Hall @ 2003-08-28  9:50 UTC (permalink / raw)
  To: linux-mtd

Hi,

I have a 7MB NAND flash partition, on which I'm running JFFS2. This
partition contained about 3.5MB of files, yet df reported that the partition
was 96% full. I tried sending SIGHUP to the gc thread and unmounting and
remounting the device, but it had no effect. I then moved the files off the
partition and then copied them back, and the usage went down to just 31%,
which with compression is what one would expect.

I've got two ideas about what happened:

1. The files in question are log files and so there are lots of small writes
happening. How does JFFS2 compress files? Is it on a block basis or per
write? If it is the latter then I could imagine that compression is actually
having an adverse effect when a file is created from a large number of small
writes.

2. A bug in JFFS2 was causing some unused space not to be garbage collected.
The version of JFFS2 being used is 9 months old, so perhaps I should merge a
later version in anyway.

My knowledge of how JFFS2 works internally is limited, so I would be
grateful for any advice.

Regards,
John Hall

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-28 14:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28  9:50 Lost space on JFFS2 partition John Hall
2003-08-28 10:23 ` David Woodhouse
2003-08-28 10:28   ` John Hall
2003-08-28 11:27     ` David Woodhouse
2003-08-28 13:58       ` John Hall
2003-08-28 14:15         ` David Woodhouse
2003-08-28 14:25           ` John Hall
2003-08-28 14:46             ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox