This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DLOPEN and Statically linked executable


On Thu, Jun 20, 2002 at 10:26:50PM +0400, Peter Zaitsev wrote:
> Hello Steve,
> 
> Thursday, June 20, 2002, 7:36:03 PM, you wrote:
> 
> 
> >> At MySQL we use patched version of GLIBC for MySQL binary
> >> distribution and so have to compile it statically.  This patched
> >> version of GLIBC is must to handle high load, it uses smaller thread
> >> stack size instead of default 2M and has  different mutex handling,
> >> so less context switches will happen in case of MySQL and will give
> >> better performance.
> 
> SM> Have you considered linking shared and using LD_PRELOAD to override
> SM> any functions that are you would normally get from libc.so?
> 
> Unfortunately there is one more reason why we ship statically linked
> MySQL. We want most of our users to use as similar configuration as
> possible.  From the group of users which have compiled MySQL
> themselves we have more then half of bug reports, which are caused by
> bad build environment or GLIBC. There are a lot of different
> Distributions having various patched GLIBC versions shipped so it gets
> almost impossible to test all possible cases.

IMHO it is just wasting time on your part, your patches to
linuxthreads are so trivial that glibc should do the thing you need by
default.

Jeroen Dekkers
-- 
Jabber ID: jdekkers@jabber.org  IRC ID: jeroen@openprojects
GNU supporter - http://www.gnu.org

Attachment: msg00092/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]