malloc.c
Dmitry Morozovsky
marck at rinet.ru
Sun Jun 18 23:26:43 UTC 2006
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 at woozle:~# file /bin/sh
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
dynamically linked (uses shared libs), stripped
root at 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 at woozle:~#
The only two are
root at 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 at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-current
mailing list