LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2010, 08:04 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 627
Blog Entries: 1

Rep: Reputation: 48
missing number of cores in according to /proc/cpuinfo


Only lately I notice that my CentOS 5.2 does not detect a second core according to the /proc/cpuinfo :

Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
stepping : 11
cpu MHz : 1200.000
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
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 syscall nx lm constant_tsc up ida pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4426.68
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
When I boot to Fedora 9, I get :

Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
stepping : 11
cpu MHz : 800.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
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 pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida
bogomips : 4388.96
clflush size : 64
cache_alignment : 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) Core(TM)2 Duo CPU T7500 @ 2.20GHz
stepping : 11
cpu MHz : 800.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
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 pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm ida
bogomips : 4388.78
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Who is at fault ? CentOS or the intel cpu ?
 
Old 01-05-2010, 09:55 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Are you running a non-smp kernel for CentOS ? ( uname -a )
 
Old 01-05-2010, 10:58 PM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
here it is:

Quote:
centos52-64-fuj ~]$ uname -a
Linux centos52-64-fuj 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
 
Old 01-06-2010, 08:52 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Are you booting CentOS with the "maxcpus=1" kernel parameter?

Does /sys/devices/system/cpu/cpu1/online exist? Does it contain the numeral "0"? If so, echo "1" to that path.
 
Old 01-06-2010, 10:23 AM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
add
Code:
cpu=2 cpus=2 maxcpu=2
in the grub command line when you boot and see if it work, you can add them dynamically by pressing escape, then "e" on the kernel line. To boot, press "enter" and "b"
 
Old 01-06-2010, 07:52 PM   #6
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
added cpu=2 cpus=2 maxcpu=2 maxcpus=2

but still one core is detected.

Is it maxcpu or maxcpus ? Linux is more stringent than an English Literature professor at Cambridge.
 
Old 01-07-2010, 08:19 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What's your entire boot line?

Does /sys/devices/system/cpu/cpu1/online exist? Does it contain the numeral "0"? If so, echo "1" to that path.

What does
Code:
grep SMP /boot/config-`uname -r`
return when booted into CentOS?

Last edited by AlucardZero; 01-07-2010 at 08:26 AM.
 
Old 01-07-2010, 11:21 PM   #8
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Quote:
[root@centos52-64-fuj cpu]# pwd
/sys/devices/system/cpu
[root@centos52-64-fuj cpu]# ls
cpu0 sched_mc_power_savings
[root@centos52-64-fuj cpu]#
boot line:

Quote:
title [2] CentOS (2.6.18-92.el5) @ sda4
root (hd0,3)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/12 rhgb quiet noapic cpu=2 cpus=2 maxcpu=2
initrd /boot/initrd-2.6.18-92.el5.img

Finally:

Quote:
[root@centos52-64-fuj grub]# uname -a
Linux centos52-64-fuj 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Quote:
[root@centos52-64-fuj grub]# grep SMP /boot/config-`uname -r`
# CONFIG_X86_VSMP is not set
CONFIG_SMP=y
CONFIG_SUSPEND_SMP=y

Last edited by centguy; 01-07-2010 at 11:22 PM.
 
Old 01-08-2010, 02:49 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I have a 4 CPU machine, and with some kernels, on some boots, only 3 CPUs are reported. I never worked out what the problem was, since it stopped happening a few years ago. So, what happens if you reboot?

Cheers,

Evo2.
 
Old 01-08-2010, 09:53 AM   #10
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I reboot it everyday, it is my laptop.
 
Old 01-08-2010, 02:40 PM   #11
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by evo2 View Post
I have a 4 CPU machine, and with some kernels, on some boots, only 3 CPUs are reported. I never worked out what the problem was, since it stopped happening a few years ago. So, what happens if you reboot?

Cheers,

Evo2.
32bit kernel have support for many CPUs, but many distributions enabled the support only in "bigsmp" or "bigcpu" kernel because having support for 256 (now 1024) cpus added some complexity and weight in the running kernel. Now the "normal" max number is 4, but to have more you still have to enable them in kernel configs. That's why Linux don't see all core/cpu when a brand new generation arrive with 2x more cores. It happened again with the i7 (it showed only 4 out of 8, even with HT enabled).
 
Old 01-09-2010, 06:56 PM   #12
is-1-prime?
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Rep: Reputation: 0
I think the main reason is RHEL/CentOS kernels cannot handle certain features in the
Fujitsu LifeBook A6030 BIOS. Well, at least I know what combination of distro and machine I should carefully choose next time.
 
Old 01-09-2010, 07:23 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/12 rhgb quiet noapic cpu=2 cpus=2 maxcpu=2
That noapic is probably the problem - should be messages in dmesg to tell you you now only have 1 CPU active. Take it out, and all the cpu keywords you added.
 
Old 01-10-2010, 12:16 AM   #14
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
If I take out noapic, there is tonnes of bothering system messages such as

Disabling IRQ #169

on all terminals. I believe one of my posts in LQ is about this.

I might give a boot without noapic and report back.

Thanks!

(p.s. The irq 169 problem has been "fixed" in my LQ thread:

http://www.linuxquestions.org/questi...irq-169-654086 )

Last edited by centguy; 01-10-2010 at 12:22 AM.
 
Old 01-10-2010, 09:22 PM   #15
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Quote:
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/12 rhgb quiet
is giving me two cores.

So the culprit is noapic. I have done some updates on the OS
along the way, it
seems the annoying irq messages disappear (let hope so, if not, I am going to use only one core to avoid annoying messages)
 
  


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
It is possible to modify the /proc/cpuinfo ? fc3_fan Linux - Newbie 21 01-30-2013 02:43 PM
Missing megahertz in /proc/cpuinfo on AMD64 chips apad Slackware 3 02-16-2007 10:36 AM
Proc/CpuInfo sipsipi Linux - Software 4 03-03-2006 11:42 AM
Missing CPU in /proc/cpuinfo xerophyte Linux - Hardware 0 03-03-2006 10:20 AM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 06:54 AM

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

All times are GMT -5. The time now is 07:44 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