public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
@ 2002-05-26 20:02 rwhron
  2002-05-26 21:36 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: rwhron @ 2002-05-26 20:02 UTC (permalink / raw)
  To: linux-kernel

Another processor config could be CONFIG_K62.
gcc-3.1 -march=k6-2 benchmarks a little better 
than -march=k6.  Adding CONFIG_XF86_USE_3DNOW=y 
seems to help a little too.

Based on grepping gcc-3.1 src, it appears:
k6-3 == k6-2
athlon-tbird == athlon
athlon-xp == athlon-4 == athlon-mp

-- 
Randy Hron


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

* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
  2002-05-26 20:02 [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 rwhron
@ 2002-05-26 21:36 ` Alan Cox
  2002-05-26 22:10 ` Dave Jones
  2002-05-27 11:44 ` Christopher E. Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Alan Cox @ 2002-05-26 21:36 UTC (permalink / raw)
  To: rwhron; +Cc: linux-kernel

On Sun, 2002-05-26 at 21:02, rwhron@earthlink.net wrote:
> Another processor config could be CONFIG_K62.
> gcc-3.1 -march=k6-2 benchmarks a little better 
> than -march=k6.  Adding CONFIG_XF86_USE_3DNOW=y 
> seems to help a little too.

Make sure you benchmark FPU intensive use when testing USE_3DNOW. I've
seen several situations where it looks marginally better until you
actually measure two things - memory bandwidth available to user
programs, and also FPU performance, especially of FPU heavy apps that
schedule a lot (eg Quake)


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

* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
  2002-05-26 20:02 [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 rwhron
  2002-05-26 21:36 ` Alan Cox
@ 2002-05-26 22:10 ` Dave Jones
  2002-05-27 11:44 ` Christopher E. Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Dave Jones @ 2002-05-26 22:10 UTC (permalink / raw)
  To: rwhron; +Cc: linux-kernel

On Sun, May 26, 2002 at 04:02:17PM -0400, rwhron@earthlink.net wrote:

 > athlon-xp == athlon-4 == athlon-mp

Not quite...

>From gcc/config/i386/i386.c ..

   if (!ix86_arch_string)
                   ix86_arch_string = TARGET_64BIT ? "athlon-4" : "i386";

Discussion with Jan Hubicka reveals that this should be checking for
"opteron", but as this was the closest match, it's not equivalent
to athlon-xp or athlon-mp in current gcc.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

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

* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
  2002-05-26 20:02 [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 rwhron
  2002-05-26 21:36 ` Alan Cox
  2002-05-26 22:10 ` Dave Jones
@ 2002-05-27 11:44 ` Christopher E. Brown
  2002-05-29 13:44   ` Dave Jones
  2 siblings, 1 reply; 6+ messages in thread
From: Christopher E. Brown @ 2002-05-27 11:44 UTC (permalink / raw)
  To: rwhron; +Cc: linux-kernel

On Sun, 26 May 2002 rwhron@earthlink.net wrote:

> Another processor config could be CONFIG_K62.
> gcc-3.1 -march=k6-2 benchmarks a little better
> than -march=k6.  Adding CONFIG_XF86_USE_3DNOW=y
> seems to help a little too.
>
> Based on grepping gcc-3.1 src, it appears:
> k6-3 == k6-2


IIRC (not looking at the datasheets) there were some pretty nice
improvements made to the core in the K6 to K6-2 update (not just and
upclock and downsize, real changes(isn't this when they added MMX
too?)).


However, the K6-3 is simply a K6-2 with the addition of a 256K L2
cache on die at full cpu clock.  It was a great improvement
performance wise for many uses (think 256K L2 @ 450Mhz, and then a 2M
L3 on the mainboard) though.


-- 
I route, therefore you are.


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

* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
@ 2002-05-27 16:55 rwhron
  0 siblings, 0 replies; 6+ messages in thread
From: rwhron @ 2002-05-27 16:55 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

>> Adding CONFIG_XF86_USE_3DNOW=y
>> seems to help a little too.

Mmm, maybe not.

> Make sure you benchmark FPU intensive use when testing USE_3DNOW. I've
> seen several situations where it looks marginally better until you
> actually measure two things - memory bandwidth available to user
> programs, and also FPU performance, especially of FPU heavy apps that
> schedule a lot (eg Quake)

Thanks for helping me narrow the search.  On an allocate and write to 
pages of memory test, USE_3DNOW increased test time by 15% (which is
bad) on k6-2.  

Both kernels compiled with gcc-3.1.0 -march=k6-2.

mtest01 -w 50 executed 100 times 

CONFIG_X86_USE_3DNOW=n	745 seconds
CONFIG_X86_USE_3DNOW=y	860 seconds

-- 
Randy Hron


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

* Re: [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1
  2002-05-27 11:44 ` Christopher E. Brown
@ 2002-05-29 13:44   ` Dave Jones
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Jones @ 2002-05-29 13:44 UTC (permalink / raw)
  To: Christopher E. Brown; +Cc: rwhron, linux-kernel

On Mon, May 27, 2002 at 05:44:52AM -0600, Christopher E. Brown wrote:
 > > k6-3 == k6-2
 > IIRC (not looking at the datasheets) there were some pretty nice
 > improvements made to the core in the K6 to K6-2 update (not just and
 > upclock and downsize, real changes(isn't this when they added MMX
 > too?)).

original k6 had mmx. k6-2 brought 3dnow.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

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

end of thread, other threads:[~2002-05-29 13:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-26 20:02 [PATCH] [2.4] [2.5] [i386] Add support for GCC 3.1 rwhron
2002-05-26 21:36 ` Alan Cox
2002-05-26 22:10 ` Dave Jones
2002-05-27 11:44 ` Christopher E. Brown
2002-05-29 13:44   ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2002-05-27 16:55 rwhron

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