From owner-freebsd-current@FreeBSD.ORG Sun Jun 18 23:26:43 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 056F516A47A; Sun, 18 Jun 2006 23:26:43 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E69943D46; Sun, 18 Jun 2006 23:26:42 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.6/8.13.6) with ESMTP id k5INQZU3024508; Mon, 19 Jun 2006 03:26:35 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 19 Jun 2006 03:26:35 +0400 (MSD) From: Dmitry Morozovsky To: John Baldwin In-Reply-To: <200606151246.08363.jhb@freebsd.org> Message-ID: <20060619032442.M13558@woozle.rinet.ru> References: <200606141704.30667.freebsd@alaskaparadise.com> <200606151246.08363.jhb@freebsd.org> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Mon, 19 Jun 2006 03:26:36 +0400 (MSD) Cc: Beech Rintoul , freebsd-current@freebsd.org Subject: Re: malloc.c 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: Sun, 18 Jun 2006 23:26:43 -0000 On Thu, 15 Jun 2006, John Baldwin wrote: JB> > I forgot to define NO_MALLOC_EXTRAS in malloc.c on one of my test machines JB> and JB> > I'm taking a noticeable performance hit. How do I just rebuild libc without JB> > rebuilding userland? This box is only 500 MHz and a system rebuild takes JB> > quite a while. JB> JB> cd /usr/src/lib/libc JB> make clean JB> make cleandir JB> make obj JB> make depend JB> make all JB> make install JB> JB> Something like that should do it. You might have to rebuild any statically JB> linked binaries as well (/sbin/init and /bin/sh) but fixing libc should JB> probably solve most of your problems. Well, at least on RELENG_6 /bin/sh is dynamically linked: root@woozle:~# file /bin/sh /bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped root@woozle:~# ldd /bin/sh /bin/sh: libedit.so.5 => /lib/libedit.so.5 (0x28090000) libncurses.so.6 => /lib/libncurses.so.6 (0x280a5000) libc.so.6 => /lib/libc.so.6 (0x280e6000) root@woozle:~# The only two are root@woozle:~# file /bin/* /sbin/* | grep 'statically linked' /sbin/devd: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------