NPTL vs LinuxThreads
delacrua 2 мая, 2007 - 21:17
в чём собственно различия, плюсы и минусы для ядер 2.6.* ?
профиль desktop, x86
собираю glibc-2.5
localhost / # emerge -pv glibc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-libs/glibc-2.5 USE="nls -build -glibc-compat20 -glibc-omitfp (-hardened) (-multilib) (-nptl) (-nptlonly) -profile (-selinux)" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
убраны оба флага а именно nptlonly и nptl, раньше все (не знаю почему) кричали "собирай с NPTL !",
то теперь когда флагов нет задаюсь вопросом: "а как отразится это на системе?"
»
- Для комментирования войдите или зарегистрируйтесь
а теперь без
а теперь без нтпл - низя...
глибц 2.5 тока
глибц 2.5 тока нптл и поддерживает :-)
так что флаги убрали :-)
_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)
вполне
вполне доступно =)
спасибо.
НиФига !
Вывод либы говорит об обратном, ни о каких Native POSIX Threads Library речи не идёт !
localhost linux # /lib/libc.so.6
.
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.1 (Gentoo 4.1.1-r3).
Compiled on a Linux 2.6.17 system on 2007-05-01.
Available extensions:
C stubs add-on version 2.1.2
crypt add-on version 2.1 by Michael Glad and others
Gentoo patchset 1.3.2
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
linuxthreads-0.10 by Xavier Leroy
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Support for some architectures added on, not maintained in glibc core.
BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
ещё как
ещё как фигА!
evadim ~ # uname -a Linux evadim 2.6.19-gentoo-r5 #7 Wed Apr 25 18:42:11 MSD 2007 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux evadim ~ # /lib/libc.so.6 GNU C Library stable release version 2.5, by Roland McGrath et al. Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.1.1 (Gentoo 4.1.1-r1). Compiled on a Linux 2.6.17 system on 2007-01-01. Available extensions: C stubs add-on version 2.1.2 crypt add-on version 2.1 by Michael Glad and others Gentoo patchset 1.3 GNU Libidn by Simon Josefsson GNU libio by Per Bothner NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Native POSIX Threads Library by Ulrich Drepper et al Support for some architectures added on, not maintained in glibc core. BIND-8.2.3-T5B Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. evadim ~ #
vadim vadim # uname -a Linux vadim 2.6.19-gentoo-r5 #5 SMP Fri Mar 23 20:47:20 MSK 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux vadim vadim # /lib/libc.so.6 GNU C Library stable release version 2.5, by Roland McGrath et al. Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.1.1 (Gentoo 4.1.1-r3). Compiled on a Linux 2.6.17 system on 2007-03-14. Available extensions: C stubs add-on version 2.1.2 crypt add-on version 2.1 by Michael Glad and others Gentoo patchset 1.4 GNU Libidn by Simon Josefsson GNU libio by Per Bothner NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Native POSIX Threads Library by Ulrich Drepper et al Support for some architectures added on, not maintained in glibc core. BIND-8.2.3-T5B Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. vadim vadim #
покажи ка нам
eselect profile list
в генту просто
в генту просто прикручиваеться патч с портом linuxthreads
в ветках 2.6 от него отказались...
и используются уже позикс треды... патчи посмотри внимательно и посмори исходники глибц для прояснения...
_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)
evadim , ты
evadim , ты прав,
Available profile symlink targets:
[1] default-linux/x86/2006.1
[2] default-linux/x86/no-nptl *
[3] default-linux/x86/no-nptl/2.4
[4] default-linux/x86/2006.1/desktop
[5] default-linux/x86/2007.0
[6] default-linux/x86/2007.0/desktop
[7] hardened/x86/2.6
[8] selinux/x86/2006.1
я со стэйджа 1 собирал, там он автоматом переключил на этот профиль...
автоматом оно
автоматом оно не переключает.. просто он по умолчанию стоит ;-)
_________________
Gentoo GNU/Linux 2.6.21 GCC 4.1.2 Dual Xeon
Working on Gentoo for iPAQ hx4700 :-)