LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-16-2009, 10:24 AM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
How to config how many cores used?


I have two inter(R) Xeon(R) cpus with a total of 8 cores.
But for some reason I only want to use 6 of them.
What should I do? Any option in the grub kernel commandline?

Thanks,
Shawn
 
Old 06-16-2009, 11:52 AM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I don't use GRUB, but it should be rather similar to LILO:

There's a kernel boot parameter something like 'max_nr_cpus=6' or 'max_cpus=6' which you could append to your boot line.
Alternately (and more invasive) config it right into the kernel.
 
Old 06-17-2009, 12:58 PM   #3
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
For GRUB

For GRUB: http://kbase.redhat.com/faq/docs/DOC-1202
 
Old 06-18-2009, 04:04 AM   #4
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thank you both.
The maxcpus=* works, which I thought it would be.

I also searched the boot commands for Linux kernel, the following document details it perfectly:
http://www.kernel.org/pub/linux/kern...n_pdf/ch09.pdf

Hope it be helpful for others.

Regards,
Shawn

Last edited by duyuyang; 06-18-2009 at 04:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to activate all my cores Q6600 blither Linux - Kernel 1 04-08-2009 10:01 PM
No of cores in Xeon linuxbeginner0 Linux - Hardware 7 01-23-2008 09:42 AM
cores vs. clockspeed jhwilliams Linux - Hardware 26 10-21-2007 10:35 AM
linux on multiple cores reslowgr Linux - Server 1 01-20-2007 04:35 PM
Cores on Fedora jonty_11 Fedora 2 11-05-2004 10:25 AM


All times are GMT -5. The time now is 04:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration