Date: Mon, 19 Jun 2006 03:26:35 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: John Baldwin <jhb@freebsd.org> Cc: Beech Rintoul <freebsd@alaskaparadise.com>, freebsd-current@freebsd.org Subject: Re: malloc.c Message-ID: <20060619032442.M13558@woozle.rinet.ru> In-Reply-To: <200606151246.08363.jhb@freebsd.org> References: <200606141704.30667.freebsd@alaskaparadise.com> <200606151246.08363.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 *** ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060619032442.M13558>