Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2016 18:14:09 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        Norbert Koch <nkoch@demig.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Why at least 4 cylinder groups?
Message-ID:  <20161011071409.GL76775@server.rulingia.com>
In-Reply-To: <24c7ca75-d50d-a7d2-933b-15ce4cf04b94@demig.de>
References:  <201610101526.u9AFQNuH091581@pdx.rh.CN85.dnsmgr.net> <24c7ca75-d50d-a7d2-933b-15ce4cf04b94@demig.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--5G06lTa6Jq83wMTw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2016-Oct-11 08:50:44 +0200, Norbert Koch <nkoch@demig.de> wrote:
>Am 2016-10-10 um 17:26 schrieb Rodney W. Grimes:
>>> In an embedded system I am having a rather
>>> small (static) ram disk of about 1.5MB,
>>> formatted as UFS(1).

ufs2 is designed to work around some space limitations in ufs1 and so
needs more space.  If you're space-limited, ufs1 is probably a better choic=
e.

>>> Is there any technical reason not to have less
>>> than 4 cylinder groups?
>> Probably on a UFS2 file system yes, but as far as I can
>> see not on a UFS1 file system.
>>
>>> For my application the wasted 188KB make a difference.
=2E..
>So, afaics technically one cylinder group would be ok for UFS1, right?

The reasons for multiple CGs are:
1) Improve performance by limiting the seek distance to a CG.
2) Provide redundant superblocks to protect against bad blocks.
Neither of these reasons apply to a ramdisk.

If you're keen to maximise data space, you might like to also reduce
ipg (increase '-i').

--=20
Peter Jeremy

--5G06lTa6Jq83wMTw
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJX/JFBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux
NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0DfsQAJfr2izb/79SFJyitGZq4xal
LCF5cvX+1j059fM1k+gZq9XgU1VhZAnr3vjtHzEj6+06YpY77MstoY6Nc+wuv06w
xnacU+bxtJLQrhYBg5GemKo4zd1NL79ZizxxTpxRoqoxC3dmTYNMIPxF8kw7J+/w
fF0V7cLyUcnIQtcMb3RDc0Db9mQGehZp8qYBwqXuUtrnUQlPWt5z0YxR7m3s+ei5
isq/oi5JV0i95MlelzWbYEe92CMuoPIu4IF8qBUNC45VcOnuif9oZnN+MWVW01gj
MIGfStPGjY6hCzfOeogT8welXPrV0Sw/YaG3J0zPewVu/K4bIpYlswkoEOwvoQCj
M8qsWn7nlRDFRHMPAeQWUqA6XUnTq+z9zd7HunAyYp3/9VeXk5jKBAcvSGA1q35E
tBm3GgPrAUdIup6CHwKrGa+0tmFAj3jBLjuqz2fIOMedqJvEdV5Qel5cuL5In74f
z6TjffsdBJQ0IRfVqnP2x6SOuAyRNnu4GnTmH/46rNONPoC8yi7/YE2/A1ByAnFg
NsDD6AjiRAWDDwsj01wapBlpe7H8z99UikLv5PE1lY1ohIcydZN5MFfQxQNlYuhb
HTIft9iRamp/6u7Q7BqLggou9UyMPy1ZhMqj3Sb26tP9BcsAwhGGttBU6CN4fmXz
6IZbv/CaXb4ggjwGfzH4
=BQOz
-----END PGP SIGNATURE-----

--5G06lTa6Jq83wMTw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161011071409.GL76775>