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

Re: Doubt in NPTL



On Thu, Feb 19, 2009 at 09:44:25AM -0300, Bruno Galindro da Costa wrote:
Hi all!

 How can I enable NPTL in Debian SPARC version? Here my configs:

# cat /proc/version
Linux version 2.6.18-6-vserver-sparc64 (Debian 2.6.18.dfsg.1-24) (
dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)) #1 SMP Sat Dec 27 16:13:09 UTC 2008

# getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10

What release are you running?  It looks like etch, from the kernel
version.  I suspect that lenny will probably have a working NPTL.

On my sparc/sid system (last updated before the lenny release), I get:

  sh-3.2$ uname -a
  Linux blackhole 2.6.26-1-sparc64 #1 Sat Jan 10 17:28:04 UTC 2009 sparc64 GNU/Linux
  sh-3.2$ getconf GNU_LIBPTHREAD_VERSION
  NPTL 2.7
  sh-3.2$ sparc32 /bin/sh
  sh-3.2$ uname -a
  Linux blackhole 2.6.26-1-sparc64 #1 Sat Jan 10 17:28:04 UTC 2009 sparc GNU/Linux
  sh-3.2$ getconf GNU_LIBPTHREAD_VERSION
  NPTL 2.7

I´ve located a libc6-sparc64 package provided by apt-get. Reading on the
google (
http://www.ilikespam.com/blog/how-to-enable-native-posix-threads-on-debian-sarge),
this package provides NPTL to the 2.6* kernels (correct me if I´m wrong).

The libc6-sparc64 package provides a 64-bit libc6.  Most binaries on
Debian sparc are 32-bit binaries, because there is a slight performance
hit if you compile everything 64-bit.  Those 32-bit binaries are
unaffected by libc6-sparc64.  Therefore, simply installing libc6-sparc64
is not likely to provide any benefits.  Anyway, the 32-bit and 64-bit
libcs are compiled from the same source code, so you are likely to get
the same results regardless of which libc you use.

Upgrading to lenny will almost certainly provide a working NPTL
implementation.  I am unsure if it is possible to have NPTL under
sparc/etch, since I don't normally run stable.

After installed that and restart the vserver host phisical machine (not the
vserver guest), the result of getconf GNU_LIBPTHREAD_VERSION is the same ->
linuxthreads-0.10

Can anyone help me?

Yes.  (http://tinyurl.com./e6m6)

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
troff on top of XML: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: