glibc and libc5 binary, which one will run faster?

glibc and libc5 binary, which one will run faster?

Post by Y.C » Sun, 12 Dec 1999 04:00:00



HI:
   suppose I have 2 "unzip" binary. one is libc 5 binary

#ldd /home/bin/unzip
   libc.so.5 => /usr/i386-slackware-linux-gnulibc1/lib/libc.so.5
size:
-rwxr-xr-x   1 root bin  71576 Jul 24 09:21 /home/bin/unzip

the other one is glbic
#ldd /usr/bin/unzip
     libc.so.6 => /lib/libc.so.6 (0x00126000)
     /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00110000)
size:
-rwxr-xr-x   1 root  bin  99668 Jul 28 18:14 /usr/bin/unzip

Both will run on my slack7(glibc2.1.12) box with libc5 runtime
library.

I was wondering which one will run faster on the box?

 
 
 

glibc and libc5 binary, which one will run faster?

Post by Rhys Uleric » Sun, 12 Dec 1999 04:00:00


Odds are that the glibc library might run a little bit faster (although
I'm not sure-- I'm just guessing because it is a newer library).
However, the difference between the two will be so little that there's
really no point to worrying about it unless you'll be decompressing
zipped files all day, every day.

As a fellow Slack7 user I'd tell you to replace the libc5 version with a
symlink to the glibc2 version since Slack just moved towards glibc2.

- Rhys Ulerich

Quote:>    suppose I have 2 "unzip" binary. one is libc 5 binary

> #ldd /home/bin/unzip
>    libc.so.5 => /usr/i386-slackware-linux-gnulibc1/lib/libc.so.5
> size:
> -rwxr-xr-x   1 root bin  71576 Jul 24 09:21 /home/bin/unzip

> the other one is glibc
> #ldd /usr/bin/unzip
>      libc.so.6 => /lib/libc.so.6 (0x00126000)
>      /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00110000)
> size:
> -rwxr-xr-x   1 root  bin  99668 Jul 28 18:14 /usr/bin/unzip

> Both will run on my slack7(glibc2.1.12) box with libc5 runtime
> library.

> I was wondering which one will run faster on the box?


 
 
 

1. Moving from libc5 to glibc 2.0.4 binaries (Help or HowTo?)

I recently re-installed an older Slackware version.  I did two things
directly from the start....I upgraded my xserver to work with my
Matrox Mystique and complied kernel 2.0.31.  Both worked fine with the
Slackware installed ELF libc 5 libraries and gcc 2.7.0.

I then wanted to upgrade my XFree86 from version 3.1 to version 3.3.1
by installing all the new binaries and config files and development
libraries, etc.

After much downloading, I got all the X stuff I needed for libc 5.

I tried to install, but it told me I needed to get a newer version of
ld.so.

So, I grabbed ld.so-1.9.5 and read the docs.  It strongly recommended
moving to the new glibc libraries.

So, I downloaded the glibc-2.0.4 binary libraries.  I copied /lib to
/lib/libc5-compat (as was suggested by the README from ld.so-1.9.5)
and copied /usr/lib to /usr/lib/libc5-compat.  I then modified
ld.so.conf to reflect the new path to the libc5 stuff.  Then I
unpacked the glibc stuff into /lib and /usr/lib.  Things seemed to go
OK.  I ran ldconfig, and rebooted....no problems reported.

I then re-compiled ld.so-1.9.5 packages (hopefully using the new glibc
stuff) and that seemed to go just fine.

Then I grabbed the XFree86 binaries, etc. and the xserver for use with
glibc and installed those.

Now for my problems:

1.  The xserver starts, but then dies when it seems like a window
manager should be starting up.  The "startx" output on the console
reports no errors.

2.  I thought perhaps my fvwm needed to be recompiled with the new X
libs and include files to work properly.  So, I grabbed the source for
fvwm95 and recompiled it.  It compiled without errors and without
warnings.  I was not able to get it to run either....xserver still
dies just after changin from the bare "grey 'x's'" background to the
standard fvwm "light blue" background.

3.  I tried to recompile the 2.0.31 kernel with the new glibc, but
that fails now (possibly while trying to link the object files to
zImage, but I'm not sure)....so I can't compile a new kernel either.
Building modules seems to work just fine, but they don't match the
kernel because I can't get it to compile.

I feel all of this has to do with the new glibc.  All my libc5
binaries still work just fine.  Is there a howto or some mini-howto
available on how to upgrade from libc5 to glibc?  Am I missing some
components?

-Michael
--
Michael David Knight         Flight:  The uncanny          SAAB  |  Draken
Gulfstream Aerospace         ability to avoid                 __/O\__
Georgia Tech Aerospace       hitting the ground.      ----===(_)(.)(_)===----

2. shared library in c++

3. Mix libc5, glibc and together in one system

4. Swap Problem

5. libc5 binaries don't run on Linux 2.2?

6. Problem: ATI RAGE PRO AGP WITH XFree86

7. Can primary glibc 2.1.x coexist with non-primary glibc 2.2.x WRT shared binaries?

8. Packard Bell Drivers.

9. XFree86 libc5 or glibc?

10. glibc vs libc5

11. glibc, libc5, libc6

12. libc5 and glibc libraries on the same system

13. Am I using glibc or libc5?