public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Consistency problem on IPF
@ 2004-07-12  9:13 Marc Gonzalez-Sigler
  2004-07-12 10:06 ` Erich Focht
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Marc Gonzalez-Sigler @ 2004-07-12  9:13 UTC (permalink / raw)
  To: linux-ia64

Hello,

Several weeks ago, I wrote a naive matrix-matrix multiply program.

int main(void)
{
   static double A[N][N], B[N][N], C[N][N];

   /* Initialize A and B */

   /* Main loop */
   for (i=0; i < N; ++i)
     for (j=0; j < N; ++j)
       for (k=0; k < N; ++k)
         C[i][j] += A[i][k]*B[k][j];

   /* Print the sum of all elements of C */
}

The system:

$ cat /proc/cpuinfo
processor  : 0
vendor     : GenuineIntel
arch       : IA-64
family     : Itanium 2
model      : 1
revision   : 5
archrev    : 0
features   : branchlong
cpu number : 0
cpu regs   : 4
cpu MHz    : 1300.000000
itc MHz    : 1300.000000
BogoMIPS   : 1946.15

processor  : 1
[same as processor 0]

$ uname -a
Linux c64 2.6.6 #2 SMP Thu Jun 10 18:03:20 CEST 2004 ia64 GNU/Linux


I started with NQ2, which was a bad idea. I ran the same program 100 
times on an empty system, and saw very different execution times. I 
tried to pin the program to a single CPU, but the results were similar.

NQ2
MIN    = 1.190000
MAX    = 11.470000
MEAN   = 4.686900
MEDIAN = 1.390000
STDDEV = 4.181866

OK. NQ2 was probably a pathological case. Let us try NP0.

NP0
MIN    = 0.670000
MAX    = 1.770000
MEAN   = 1.013100
MEDIAN = 0.670000
STDDEV = 0.466653

Better, but still quite inconsistent...

The same experiment on a 3.0 GHz Northwood running 2.4.22

NP0
MEAN   = 1.375200
MEDIAN = 1.375000
STDDEV = 0.002825

Tony Luck, an Intel engineer, told me on a different list this was a 
page-coloring issue. Would you agree? Is there a knob in Linux 2.6 to 
request a smarter physical page allocation policy? Do you think I would 
get similar results if I used 2.4 instead of 2.6?

Thanks to everybody for reading this far.

-- 
Regards, Marc



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

end of thread, other threads:[~2004-07-12 22:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12  9:13 Consistency problem on IPF Marc Gonzalez-Sigler
2004-07-12 10:06 ` Erich Focht
2004-07-12 11:12 ` Duraid Madina
2004-07-12 11:24 ` Erich Focht
2004-07-12 11:39 ` Marc Gonzalez-Sigler
2004-07-12 12:01 ` Marc Gonzalez-Sigler
2004-07-12 20:37 ` David Mosberger
2004-07-12 21:49 ` Duraid Madina
2004-07-12 22:05 ` David Mosberger
2004-07-12 22:08 ` Rich Altmaier

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