Subject: Re: ppc benchmarks, quick and dirty. 604ev, g3, mips
To: Riccardo Mottola <rollei@tiscalinet.it>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 03/12/2005 19:14:25
--Signature=_Sat__12_Mar_2005_19_14_25_-0500_JVeCcNHIw0OWrn_S
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

> Well in my case the g3 b/w has surely a faster memory and system bus..
Indeed.

> but the cache should be 1:2 for both cpu's, shouldn't it? they have
> exactly the same clock rate...
No. Most G3s run the cache at approximately half the CPU clock, the 604ev runs it at twice the bus speed, so the 604ev runs its cache at about the speed of the G3's bus.

> > And just for fun - when I use the xlc compiler on AIX the 604 is suddenly more than twice as fast as the G3 in FPU-bound tasks and
> > has an edge almost everywhere else, but that's hardly fair ;-)
> > So - how do we convince IBM to port xlc to NetBSD? The one I used was quite archaic, 5.0.2 or so.
> yeah, I know. gcc... if you look at the bottom you see how mipspro edges gcc.
Yeah. I was rather surprised to find the 195MHz R10k a lot faster than the PowerPCs running FPU-intensive tasks, even with xlc the 604e barely touched it. In my tests at least.

> > > I don't understand why the ppc604ev seems so slow. Everybody thought it
> > > would be faster than the g3! and the fft calculus should be more cpu
> > > bound than memory bound and the dataset should fit in the cache.
> > The dataset is small, fits into the L2 cache so I'd expect that the G3 has an edge because it runs the cache at a much higher speed
> > than the 604, even the 604ev runs the cache at only 100MHz, the G3 usually runs it at about half the CPU speed.
> 
> ah, I thought the 604ev run the cache 1:2 as the g3.
No, sadly it doesn't.

> > > Could
> > > the os do something wrong (the 604 is not certified for 10.15 macos)
> > > like not enabling or enabling "badly" the cpu L2 cache?
> > Hmm, does -mcpu=604e -mtune=604e change anything? The cache should be enabled by the firmware, but who knows, it's OF 1.0.5
> > after all... how does the benchmark behave under NetBSD? There we'd at least know if the cache is active.
> 
> apple compiler doesn't have any special 604e/ev compiler options here.
It's gcc, it should understand -mcpu=604e

have fun
Michael

--Signature=_Sat__12_Mar_2005_19_14_25_-0500_JVeCcNHIw0OWrn_S
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQjOF4cpnzkX8Yg2nAQLacAf/UPVqe1cJw5L1NhO8QO/Q3qrBvX+qNtL9
QZ0uRgiEUV+ZVN5BnxAXHiV2GW2eoCMSZgiZH+N+OVhVDMQCMzr7h8v3+UlQAKFk
dLslYBzbjgDRL6tYecuXtk1J/aTj4tQQHwLGMlYaixard0chn/82pG3gwXYpJPcA
9BtUNxXFTGHMXgprHfqBIEw8B26lIlNWJaZJOkec4qP6am+yx7BIxTg5NdD4+q8Z
JtXTLIMi/37wOsrKe450C3hx7khDHv5qMR8m/mtdiBpklPzEkQp+XARgG9MCqkgO
vW7phG8hK7sYpceJiew4n1uBIibPBvmfT7jRcsCj7INyqSHIPORABw==
=PqAU
-----END PGP SIGNATURE-----

--Signature=_Sat__12_Mar_2005_19_14_25_-0500_JVeCcNHIw0OWrn_S--