From owner-freebsd-current@FreeBSD.ORG Tue Jan 31 05:46:34 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A9A816A420; Tue, 31 Jan 2006 05:46:34 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5768143D45; Tue, 31 Jan 2006 05:46:33 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp208-69.lns1.adl2.internode.on.net [203.122.208.69]) by smtp3.adl2.internode.on.net (8.13.5/8.13.5) with ESMTP id k0V5kK93084707; Tue, 31 Jan 2006 16:16:28 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.dons.net.au (inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.13.4/8.13.3) with ESMTP id k0V5kF0g093319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Jan 2006 16:16:17 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Kris Kennaway Date: Tue, 31 Jan 2006 16:16:09 +1030 User-Agent: KMail/1.9.1 References: <200601301652.16237.doconnor@gsoft.com.au> <20060130215554.GA68540@xor.obsecurity.org> <200601310914.39886.doconnor@gsoft.com.au> In-Reply-To: <200601310914.39886.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1168042.Loj1ExDysi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601311616.10870.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.52 on 10.0.2.7 Cc: freebsd-current@freebsd.org, Michael Nottebrock Subject: Re: KDE 3.5.0 seems much chubbier than 3.4.2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 05:46:34 -0000 --nextPart1168042.Loj1ExDysi Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline [ fixed CC ] On Tuesday 31 January 2006 09:14, Daniel O'Connor wrote: > On Tuesday 31 January 2006 08:25, Kris Kennaway wrote: > > > I did have a kernel from before the new malloc and it still seemed > > > quite sluggish. I remember being stuck because a commit to the AGP > > > driver on 20/12/05 prevented the nvidia driver building. > > > > new malloc =3D userland, not kernel. > > Yeah but I don't install world without first doing install kernel :) I think I was crack smoking here.. Recompiling the new libc with NO_MALLOC_EXTRAS reduced the memory usage=20 *significantly*. A make.conf knob would be highly appreciated here :) Here's a patch which seems to work here although my eyeballs almost explode= d=20 when reading the makefile so I don't know if it will have bad side-effects.. Index: lib/libc/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/CVS-Repository/src/lib/libc/Makefile,v retrieving revision 1.58 diff -u -r1.58 Makefile =2D-- lib/libc/Makefile 29 Dec 2005 04:10:52 -0000 1.58 +++ lib/libc/Makefile 31 Jan 2006 05:42:53 -0000 @@ -15,6 +15,9 @@ WARNS?=3D 2 CFLAGS+=3D-I${.CURDIR}/include -I${.CURDIR}/../../include CFLAGS+=3D-I${.CURDIR}/${MACHINE_ARCH} +.if defined(NO_MALLOC_EXTRAS) +CFLAGS+=3D-DNO_MALLOC_EXTRAS +.endif CLEANFILES+=3Dtags INSTALL_PIC_ARCHIVE=3D PRECIOUSLIB=3D =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1168042.Loj1ExDysi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD3vmi5ZPcIHs/zowRAqFvAKCC7Ji23ePN/Lc6WCpMF3Y/spOzBQCdHPK8 1pAWYXudHcTfbkJJvUBx8Jw= =pA7P -----END PGP SIGNATURE----- --nextPart1168042.Loj1ExDysi--