LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2003, 11:26 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
how to find out how many processors on the server


when I do command: top

I saw :

CPU0 states: 0.0% user, 0.1% system, 0.0% nice, 99.0% idle
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle



does it mean that I have two porcessors???? but the person who ordered the server told me thathe order only one processor.

I just want to confirm
 
Old 11-25-2003, 11:37 AM   #2
hol
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat, Mandrake
Posts: 1

Rep: Reputation: 0
Chances are you're running on a machine with Intel's HyperThreading if you know you have one CPU but Linux tells you you have two. Linux sees HT Processors as 2 CPUs. The only way to know for sure is to check your system's POST boot-up screen or assume that if you have a Pentium 4 with 3 GHz or more that it does.

You can look at the file /proc/cpuinfo and see if (going by memory here) the characters 'ht' are listed in the line called 'flags' for CPU0.

As a side note it's probably useful to disable hyper-threading while running Linux with Kernel version 2.4 (which you probably have) since the second CPU is 'not quite really' a second processor and the kernel may spend time scheduling work for the virtual processor when you really do not get the benefit from it.
 
Old 11-25-2003, 11:43 AM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Is it P4? Hyperthreading will make it show up as two processors.
 
Old 11-25-2003, 11:45 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Quote:
As a side note it's probably useful to disable hyper-threading while running
Linux with Kernel version 2.4 (which you probably have) since the second CPU is 'not quite really' a second processor and the kernel may spend time scheduling work for the virtual processor when you really do not get the benefit from it.
My on this...

I have a dual processor with hyper-threading enabled. I was interested in whether hyper-threading actually increased performance and tested this by running two and four setiathome clients. With hyper-threading each of the four setiathome clients did run slower than the two unthreaded clients, but not half as slow. I didn't keep the figures but I think the gain in performance was about 50% with hyperthreading.

John

Last edited by jkobrien; 11-25-2003 at 11:49 AM.
 
Old 11-25-2003, 12:41 PM   #5
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Original Poster
Rep: Reputation: 30
thanks so much for the values input, by the way, what is hyper threading mean ????
 
Old 11-27-2003, 10:46 AM   #6
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
The easyest way to tell is to open your box and have a look.
 
Old 11-27-2003, 04:53 PM   #7
schpanky
LQ Newbie
 
Registered: Nov 2003
Location: Boston
Distribution: Gentoo... soon... I hope.
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by ashley75
thanks so much for the values input, by the way, what is hyper threading mean ????
Hyper-Threading is the hardware-level system in which the CPU emulates dual processors, thus spreading work over "two" processors or loading the program to either processor for seperate processing.

In theory, it's neat because if you have two 3.06 Intel Pentium-4 Based Xeons then you theoretically have 4 processors !
 
Old 11-27-2003, 05:27 PM   #8
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
just to add, you can see cpu info in /proc/cpuinfo.
so:
cat /proc/cpuinfo
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need to find a mp3 server fuzzhead85 Linux - Software 3 09-16-2010 08:35 PM
How to find out if my RedHat machine is running both processors? jleavitt Red Hat 4 09-10-2004 02:35 PM
Where do I find server? UbErBeAsT Linux - Games 2 01-23-2004 07:16 PM
Will Linux Support Amd Processors And Other Than Intel Processors? halovivek Linux - Hardware 6 09-02-2003 01:08 PM
(Xconfigurator) doesn't find server lyes143 Linux - General 3 07-06-2002 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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