LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-24-2008, 02:22 PM   #1
prejudged_fire
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Rep: Reputation: 0
"Maximum number of CPUs" option when compiling kernel


Does that option refer to the maximum number of physical CPUs the kernel will support, or the number of cores it will support?
 
Old 08-24-2008, 05:29 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
yes ...

Haven't looked at the code for this but I'd be guessing the number of "entities" that processes can be possibly dispatched on. I always make sure it's more than I reckon I'll need.
 
Old 08-24-2008, 06:08 PM   #3
prejudged_fire
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
yes ...

Haven't looked at the code for this but I'd be guessing the number of "entities" that processes can be possibly dispatched on. I always make sure it's more than I reckon I'll need.
So it's the number of cores then? If so, I was going to set it to 4. I have a dual core CPU, but I could always get a Quad later. But if it's the physical processors, I'd only set it to 2, of course.

Last edited by prejudged_fire; 08-24-2008 at 06:12 PM.
 
Old 08-24-2008, 08:10 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
There is no (very minor) benefit in setting it to the actual number of processors. I use 8 for everything, unless I need more. Scheduler queues get built for each processor on each (NUMA) node found - they're not built for all the processors you set as the limit. I think that's right, but I haven't actually checked the "early" code.
FWIW Core 2 quad shows up as 4 processors.
 
Old 08-28-2008, 06:56 PM   #5
prejudged_fire
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, thank you for the information
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Maximum Number of cpus with SMP demosp Linux - General 2 10-02-2006 05:33 PM
"root=" option for SATA drives to avoid kernel panic neelay1 Linux - Software 1 05-01-2006 01:18 PM
CONFIG_NR_CPUS (maximum num cpus option) jrtayloriv Linux - Newbie 3 01-16-2005 01:04 PM
"fast network address translation" kernel option dunkyb Linux - Networking 0 04-20-2003 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration