Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 11:23:57 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Scott Long <scottl@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/release/i386 drivers.conf
Message-ID:  <20030725082357.GA53826@sunbay.com>
In-Reply-To: <3F20DF2D.8030209@freebsd.org>
References:  <200307250010.h6P0AYKW061085@repoman.freebsd.org> <20030725053806.GA36982@sunbay.com> <3F20DF2D.8030209@freebsd.org>

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

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

On Fri, Jul 25, 2003 at 01:41:33AM -0600, Scott Long wrote:
> Ruslan Ermilov wrote:
> >On Thu, Jul 24, 2003 at 05:10:33PM -0700, Scott Long wrote:
> >
> >>scottl      2003/07/24 17:10:33 PDT
> >>
> >> FreeBSD src repository
> >>
> >> Modified files:
> >>   release/i386         drivers.conf=20
> >> Log:
> >> Move the mlx driver back into the kernel so that the drivers floppy=20
> >> doesn't
> >> overflow.
> >>=20
> >> Revision  Changes    Path
> >> 1.29      +0 -1      src/release/i386/drivers.conf
> >>
> >
> >Which reminds me.  The floppy wasn't overflowing when building
> >5.x snapshot on 4.x, due to the differences in file system
> >layout between 4.x and 5.x.  Please see the attached if you're
> >interested.
> >
> >
> >Cheers,
> >
> >
>=20
> Now that -O2 is the default for newfs in 5-current, does the 'Oflag =3D=
=3D=20
> 2' trick still work?
>=20
Yes it does:

1.  doFS.sh creates file systems with -O1
2.  The patch affects the -O1 case:

dd if=3D/dev/zero of=3Dfloppy.img bs=3D1k count=3D1440
mdconfig -a -t vnode -f floppy.img -u 0
disklabel -r -w md0 fd1440
newfs -O1 -ospace -m0 -i40000 /dev/md0c
df -k /dev/md0
mdconfig -d -u 0

Using this script, which resembles the numbers for drivers.flp,
I get:

1.  Unpatched newfs(8):

: /dev/md0c: 1.4MB (2880 sectors) block size 4096, fragment size 512
:         using 2 cylinder groups of 1.22MB, 312 blks, 32 inodes.
                ^
: super-block backups (for fsck -b #) at:
:  32, 2528
: Filesystem 1K-blocks    Used   Avail Capacity  Mounted on
: /dev/md0        1391       0    1391     0%
                  ^^^^

2.  Patched newfs(8):

: /dev/md0c: 1.4MB (2880 sectors) block size 4096, fragment size 512
:         using 1 cylinder groups of 1.41MB, 361 blks, 64 inodes.
                ^
: super-block backups (for fsck -b #) at:
:  32
: Filesystem 1K-blocks    Used   Avail Capacity  Mounted on
: /dev/md0        1403       0    1403     0%
                  ^^^^

> Even if it does, it feels like a hack to me.  I'd
> rather that newfs have an option to directly override the number of
> c/g's, rather than rely on indirect calculations and magic constants.
>=20
*Shrug*, an option to override a minimum value?

> Please don't commit this until we have discussed it more.
>=20
I'm not committing it since February 26th, so waiting a couple
of months more is not an issue.  :-)


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE/IOkdUkv4P6juNwoRAnHFAJ97AWx5ddTXEWzHyn9z03dwjERRzwCeJQ+N
3sASD8tUhZZkiuT9s5DHGQg=
=lrTe
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--



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