Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Adam Wozniak <adam.wozniak@comdev.cc>, linux-mtd@lists.infradead.org
Subject: Re: optimum geometry
Date: Tue, 22 Jan 2002 13:00:21 +0100	[thread overview]
Message-ID: <20020122130021.A12669@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <2181.1011695016@redhat.com>; from dwmw2@infradead.org on Tue, Jan 22, 2002 at 10:23:36AM +0000

Hi!

> Yes, you're right. The overhead per-block is 12 bytes, but probably more
> important than that is the fact that more nodes have to be split up between
> blocks rather than being written out in one go - meaning an extra 70-odd 
> byte header, and worse compression.

I did a quick test and had 292 saved Bytes per eraseblock. Compared to
your numbers, 2/3 of the savings are due to better compression, so the
numbers can only be a rough measure.
With f being the filesystem size and e being the erase block size, the
optimum should be roughly: e = sqrt(60*f)

Reasoning:
Going from e to e/2, you waste 300*f/e Bytes.
Going up from e to 2*e, you waste 5*e Bytes.
Minimum is reached, when both effects are equal, thus:
5*e = 300*f/e
e^2 = 60f
e = sqrt(60f)

But again, this depends on compression, so take it with a grain of
salt.

Jörn

-- 
If you treat your beta-testers as if they're your most valuable
resource, they will respond by becoming your most valuable resource.
-- Eric Raymond in "The cathedral and the bazaar"

      reply	other threads:[~2002-01-22 11:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020118010528.A22777@swing.comdev.cc>
2002-01-18 16:41 ` need help interpreting debug output from JFFS2 Adam Wozniak
2002-01-18 16:55   ` David Woodhouse
2002-01-18 19:55     ` optimum geometry Adam Wozniak
2002-01-21 22:49       ` David Woodhouse
2002-01-22 10:21         ` Jörn Engel
2002-01-22 10:23           ` David Woodhouse
2002-01-22 12:00             ` Jörn Engel [this message]

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=20020122130021.A12669@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=adam.wozniak@comdev.cc \
    --cc=dwmw2@infradead.org \
    --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