LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2012, 09:26 AM   #1
grovep
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
2 CPUs but should be 1?


Hi I am slowly learning the basics of linux and have Debian Squeeze (6.0.6) installed on my old pc as well as Win XP dual boot using grub. The installation seems to be running slow so I am in the process of reinstalling iceweasel and dabbling. However I have noticed that Debian seems to think I have 2 CPUs where I only have one. If I run
Code:
 cat /proc/cpuinfo | grep "model name"
I get 2 cpus both the same as below.
Code:
model name	: Intel(R) Pentium(R) 4 CPU 2.80GHz
model name	: Intel(R) Pentium(R) 4 CPU 2.80GHz
System monitor also thinks I have 2 CPUs and reports activity for both?
However the PC is an HPD330 which only has 1 CPU P4 2.8. Is there an error in my installation of have I just misunderstood?

Last edited by grovep; 11-09-2012 at 09:30 AM.
 
Old 11-09-2012, 09:46 AM   #2
shefla
Member
 
Registered: Oct 2012
Location: France
Distribution: Archlinux
Posts: 36

Rep: Reputation: 5
Hi,

If I am right, it may be hyperthreading.
Honestly I don't remember if Pentium 4 already get this.
I would search for below keyword in cpuinfo file:
- physical id
- processor

This should report the total number of physical CPUs:
grep -i "physical id" /proc/cpuinfo | sort -u | wc -l

This should report the total number of logical CPUs:
grep -i "processor" /proc/cpuinfo | sort -u | wc -l

I hope this will help.
Regards
 
1 members found this post helpful.
Old 11-09-2012, 09:48 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this mite help:
http://www.linuxquestions.org/questi...ml#post4782300
 
Old 11-09-2012, 10:28 AM   #4
grovep
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I'll check these out. Yes I think the CPU does do Hyperthreading so that is probably it
I'll close question down once checked out
Thanks for your help
 
Old 11-09-2012, 01:58 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,664

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
This may have nothing for you...

Just an FYI: if you had a quad core processor you would get reports as if you had 4 processors. the utilities actually count CORES, they cannot 'see' how they are packaged.

I am not sure that this is involved in your specific case, just a point of clarification.
 
Old 11-09-2012, 02:55 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ in that case it would probably count 8 cpu's if hyperthreading is activated.
 
Old 11-15-2012, 08:12 AM   #7
grovep
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for you help - yes I believe it was the hyper-threading that was confusing me
 
  


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
16 cpus? 18Googol2 Linux - Hardware 7 04-04-2009 03:11 AM
CPUs totallynewguy Linux - Hardware 3 08-29-2005 10:06 PM
Via CPUs 3dmike Linux - Hardware 2 03-22-2004 12:39 PM
2 CPUs jhirshon Linux - Newbie 2 01-31-2004 05:59 PM
What CPUs does everyone use? Guru3 Linux - Hardware 43 01-22-2004 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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