1758342 Members
2368 Online
108868 Solutions
New Discussion юеВ

smp kernel

 
Chakravarthi
Trusted Contributor

smp kernel

Hi,

I have a Machine with Dual CPU, and the kernel which is built on the machine is smp kernel, using the same kernel i want to boot the machine with single cpu support, how this can be accomplished..

thanks
chakri
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: smp kernel

The smp kernel works just fine on single cpu machines. I've tested this myself.

The grub interface has a kernel selection feature at boot time. Just pick it on the list after install.

The config file is called grub.conf and you can set the default numericly.

I have always done my kernel installs from up2date, thats how i get them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Grant
Honored Contributor

Re: smp kernel

As usual, SEP is correct.

I just thought I'd clarify that you don't actually have to do anything at all. Not even change your boot loader config. Just remove the CPU and it will still work. Like SEP, I have done this myself.
Never preceed any demonstration with anything more predictive than "watch this"
Stuart Browne
Honored Contributor

Re: smp kernel

If you want to physically remove a CPU, that's all fine.

However, I am unaware of a 'logical' way to remove a processor (i.e. to tell an SMP kernel to use only one of the two physical processors).
One long-haired git at your service...
Chakravarthi
Trusted Contributor

Re: smp kernel

hi,

append="console=tty0 console=ttyS1,19200n8 maxcpus=1"

by adding above line in lilo.conf, i could boot with one cpu
Chakravarthi
Trusted Contributor

Re: smp kernel

Is there any way to debug the cpu errors,

i'm runnig REDHAT AD, on a PIII server with two processors, machine boots fine,, but when we give load to the machine , machine hangs,,, but with single cpu machine works fine..

Martin P.J. Zinser
Honored Contributor

Re: smp kernel

Hello Chakri,

ok, now you tell us what the problem is ;-)

Can you give us the Redhat version and kernel
(uname -a) you are using. SMP is by no means trivial and things can go wrong. It might be that a kernel upgrade will proof helpful.

Greetings, Martin
Mark Grant
Honored Contributor

Re: smp kernel

I used to get that on an old smp PIII. I never really pinned it down to anything in particular except it only ever seemed to happen when I had X running. As I had X running most of the time anyway, it wasn't a brilliantly useful deduction.

However, after a few kernel releases, download, compile, install, rinse & repeat the problem just went away. So I'd see if you can upgrade your kernel. Maybe upgrade X too
Never preceed any demonstration with anything more predictive than "watch this"
Stuart Browne
Honored Contributor

Re: smp kernel

mm.. maxcpus=.. kewl.. will remember that one..

But yes, as Martin says, more details please!
One long-haired git at your service...
Chakravarthi
Trusted Contributor

Re: smp kernel

Hi,

I'm using a PIII machine with Dual CPU, running Redhat Advanced Server

Red Hat Linux Advanced Server release 2.1AS (Pensacola)

kernel : kernel-2.4.9-e.3

the kernel was compiled for single CPU, so we enabled dual CPU option and recompiled the kernel,

the machine works fine as long as we dont run any processes, once the cpu loads goes up the machine hangs without giving any error, i have to had boot the machine, this can happen anytime, even i'm not able to get the messages on the monitor,


dont know where to start the debug process....
thanks
chakri