Subject: Re: kern/29262: Incredible slow LKM loading in 2.0 versus 1.6.2
To: None <gnats-bugs@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 02/07/2005 14:14:06
--2iBwrppp/7QCDedR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 07, 2005 at 11:19:00AM +0000, kessi@teles.de wrote:
> >Number:         29262
> >Category:       kern
> >Synopsis:       Incredible slow LKM loading in 2.0 versus 1.6.2
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    kern-bug-people
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Mon Feb 07 11:19:00 +0000 2005
> >Originator:     Jens Kessmeier
> >Release:        2.0
> >Organization:
> TELES AG
> >Environment:
> NetBSD iswitch2.teles.de 2.0 NetBSD 2.0 (ISWITCH) #17: Thu Feb  3 12:46:0=
8  2005  admin@COMPILE:/usr2/isdn/NetBSD-2.0/usr/src/sys/arch/i386/compile/=
ISWITCH i386
>=20
> >Description:
> Loading time on NetBSD 1.6.2 is more or less 15 seconds. On NetBSD 2.0, s=
ame machine and test case, 180 seconds.
>=20
> Here is the test script:
>=20
> #!/bin/sh
>=20
> KDRV=3D/usr/isdn/kdrv
>=20
> date; echo "Loading tlsload"
> modload -s -S -o $KDRV/tlsload.lnk  $KDRV/tlsload.o
> date; echo "Loading streams"
> modload -s -S -o $KDRV/streams.lnk -A $KDRV/tlsload.lnk $KDRV/streams.o
> date; echo "Loading tlstrc"
> modload -s -S -o $KDRV/tlstrc.lnk -A $KDRV/streams.lnk $KDRV/tlstrc.o
> date; echo "Loading tlspir"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlspir.o
> date; echo "Loading tlsp8"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlsp8.o
> date; echo "Loading tlssw1"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlssw1.o
> date; echo "Loading tlssw1vx"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlssw1vx.o
> date; echo "Loading tlsmtn"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlsmtn.o
> date; echo "Loading tlstnx"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlstnx.o
> date; echo "Loading tlssw23"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlssw23.o
> date; echo "Loading tlstoner"
> modload -s -A $KDRV/tlstrc.lnk $KDRV/tlstoner.o
> date; echo "End "

If you use -s, you don't need -A.  That should speed up loading a *lot*.
Just look at what the kernel spits out when you do that about duplicate
symbols (well, at least I expect some verbosity).

Just load the modules successively with -s, and no -S, -A or -o.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--2iBwrppp/7QCDedR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQgdpntgoQloHrPnoAQJiXAf/RcqIcEqJI84IfysHAdnwQdnPcbyo/jIT
QgtnKqubR14BY3uAP24SqqU+Xl8ol0WfywU6xELVYw00LeqOcCcg2FA+5nGwkcUx
IamCOSYyxOqyQfRXCtobUplnysmJX4hbMRxdCE45ErSEReB7xRHcl9a1X4dyKn2O
x8pK6NxexursxmGkU62W+oBDa196SGs5IjvIRzOuD7wtY88EftUhxRVcdXbO3afC
GzbJ/xiCV1DGd/RAqZs56gOyVb2RjDa6GRh9AIMziKqaZeOtVhP6A1SK5lgVifb9
KAgwXYdtXQppDDpFGJlOA5FHuBvuPp3p2WlNeV5g4gurnm9C1fsAzw==
=z6ex
-----END PGP SIGNATURE-----

--2iBwrppp/7QCDedR--