[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Change compile options wi/ apt-get source?



On Mon, May 13, 2002 at 10:40:20PM -0500, Michael D. Crawford wrote:
> I don't know, but I would very much like to recompile glibc, the Xlib, and 
> the gnome libraries to be optimized for the different processors I'm 
> running.

I'd be careful using any optimisations on these fairly critical
libraries; the fairly common mantra is optimising glibc is bad,
optimising glibc is bad... 

> Recompiling the kernel to optimize for a particular processor is a 
> significant performance boost but it would help to optimize the libraries 
> too.

I've only ever seen one person offer figures to back up this
assertion; last year there was a thread about this, and the conclusion
seemed to be 'good idea, but a huge effort for not much gain' (~5%
IIRC).

> Recompiling glibc is a bit risky because you can make your machine 
> unbootable if you make a mistake.

Hmmm...I don't think this is quite true.  You might not be able to
enter a 'normal' run level (2,3,4,5) because the init scripts would
not be able to execute the dynamically-linked /bin/sh (usually bash or
ash). You can, of course, boot directly into sash, a statically linked
shell, and repair any damage you might have caused.

-rob

Attachment: pgpFnJlgbDkDr.pgp
Description: PGP signature


Reply to: