Re: HELP: Number of CPU cores is not right

2011-06-19 Thread Camaleón
On Sat, 18 Jun 2011 21:57:28 -0500, Ron Johnson wrote:

 On 06/18/2011 05:21 AM, Camaleón wrote:

 Ah, found this thread:

 Debian stock kernel config -- CONFIG_NR_CPUS=32?
 http://lists.debian.org/debian-user/2010/10/msg01391.html

 Oops, no rationale then :-)


 I hardly call module size blows up to be no rationale for limiting the
 number of CPUs.

Well, if now is set to 512, the problem was not that big, I mean... 
solvable.

 Why 32?  Well, it's a nice power of 2 and lots more than the number of
 cores in 99.% of all computers.

That seems not to be a very practical approach to base such decision.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.06.19.10.49...@gmail.com



Re: HELP: Number of CPU cores is not right

2011-06-19 Thread Stefan Monnier
 I hardly call module size blows up to be no rationale for limiting the
 number of CPUs.
 Well, if now is set to 512, the problem was not that big, I mean... 
 solvable.

IIRC the Linux kernel handling of CONFIG_NR_CPUS has changed: it used to
allocate potentially large static data of size proportional to
CONFIG_NR_CPUS, but has been changed recently to do that dynamically
based on the actual number of CPUs.  Which is why the default can now be
set to 512 without suffering from undue blow up.

 Why 32?  Well, it's a nice power of 2 and lots more than the number of
 cores in 99.% of all computers.
 That seems not to be a very practical approach to base such decision.

On the contrary, it seems eminently practical.


Stefan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/jwvei2pkqon.fsf-monnier+gmane.linux.debian.u...@gnu.org



Re: HELP: Number of CPU cores is not right

2011-06-18 Thread Camaleón
On Fri, 17 Jun 2011 20:49:41 +0200, Armin Kneip wrote:

 The computer OS running has 48-core CPU, but the OS now only can
 recognize 32-core of CPU.
 The kernel version is 2.6.26-2-amd64.
 
 The current Debian kernel supports only 32 cpu's. Set CONFIG_NR_CPUS to
 48 or higher and recompile your kernel.

True! :-o

sm01@stt008:~$ grep -i nr_cpus /boot/config-2.6.26-2-amd64
CONFIG_NR_CPUS=32

Where is that limit coming from? It must be a rationale for doing it so.

(searching...)

Ah, found this thread:

Debian stock kernel config -- CONFIG_NR_CPUS=32?
http://lists.debian.org/debian-user/2010/10/msg01391.html

Oops, no rationale then :-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.06.18.10.21...@gmail.com



Re: HELP: Number of CPU cores is not right

2011-06-18 Thread Ron Johnson

On 06/18/2011 05:21 AM, Camaleón wrote:

On Fri, 17 Jun 2011 20:49:41 +0200, Armin Kneip wrote:


The computer OS running has 48-core CPU, but the OS now only can
recognize 32-core of CPU.
The kernel version is 2.6.26-2-amd64.


The current Debian kernel supports only 32 cpu's. Set CONFIG_NR_CPUS to
48 or higher and recompile your kernel.


True! :-o

sm01@stt008:~$ grep -i nr_cpus /boot/config-2.6.26-2-amd64
CONFIG_NR_CPUS=32

Where is that limit coming from? It must be a rationale for doing it so.

(searching...)

Ah, found this thread:

Debian stock kernel config -- CONFIG_NR_CPUS=32?
http://lists.debian.org/debian-user/2010/10/msg01391.html

Oops, no rationale then :-)



I hardly call module size blows up to be no rationale for limiting the 
number of CPUs.


Why 32?  Well, it's a nice power of 2 and lots more than the number of 
cores in 99.% of all computers.


--
Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt.
Samuel Adams, essay in The Public Advertiser, 1749


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dfd6598.2000...@cox.net



HELP: Number of CPU cores is not right

2011-06-17 Thread Junjie QIAN
Hi all,

Now I have one more problem is that the OS cannot recognize the right number
of CPU Cores. The OS is Debian_5.0.8_amd64.

The computer OS running has 48-core CPU, but the OS now only can recognize
32-core of CPU.
The kernel version is 2.6.26-2-amd64.

I tried to update the version of the kernel, but failed.

So could anyone give me some advice to fix this?
Thanks!
Best
Junjie

On Fri, Jun 17, 2011 at 11:12 AM, Junjie QIAN qjj1...@gmail.com wrote:

 Hi all,

 I am a new user of Debian OS, and I am running a simulator on Debian
 5.0.8-amd64 OS.
 The problem I encounter is that when I execute apt-get install
 libboost1.35-dev libboost-system1.35-dev , and the result shows that
 Couldn't find package libboost1.35-dev, libboost-system1.35-dev.

 I have tried add some new address to /etc/apt/sources/list. (deb
 http://http.us.debian.org/debian stable main contrib non-free deb
 http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
 deb http://security.debian.org stable/updates main contrib non-free #
 Uncomment if you want the apt-get source function to work #deb-src
 http://http.us.debian.org/debian stable main contrib non-free #deb-src
 http://non-us.debian.org/debian-non-US stable/non-US main contrib
 non-free). But it doesnot work.

 Any idea about this?
 Thanks!
 Best
 Junjie




-- 
Junjie QIAN/钱俊杰


Re: HELP: Number of CPU cores is not right

2011-06-17 Thread Armin Kneip
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 The computer OS running has 48-core CPU, but the OS now only can recognize
 32-core of CPU.
 The kernel version is 2.6.26-2-amd64.

The current Debian kernel supports only 32 cpu's.
Set CONFIG_NR_CPUS to 48 or higher and recompile your kernel.


Regards,

Armin Kneip
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJN+6HAAAoJEHWfTapWPAmcyawP/jAJMWv6l3JErFo4OJ5QVX3V
ZsrjsnwsboANP3SS9xGEVSXBN/H+sHjYBuljr6WNDs75A9jjQuTgGkUunUAW8a4T
MHgjccEEwJ9fR8KRzZqDJ/ozGFoZTDuAJNN7qnYczb/F9T9aWPMf0r2dqt1k/IRl
6PGwhvqa2/OqtGUq1DPbt0WE/J4HDK8+hXHVtWKw3kItADkYfOKHUyDJBqJaZ4et
fexPJK1BreFrRpGE0odfN/6TLxxJY/54ZAcwEwUvM4cGBD5rY/F7Yb7H6lwzypKY
fvLBLLQWbRfak0UhS1LWVUWE4fnDiQf1/4G8oG2JAHIcSP0rrnQzgLaptXDA2+Yr
WtgsoOIORanbktzUT/6vT/BwtywM2LIPtHQhVgEGVzY9Eq46GDJWYpQx0zpI/ROv
g61DGc0qffzNwGEaVFSMEpfOKiVjfZxHkEuAdS+1pm3JTf2EJ+2i+Uarwg0a56JW
2sMxIpejJ0+nWVP8qjlu6usaKKi8x9rdTy+qYnt3U4FQ8tI4wl5zypHx5XGpmdXI
T26Bstp16e7KAqGkXyBKyGxDVjGuaTFkqv7qsHjUnjzF0m5O+Yub1cIbZIFT/idl
aZvlgglVnzxI4Nm2+NNyQTfCu7zaDMvMCyyUtEYP0S/aY/6US1TpGuzEaaz4DHOO
z7Z/IhGgmkyf41wsYjLB
=pwSp
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4dfba1c5.7060...@kneip.me



Re: HELP: Number of CPU cores is not right

2011-06-17 Thread Lisi
On Friday 17 June 2011 19:22:44 Junjie QIAN wrote:
 I tried to update the version of the kernel, but failed.

To update it you will need to get the kernel from lenny backports.  
http://linux.koolsolutions.com/2009/02/20/debian-lenny-backports/

I remain puzzled, and would be grateful if someone could explain to me, as to 
how you are updating from Squeeze (= stable, Debian 6) and running Lenny (= 
old-stable, Debian 5).

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201106172017.46303.lisi.re...@gmail.com



Re: HELP: Number of CPU cores is not right

2011-06-17 Thread Andrew Reid
 Hi all,
 
 Now I have one more problem is that the OS cannot recognize the right
 number of CPU Cores. The OS is Debian_5.0.8_amd64.
 
 The computer OS running has 48-core CPU, but the OS now only can recognize
 32-core of CPU.
 The kernel version is 2.6.26-2-amd64.
 
 I tried to update the version of the kernel, but failed.

  Not sure what you mean here, but if you upgrade the whole
business to squeeze, you will solve your problem.

  The issue is that the Debian stock kernel is compiled
with a maximum CPU number of 32 in lenny, but 512  
in 64-bit squeeze.

  Alternatively, you can rebuild your own kernel, starting
with the default config file but changing CONFIG_NR_CPUS 
to 48 or more.

-- A.
--
Andrew Reid / rei...@bellatlantic.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201106171901.14569.rei...@bellatlantic.net