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

Re: Moving glibc out of unstable



On Sun, Oct 26, 2003 at 07:21:35PM -0500, Jeff Bailey wrote:
> I'll also try to ia64/nptl in before then too.

I simply added the following patch and it seems to work.  This was
just the obvious change, I may have missed something subtle.  I've
checked it and stressed it as much as I know how, and it looks fine.

As an example

- test environment -
ianw@tartufi:/local/ianw/bktree/linux-2.5-import$ uname -a
Linux tartufi 2.6.0-test7 #1 SMP Wed Oct 22 15:01:19 EST 2003 ia64 GNU/Linux

- looking at ld.so.cache for right flags -
ianw@tartufi:~$ sudo ldconfig -p | grep pthread
        libpthread.so.0 (libc6,IA-64, hwcap: 0x8000000000000000, OS ABI: Linux 2.6.0) => /lib/tls/libpthread.so.0
        libpthread.so.0 (libc6,IA-64, OS ABI: Linux 2.4.0) => /lib/libpthread.so.0

- checking ld sees new library -
ianw@tartufi:~$ ldd /bin/ls | grep pthread
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x20000000002c8000)
ianw@tartufi:~$ LD_ASSUME_KERNEL=2.4.0 ldd /bin/ls | grep pthread
        libpthread.so.0 => /lib/libpthread.so.0 (0x20000000002d0000)

- performance test to see it really uses the new library -
ianw@tartufi:~/pthreadbench$  ./lifecycle
337813 threads created in 4.9993 sec = 67572 per second
ianw@tartufi:~/pthreadbench$ LD_ASSUME_KERNEL=2.4.0 ./lifecycle
43677 threads created in 5.00046 sec = 8735 per second

Thanks for making such great packages!

-i
ianw@gelato.unsw.edu.au
http://www.gelato.unsw.edu.au

--- glibc-2.3.2.ds1-orig/debian/sysdeps/ia64.mk	2003-10-26 23:02:47.065287964 +0000
+++ glibc-2.3.2.ds1/debian/sysdeps/ia64.mk	2003-10-26 23:12:44.802585329 +0000
@@ -1,3 +1,7 @@
+GLIBC_PASSES += nptl
+
+nptl_LIBDIR = /tls
+
 libc = libc6.1
 
 libc_extra_config_options = $(extra_config_options) --with-tls 

Reply to: