Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Cc: Timur Aydin <ta@××××××.org>
Subject: Re: [gentoo-user] Is my system (really) using nptl
Date: Fri, 12 Oct 2012 23:57:31
Message-Id: 3188873.4KbNFu25em@energy
In Reply to: [gentoo-user] Is my system (really) using nptl by Timur Aydin
1 Am Freitag, 12. Oktober 2012, 16:24:59 schrieb Timur Aydin:
2 > Hi,
3 >
4 > I have done many tests on my ~x86 system to confirm that it is nptl based:
5 >
6 > - I have the nptl and nptlonly use flags in my make.conf and my system
7 > is up to date.
8 >
9 > - Running /lib/libc.so.6 shows:
10 >
11 > ta@bonsai ~ $ /lib/libc.so.6
12 > GNU C Library stable release version 2.15, by Roland McGrath et al.
13 > Copyright (C) 2012 Free Software Foundation, Inc.
14 > This is free software; see the source for copying conditions.
15 > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
16 > PARTICULAR PURPOSE.
17 > Compiled by GNU CC version 4.5.3.
18 > Compiled on a Linux 3.5.0 system on 2012-09-10.
19 > Available extensions:
20 > C stubs add-on version 2.1.2
21 > crypt add-on version 2.1 by Michael Glad and others
22 > Gentoo patchset 21
23 > GNU Libidn by Simon Josefsson
24 > Native POSIX Threads Library by Ulrich Drepper et al
25 > Support for some architectures added on, not maintained in glibc
26 > core.
27 > BIND-8.2.3-T5B
28 > libc ABIs: UNIQUE IFUNC
29 > For bug reporting instructions, please see:
30 > <http://www.gnu.org/software/libc/bugs.html>.
31 >
32 > - getconf also indicates nptl:
33 >
34 > ta@bonsai ~ $ getconf GNU_LIBPTHREAD_VERSION
35 > NPTL 2.15
36 >
37 >
38 > Yet, when I look at the process list, I am seeing all programs that use
39 > threads having uniquey pid's for each thread. I even compiled a simple
40 > program that just creates 5 threads, each sleeping forever. Again, each
41 > thread had a unique pid.
42 >
43
44 and that is how it is done, isn't it?
45
46 > I have also checked the kernel config. FUTEX support was enabled, but
47 > the top level selector (EXPERT options) was not selected. I guess the
48 > top level selector just exposes the FUTEX selector and doesn't really
49 > affect whether it is enabled or not.
50
51 indeed.
52
53 >
54 > So, what I am wondering now, is my system configured for NPTL or not?
55
56 pretty sure: yes.
57
58 How about less YOURAPP:
59 Dynamic section at offset ... contains 27 entries:
60 Tag Type Name/Value
61 0x0000000000000001 (NEEDED) Shared library: ....
62 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
63 ?
64
65 --
66 #163933

Replies

Subject Author
Re: [gentoo-user] Is my system (really) using nptl Timur Aydin <ta@××××××.org>