public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Wrong number of cpus detected/reported
@ 2003-06-11  0:04 Lauro, John
  0 siblings, 0 replies; 16+ messages in thread
From: Lauro, John @ 2003-06-11  0:04 UTC (permalink / raw)
  To: Timothy Miller; +Cc: linux-kernel

What kernels balance the loads properly?  When I did some simple tests
with a dual Xeon 2.4, I couldn't get it Linux to balance properly.
About 30% of the time it would be off balance with two CPU bound
processes, and that is about the statistical rate.  I think that was
with 2.4.20, but might have been 2.4.18.  With 3 processes, one would
always get an unfair advantage compared to the other two.

> -----Original Message-----
> From: Timothy Miller [mailto:miller@techsource.com]
> Sent: Tuesday, June 10, 2003 5:09 PM
> To: David Schwartz
> Cc: xyko_ig@ig.com.br; linux-kernel@vger.kernel.org
> Subject: Re: Wrong number of cpus detected/reported
> 
> But if the kernel doesn't have HT support, then it won't necessarily
> balance loads properly.
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <434747C01D5AC443809D5FC5405011310B7190@bobcat.unickz.com>]
* RE: Wrong number of cpus detected/reported
@ 2003-06-10 20:35 Lauro, John
  0 siblings, 0 replies; 16+ messages in thread
From: Lauro, John @ 2003-06-10 20:35 UTC (permalink / raw)
  To: xyko_ig, linux-kernel

As someone else mentioned, it is probably hyper threading.  Run 'top'
and see if you get per cpu stats.  If it is hyperthreading, you should
be able to disable it in the BIOS.

IMO, hyperthreading is evil on an SMP box.  The system doesn't know
that not all CPUs are not created equal, and so if you have 4 CPU
intensive processes, then you have a good chance that 2 of the
processes will run at a reduced rate on the same CPU and one (or 2)
CPUs stay mostly idle...  All my benchmarks gave lower performance
with hyperthreading enabled.  I forget the kernel version, but I think
it was 2.4.20, might have been 2.4.18.

On a single CPU box, hyperthreading is probably a plus. I wonder if
2.5 handles hyperthreading any better. 

> -----Original Message-----
> From: José Francisco Ribeiro Neto [mailto:xyko@ipiranga.com.br]
> Sent: Tuesday, June 10, 2003 2:51 PM
> To: linux-kernel@vger.kernel.org
> Subject: Wrong number of cpus detected/reported
> Importance: High
> 
> Hi,
> 
> first of all please apologize me because I didn't subscribe the
list. I
> really even don't know if this list is the appropriate place to have
my
> question discussed but I didn't found any better one.
> 
> I installed a RedHat 7.1 system on a 4 way 1.4 Gz Compaq DL580
server
> with kernel 2.4.2 and everything goes right. Because of some other
> prerequisite needs I had to upgrade the kernel to 2.4.9-34.
> 
> After the upgrade the system is reporting that the machine has 8 cpu
> instead of 4. I have been looking for some kind of information on
the
> Internet (www.google.com/linux) about that but I didn't have
success.
> 
> Does anybody can tell me if I will face some major problem and why
the
> system is detecting (or only reporting) the wrong number of cpus ?
There
> is anything that I can do to have my system detecting the right
number
> of cpus ?
> 
> Attached there are a tar.gz file containing :
> 
> nohup.out => standard output from make bzImage
> modules.out => standard output from make modules
> modules.err => standard error from make modules
> cpuinfo => /proc/cpuinfo
> 
> The kernel was compiled using the kernel.....-enterprise config from
> /usr/src/linux-2.4/configs (smp=yes, highmem=64M)
> 
> Thanks in advance.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Wrong number of cpus detected/reported
@ 2003-06-10 18:50 José Francisco Ribeiro Neto
  2003-06-10 20:17 ` David Schwartz
  0 siblings, 1 reply; 16+ messages in thread
From: José Francisco Ribeiro Neto @ 2003-06-10 18:50 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

Hi,

first of all please apologize me because I didn't subscribe the list. I 
really even don't know if this list is the appropriate place to have my 
question discussed but I didn't found any better one.

I installed a RedHat 7.1 system on a 4 way 1.4 Gz Compaq DL580 server 
with kernel 2.4.2 and everything goes right. Because of some other 
prerequisite needs I had to upgrade the kernel to 2.4.9-34.

After the upgrade the system is reporting that the machine has 8 cpu 
instead of 4. I have been looking for some kind of information on the 
Internet (www.google.com/linux) about that but I didn't have success.

Does anybody can tell me if I will face some major problem and why the 
system is detecting (or only reporting) the wrong number of cpus ? There 
is anything that I can do to have my system detecting the right number 
of cpus ?

Attached there are a tar.gz file containing :

nohup.out => standard output from make bzImage
modules.out => standard output from make modules
modules.err => standard error from make modules
cpuinfo => /proc/cpuinfo

The kernel was compiled using the kernel.....-enterprise config from 
/usr/src/linux-2.4/configs (smp=yes, highmem=64M)

Thanks in advance.

[-- Attachment #2: files.tar.gz --]
[-- Type: application/x-gzip, Size: 41242 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-06-11 21:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <434747C01D5AC443809D5FC5405011310B7169@bobcat.unickz.com>
2003-06-10 20:21 ` Wrong number of cpus detected/reported John Appleby
2003-06-10 20:36   ` Samuel Flory
2003-06-10 21:04     ` Steven Cole
2003-06-10 21:35       ` Alan Cox
2003-06-10 21:52         ` Steven Cole
2003-06-10 22:06           ` Alan Cox
2003-06-10 22:16           ` mikpe
2003-06-11 16:17             ` Timothy Miller
2003-06-11 16:28               ` mikpe
2003-06-11 21:26               ` Con Kolivas
2003-06-11  0:04 Lauro, John
     [not found] <434747C01D5AC443809D5FC5405011310B7190@bobcat.unickz.com>
2003-06-10 21:11 ` John Appleby
  -- strict thread matches above, loose matches on Subject: below --
2003-06-10 20:35 Lauro, John
2003-06-10 18:50 José Francisco Ribeiro Neto
2003-06-10 20:17 ` David Schwartz
2003-06-10 21:08   ` Timothy Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox