Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maximum number of CPUs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Mon Jun 18, 2012 12:28 pm    Post subject: Maximum number of CPUs Reply with quote

Hi,

There is an option in kernel: Maximum number of CPUs (CONFIG_NR_CPUS) - what is the proper setting for Intel i5 - 2 or 4?
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon Jun 18, 2012 12:34 pm    Post subject: Reply with quote

Set it to 16 -- this way you're future proofed for octo-i5 variants with HT ;-)
All this option does is set the size of the array which contains CPU data;
setting it low doesn't save any significant amount of RAM or speed up the
kernel.
Back to top
View user's profile Send private message
kite14
Apprentice
Apprentice


Joined: 07 Nov 2006
Posts: 216
Location: Italy

PostPosted: Mon Jun 18, 2012 5:04 pm    Post subject: Reply with quote

I set it to 4; i5 are dual-core CPUs with support for HyperThreading and according to Pappy's comment on his Kernel Seed Settings page:
Quote:
(xx) Maximum number of CPUs
This setting was put in the seed for the purposes of seeing who was awake, and who was asleep at the wheel. Since each CPU claimed takes up approximately eight kilobytes in kernel image size, it's wise to change this number to match the true number of processors in your system. The default setting is ridiculous.
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 711
Location: IL

PostPosted: Fri Jun 22, 2012 6:35 pm    Post subject: Reply with quote

Mine is set to 4096


cat /etc/kernels/kernel-config-x86_64-3.3.8-gentoo | grep CONFIG_NR_CPUS
CONFIG_NR_CPUS=4096

I have i7-8 cores 4GB memory.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9883
Location: almost Mile High in the USA

PostPosted: Sun Jun 24, 2012 4:07 am    Post subject: Reply with quote

I think you'll have to check the specs of the CPU carefully but setting it to something like 8 or 16 should always be safe. Probably 32 would be the highest reasonable number for most consumer products. Setting it higher just wastes even more memory.

i5's I thought were pure cores, no HT. i3 has HT but lacks all cores. i7 has real cores and HT... Basically need to set the number of CPUs to how many threads the processor looks like to to the machine.

Some of the settings I used:
My i7-2700K: 8 cores (4 cores, HT) With 8G I could spare the RAM but likely I don't think I'll get another CPU for this board...
My Q9550S: 4 cores (4 cores, no HT) 4GB. I don't think there is a HT quad core socket 775...
My E6700: 4 cores (2 cores, no HT) 4GB. This is futureproofing in case I stick a Core2 Quad into this machine.
My Atom N270: 2 cores (1 core, HT). 2GB. Solderred CPU...

You can always recompile later if you want anyway...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum