Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2004 20:30:12 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Wojciech Puchar <wojtek@tensor.3miasto.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD beginner (NetBSD advanced)
Message-ID:  <20040715193012.GA46736@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <Pine.NEB.4.60.0407152019430.24734@chylonia.3miasto.net>
References:  <Pine.NEB.4.60.0407152019430.24734@chylonia.3miasto.net>

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

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

On Thu, Jul 15, 2004 at 08:30:10PM +0200, Wojciech Puchar wrote:
> i want to go to FreeBSD instead of NetBSD on my i386 machines because of=
=20
> all "new features" :( introduced in NetBSD after 1.5 mostly crashing
> softdeps, strange memory/unified disk cache management (large writing to=
=20
> file almost freezes everything) etc. etc.
>=20
> i installed FreeBSD once to do quick performance tests, and at least in=
=20
> disk I/O and fair scheduling it's MUCH better (tested 4.10 and 5.1).
>=20
> my questions:
>=20
> 1) what is Buf and Cache in top exactly? why buf on 96MB machine gets to=
=20
> near 20MB and never goes down? it's almost 1/4 of memory size.

These are part of the kernel VM system -- most of that space is used
for buffering IO to disk drives or other devices.  There are various
VM related sysctls you can use to tune things, but unless you've got a
pretty exceptional system just going with the defaults will probably
give you the best results.

> 2) can i compile kernel with -march=3Dpentium,pentium[234] -O2 optimizati=
on?
> in NetBSD 2.0 doing -march=3Dpentium produces kernel that doesn't boot at=
=20
> all, just resets.

You can certainly compile with a different CPUTYPE setting in
/etc/make.conf -- works very well.

However under 4.x and any of the releases from 5.x to date you
shouldn't use any more that -O optimization.  There's a push on to
make world+kernel compile correctly using -O2 before 5.3-STABLE, but
that's not been completed yet.
=20
> 3) how can i disable compiling, using etc.. all that LKM (KLD) stuff?
>=20
> i really prefer one static kernel.

Generally what happens is that a driver is either built into a kernel
image, or it's built as a loadable module.  Writing your own kernel
configuration to include the drivers for all of your hardware isn't
too difficult.  You can prevent any LKMs being build by setting:

    NO_MODULES=3Dtrue

in /etc/make.conf
=20
> 4) is IPv6 working well? (i mean no crashes etc...) i will get real IPv6=
=20
> zone allocation soon and want to use it.

Works for me.  But FreeBSD uses the same Kame IPv6 stack as NetBSD --=20
=20
> 5) what is used in FreeBSD for traffic management. NetBSD has altq -=20
> please just give me a name i will RTFM.

dummynet(4)
=20
> 6) how to turn using serial port as console on i386? my home machine is=
=20
> headless, i'm using X terminals to access it.

Simple.  It's pretty easy to install the system that way too:

    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole=
-setup.html

    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-advan=
ced.html

> 7) does FreeBSD support 2 CPUs on i386?

Yes.  You will have to compile a custom kernel to get SMP support
under 4.x (you can always boot a UP kernel on a MP machine).  For 5.x,
it should all just work with the GENERIC kernel.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

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

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

iD8DBQFA9ttEiD657aJF7eIRAsT1AKCb864euUFEVc9klGqCs5tC6mnoLgCff14B
1GLswqAZEZczqygnK+g/jho=
=dseO
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--



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