From: David Woodhouse <dwmw2@infradead.org>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: linux-mtd@lists.infradead.org
Cc: jffs-dev@axis.com
Cc: J B <mad_flasher@hotmail.com>
Subject: Re: jffs2 fragmentation
Date: Fri, 31 Oct 2003 11:53:20 +0000 [thread overview]
Message-ID: <1067601200.24809.13.camel@imladris.demon.co.uk> (raw)
In-Reply-To: <20031031112421.GC5604@wohnheim.fh-wedel.de>
On Fri, 2003-10-31 at 12:24 +0100, Jörn Engel wrote:
> If your explanation is correct, a shift from 4 to 28 minutes would
> correspond to 6 clean nodes reused for every 1 dirty node deleted and
> new node written.
>
> Doesn't make a lot of sense with a filesystem that should be >80% free
> or dirty, does it?
Hmmm. The figure of 87% was _with_ the large file, wasn't it? How full
is it when the large file is deleted?
When it's 80% full it does make sense. It's 80% full. 20% "free or
dirty". Your 20% free space is mixed in with the clean data; you have to
move 6 nodes out of the way for every node's worth of space you recover.
Consider the case where every eraseblock has 80% clean data and 20% of
each contains part of the large file you've just deleted, and is hence
now dirty. Then you write the same large file again. Garbage collection
happens -- each time we GC a full eraseblock we recover and rewrite 80%
of an eraseblock of clean data, and we manage to write 20% of an
eraseblock of the new file. The 80/20 ratio hence remains stable.
--
dwmw2
next prev parent reply other threads:[~2003-10-31 11:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-18 14:20 jffs2 fragmentation J B
2003-10-30 17:45 ` Jörn Engel
2003-10-30 18:53 ` David Woodhouse
2003-10-31 11:24 ` Jörn Engel
2003-10-31 11:53 ` David Woodhouse [this message]
2003-10-31 12:50 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1067601200.24809.13.camel@imladris.demon.co.uk \
--to=dwmw2@infradead.org \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox