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 05-16-2007, 05:25 PM   #1
dpapas665
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
2.4.21-37EL - dual core Xeon & SMP


I'm hoping someone can clarify what's going on here. I've installed RHEL 3 with the aforementioned kernel on a 64-bit dual core Xeon box. Booting the SMP kernel results in a panic with the "no em64t cpu support in this kernel" message. However, booting the uniprocessor kernel not only runs fine, but shows two processors running in both top and /proc/cpuinfo.

Though uname -r shows kernel 2.4.21-37EL running, uname -a shows 2.4.21-37EL #1 SMP. It seems like the regular kernel is running both cores just fine even though everything I've read suggests that one must run an SMP kernel to get them both running. I've even checked the grub config to make sure the images weren't reversed. ;-) Can anyone help explain this apparent discrepancy? What am I missing?

Thanks all,
-D.
 
Old 05-16-2007, 07:25 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You are running an smp kernel, you just said so: "uname -a shows 2.4.21-37EL #1 SMP".
 
Old 05-16-2007, 09:00 PM   #3
dpapas665
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well, I can accept that answer, but for the other evidence. Namely, the install placed the usual 2 kernels in the grub config, one explicitly labeled SMP, and one (the one I can boot) not. Also, uname -r doesn't report SMP. Not trying to be cheeky, just trying to get clear on this.

Thanks,
-D.
 
Old 05-17-2007, 06:40 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Then remove the kernel which is not right for your system very carefully;

rpm -qa | grep kernel

Then carefully remove the one you do not want;

rpm -e kernel<the rest from the output from the command used above here>

Also read the manpage for uname: man uname

Code:
       -r, --kernel-release
              print the kernel release
A little exercise for you;

uname -s
uname -sr
unamr -srv
 
Old 05-17-2007, 07:14 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
What does /proc/cpuinfo have to say ??? (presuming it exists in 2.4; haven't used it in gawd knows how long.)
 
Old 05-17-2007, 09:42 AM   #6
dpapas665
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Lenard, I follow what you're saying. For now, I've just set the grub default to pick the apparent uniprocessor kernel. I'm just trying to figure out why there would be effectively two SMP kernels with only one labeled up-front as such, typically these installs provide both an SMP and a uniprocessor option, do they not? Or are the image names perhaps just switched? That seems a bit wacky for a commercial package.

syg00, yeah it still exists back there.

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
runqueue : 0
stepping : 6
cpu MHz : 2992.498
cache size : 0 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm ferr syscall lm sse3 monitor ds-cpl gv3 tm2
bogomips : 5976.88
clflush size : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
runqueue : 1
stepping : 6
cpu MHz : 2992.498
cache size : 0 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm ferr syscall lm sse3 monitor ds-cpl gv3 tm2
bogomips : 5976.88
clflush size : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
 
Old 05-17-2007, 10:02 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Well with RHEL5 Red Hat quit making non-smp kernels as all kernels are now smp. maybe this is now true for other versions of RHEL now also. The /proc/cpuinfo is showing that you are running an smp kernel. Maybe the grub entries are wrong, but only you have seen them. Any way since the default is set to boot to the good working kernel then you good to go.

As a suggestion you might want to remove the entry(ies) in grub.conf for the bad kernel(s), this way somebody cannot mistakenly select the wrong one.
 
Old 05-17-2007, 10:33 AM   #8
dpapas665
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Good idea, I probably will edit that out. Sorry though, I wasn't trying to be enigmatic. ;-) The grub.conf in question:

----------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda6
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-37.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.ELsmp ro root=LABEL=/ hda=ide-scsi
initrd /initrd-2.4.21-37.ELsmp.img
title Red Hat Enterprise Linux ES-up (2.4.21-37.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-37.EL ro root=LABEL=/ hda=ide-scsi
initrd /initrd-2.4.21-37.EL.img
------------------------------------------------

I just assumed from the names that ELsmp and EL referred to an SMP and non-SMP kernel, respectively.

Thanks all,
-D.
 
  


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
dual core (SMP) kernel help ..kubuntu Edgy ride153 Linux - Kernel 7 12-19-2006 01:06 PM
What kernel image do I want for my Dual-Core Intel Xeon 5100? Jeozp Debian 8 11-24-2006 03:12 AM
LXer: Penguin Computing Offers Dual-Core Intel Xeon Servers LXer Syndicated Linux News 0 05-29-2006 08:54 AM
Dual Xeon appears as dual-core in 6.1 thanos155 *BSD 4 05-19-2006 12:00 PM
Problem after enabling SMP on dual core amd64 walmartshopper Linux - Software 3 09-26-2005 11:56 AM

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

All times are GMT -5. The time now is 07:48 AM.

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