Subject: Missing option to print the number of cores (excluding hyperthreads)

From: Goswin von Brederlow <[email-masked]>
Date: Fri, 21 May 2010 10:41:20 +0200

Package: coreutils
Version: 8.4-1
Severity: wishlist
File: /usr/bin/nproc

Hi,

linux is aware of cores and hyperthreads. It would be nice if one
could ask nproc the number of actual cores as opposed to threads for
the purpose of running cache intensive jobs where hyperthreading only
slows things down.

MfG
	Goswin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.6-xen-2010.02.18 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.49-2   Access control list shared library
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libselinux1                   2.0.89-4   SELinux runtime shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information