Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Performance patches
@ 2000-09-06 19:18 Rick Gorton
  0 siblings, 0 replies; 19+ messages in thread
From: Rick Gorton @ 2000-09-06 19:18 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Well, those performance patches I sent out are kind of interesting.
They simply don't work.  Sorry about that, folks.  I must have been
testing against an unpatched kernel....
Anyhow, I'll resend (with corrections) shortly.




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

* performance patches
  2000-10-27 20:10 PWS433a + 100Mbit Jay Estabrook
@ 2000-10-30 18:02 ` Speedracer
  2000-10-30 18:49   ` Rich Payne
  2000-10-30 22:36   ` Jay Estabrook
  0 siblings, 2 replies; 19+ messages in thread
From: Speedracer @ 2000-10-30 18:02 UTC (permalink / raw)
  To: axp-list

I just d/led the alpha processor performance patches.  
So far I have been very impressed.  Is anyone working
to get these patches in the main Linux source tree?

\--------------------------------------------------------------------------/
 \ Aaron Gee AKA Spdracer                                                 /
  \"Maseratis are more than cars, they are a passion that is understood  /
   \by some, but enjoyed by a very few"	                                /
    \URL---> http://www.italian-cars.com                               /
     \e-mail--> spdracer@america.com   Fax-->1 (904) 446 1186         /
      \--------------------------------------------------------------/
				\  |  /
				 \_|_/
				 (---)
				   0 




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

* Re: performance patches
  2000-10-30 18:02 ` performance patches Speedracer
@ 2000-10-30 18:49   ` Rich Payne
  2000-10-31  0:18     ` James Fowler
  2000-10-31  0:38     ` Chris Price
  2000-10-30 22:36   ` Jay Estabrook
  1 sibling, 2 replies; 19+ messages in thread
From: Rich Payne @ 2000-10-30 18:49 UTC (permalink / raw)
  To: axp-list

Yes, there are people working on that :)

Just curious, what are you running them on?

--rdp

On Mon, 30 Oct 2000, Speedracer wrote:

> 
> I just d/led the alpha processor performance patches.  
> So far I have been very impressed.  Is anyone working
> to get these patches in the main Linux source tree?
> 
> \--------------------------------------------------------------------------/
>  \ Aaron Gee AKA Spdracer                                                 /
>   \"Maseratis are more than cars, they are a passion that is understood  /
>    \by some, but enjoyed by a very few"	                                /
>     \URL---> http://www.italian-cars.com                               /
>      \e-mail--> spdracer@america.com   Fax-->1 (904) 446 1186         /
>       \--------------------------------------------------------------/
> 				\  |  /
> 				 \_|_/
> 				 (---)
> 				   0 
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
> 

-- 
Rich Payne
rpayne@alphalinux.org			www.alphalinux.org




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

* Re: performance patches
  2000-10-30 18:02 ` performance patches Speedracer
  2000-10-30 18:49   ` Rich Payne
@ 2000-10-30 22:36   ` Jay Estabrook
  1 sibling, 0 replies; 19+ messages in thread
From: Jay Estabrook @ 2000-10-30 22:36 UTC (permalink / raw)
  To: axp-list

On Mon, Oct 30, 2000 at 01:02:08PM -0500, Speedracer wrote:
> 
> I just d/led the alpha processor performance patches.  
> So far I have been very impressed.  Is anyone working
> to get these patches in the main Linux source tree?

Yes.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------




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

* Re: performance patches
  2000-10-30 18:49   ` Rich Payne
@ 2000-10-31  0:18     ` James Fowler
  2000-10-31  0:38     ` Chris Price
  1 sibling, 0 replies; 19+ messages in thread
From: James Fowler @ 2000-10-31  0:18 UTC (permalink / raw)
  To: axp-list

Iam curious too.  I want to know if they will do me any good on 21164
(EV56) Miata.
Thanks,
James
On Mon, 30 Oct 2000, Rich Payne wrote:

> 
> Yes, there are people working on that :)
> 
> Just curious, what are you running them on?
> 
> --rdp
> 
> On Mon, 30 Oct 2000, Speedracer wrote:
> 
> > 
> > I just d/led the alpha processor performance patches.  
> > So far I have been very impressed.  Is anyone working
> > to get these patches in the main Linux source tree?
> > 
> > \--------------------------------------------------------------------------/
> >  \ Aaron Gee AKA Spdracer                                                 /
> >   \"Maseratis are more than cars, they are a passion that is understood  /
> >    \by some, but enjoyed by a very few"	                                /
> >     \URL---> http://www.italian-cars.com                               /
> >      \e-mail--> spdracer@america.com   Fax-->1 (904) 446 1186         /
> >       \--------------------------------------------------------------/
> > 				\  |  /
> > 				 \_|_/
> > 				 (---)
> > 				   0 
> > 
> > 
> > 
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> > 
> 
> -- 
> Rich Payne
> rpayne@alphalinux.org			www.alphalinux.org
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
> 

------------------------------------------------------------------------------
James Fowler
Technology & Education					
jamesf@sequoia.net						ICQ: 22088266
-----------------------------------------------------------------------------





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

* Re: performance patches
  2000-10-30 18:49   ` Rich Payne
  2000-10-31  0:18     ` James Fowler
@ 2000-10-31  0:38     ` Chris Price
  2000-10-31  4:50       ` Jay Estabrook
  1 sibling, 1 reply; 19+ messages in thread
From: Chris Price @ 2000-10-31  0:38 UTC (permalink / raw)
  To: axp-list

	Having been away from AXP platforms for awhile;

	Would these 'performance patches' be of any use
on older 21064A and 21164A based systems (alphastation400 and
XL300/366)?

	Cheers

	Chris	

Rich Payne wrote:
> 
> Yes, there are people working on that :)
> 
> Just curious, what are you running them on?
> 
> --rdp
> 
> On Mon, 30 Oct 2000, Speedracer wrote:
> 
> >
> > I just d/led the alpha processor performance patches.
> > So far I have been very impressed.  Is anyone working
> > to get these patches in the main Linux source tree?
> >
> > \--------------------------------------------------------------------------/
> >  \ Aaron Gee AKA Spdracer                                                 /
> >   \"Maseratis are more than cars, they are a passion that is understood  /
> >    \by some, but enjoyed by a very few"                                       /
> >     \URL---> http://www.italian-cars.com                               /
> >      \e-mail--> spdracer@america.com   Fax-->1 (904) 446 1186         /
> >       \--------------------------------------------------------------/
> >                               \  |  /
> >                                \_|_/
> >                                (---)
> >                                  0
> >
> >
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> >
> 
> --
> Rich Payne
> rpayne@alphalinux.org                   www.alphalinux.org
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




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

* Re: performance patches
  2000-10-31  0:38     ` Chris Price
@ 2000-10-31  4:50       ` Jay Estabrook
  0 siblings, 0 replies; 19+ messages in thread
From: Jay Estabrook @ 2000-10-31  4:50 UTC (permalink / raw)
  To: axp-list

On Mon, Oct 30, 2000 at 05:38:31PM -0700, Chris Price wrote:
> 
> 	Would these 'performance patches' be of any use
> on older 21064A and 21164A based systems (alphastation400 and
> XL300/366)?

You'll see hardly any improvement on EV4/EV45 or EV5/EV56.

The performance enhancements are due almost entirely to taking advantage
of architectural features available only on EV6 or later CPUs.

They are:

1. scheduling of instructions specifically for EV6.
2. use of instructions available only on EV67 ("cttz", etc).
3. use of the "wh64" (write hint) instruction (defined early on,
   but not implemented until EV6).

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------




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

* RE: performance patches
@ 2000-10-31 12:05 David Addison
  2000-10-31 13:19 ` Rich Payne
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: David Addison @ 2000-10-31 12:05 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Do you need to configure the kernel with something other than
CONFIG_ALPHA_GENERIC to get these improvements ?

I tried using CONFIG_ALPHA_DP264 but it rebooted immediately on the aboot
handover. Has anyone got a non-GENERIC kernel to boot ?

I'm using a 2*500MHz EV6 DS20 (RH6.1) for testing.

Cheers,
Addy.

> -----Original Message-----
> From: Jay Estabrook [mailto:Jay.Estabrook@compaq.com]
> Sent: 31 October 2000 04:51
> To: axp-list@redhat.com
> Subject: Re: performance patches
> 
> 
> On Mon, Oct 30, 2000 at 05:38:31PM -0700, Chris Price wrote:
> > 
> > 	Would these 'performance patches' be of any use
> > on older 21064A and 21164A based systems (alphastation400 and
> > XL300/366)?
> 
> You'll see hardly any improvement on EV4/EV45 or EV5/EV56.
> 
> The performance enhancements are due almost entirely to 
> taking advantage
> of architectural features available only on EV6 or later CPUs.
> 
> They are:
> 
> 1. scheduling of instructions specifically for EV6.
> 2. use of instructions available only on EV67 ("cttz", etc).
> 3. use of the "wh64" (write hint) instruction (defined early on,
>    but not implemented until EV6).
> 
> --Jay++
> 
> --------------------------------------------------------------
> ---------------
> Jay A Estabrook                            Alpha Engineering 
> - LINUX Project
> Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
> 200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
> --------------------------------------------------------------
> ---------------
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
> 




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

* RE: performance patches
  2000-10-31 12:05 performance patches David Addison
@ 2000-10-31 13:19 ` Rich Payne
  2000-10-31 20:01 ` Custom AXP kernel Paul Allen
  2000-11-01  1:48 ` performance patches Chai Mee Joon
  2 siblings, 0 replies; 19+ messages in thread
From: Rich Payne @ 2000-10-31 13:19 UTC (permalink / raw)
  To: 'axp-list@redhat.com'; +Cc: addy

Make sure you have the latest version (they were updated yesterday):
http://www.alpha-processor.com/products/downloads/developer_support/performance/

there was initially a problem with EV6 boxes (EV67 worked fine). 

--rdp

On Tue, 31 Oct 2000, David Addison wrote:

> Do you need to configure the kernel with something other than
> CONFIG_ALPHA_GENERIC to get these improvements ?
> 
> I tried using CONFIG_ALPHA_DP264 but it rebooted immediately on the aboot
> handover. Has anyone got a non-GENERIC kernel to boot ?
> 
> I'm using a 2*500MHz EV6 DS20 (RH6.1) for testing.
> 
> Cheers,
> Addy.
> 
> > -----Original Message-----
> > From: Jay Estabrook [mailto:Jay.Estabrook@compaq.com]
> > Sent: 31 October 2000 04:51
> > To: axp-list@redhat.com
> > Subject: Re: performance patches
> > 
> > 
> > On Mon, Oct 30, 2000 at 05:38:31PM -0700, Chris Price wrote:
> > > 
> > > 	Would these 'performance patches' be of any use
> > > on older 21064A and 21164A based systems (alphastation400 and
> > > XL300/366)?
> > 
> > You'll see hardly any improvement on EV4/EV45 or EV5/EV56.
> > 
> > The performance enhancements are due almost entirely to 
> > taking advantage
> > of architectural features available only on EV6 or later CPUs.
> > 
> > They are:
> > 
> > 1. scheduling of instructions specifically for EV6.
> > 2. use of instructions available only on EV67 ("cttz", etc).
> > 3. use of the "wh64" (write hint) instruction (defined early on,
> >    but not implemented until EV6).
> > 
> > --Jay++
> > 
> > --------------------------------------------------------------
> > ---------------
> > Jay A Estabrook                            Alpha Engineering 
> > - LINUX Project
> > Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
> > 200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
> > --------------------------------------------------------------
> > ---------------
> > 
> > 
> > 
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> > 
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
> 

-- 
Rich Payne
rpayne@alphalinux.org			www.alphalinux.org




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

* RE: performance patches
@ 2000-10-31 13:39 David Addison
  0 siblings, 0 replies; 19+ messages in thread
From: David Addison @ 2000-10-31 13:39 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Ooops, I had answered Y to the EV67 question, forgetting I was testing on an
EV6. The target machine is EV67 and so I guessed, incorrectly, that it
wouldn't hurt!

Addy.


> -----Original Message-----
> From: Rich Payne [mailto:rdp@talisman.alphalinux.org]
> Sent: 31 October 2000 13:19
> To: 'axp-list@redhat.com'
> Cc: addy@quadrics.com
> Subject: RE: performance patches
> 
> 
> 
> Make sure you have the latest version (they were updated yesterday):
> http://www.alpha-processor.com/products/downloads/developer_su
> pport/performance/
> 
> there was initially a problem with EV6 boxes (EV67 worked fine). 
> 
> --rdp
> 
> On Tue, 31 Oct 2000, David Addison wrote:
> 
> > Do you need to configure the kernel with something other than
> > CONFIG_ALPHA_GENERIC to get these improvements ?
> > 
> > I tried using CONFIG_ALPHA_DP264 but it rebooted 
> immediately on the aboot
> > handover. Has anyone got a non-GENERIC kernel to boot ?
> > 
> > I'm using a 2*500MHz EV6 DS20 (RH6.1) for testing.
> > 
> > Cheers,
> > Addy.
> > 
> > > -----Original Message-----
> > > From: Jay Estabrook [mailto:Jay.Estabrook@compaq.com]
> > > Sent: 31 October 2000 04:51
> > > To: axp-list@redhat.com
> > > Subject: Re: performance patches
> > > 
> > > 
> > > On Mon, Oct 30, 2000 at 05:38:31PM -0700, Chris Price wrote:
> > > > 
> > > > 	Would these 'performance patches' be of any use
> > > > on older 21064A and 21164A based systems (alphastation400 and
> > > > XL300/366)?
> > > 
> > > You'll see hardly any improvement on EV4/EV45 or EV5/EV56.
> > > 
> > > The performance enhancements are due almost entirely to 
> > > taking advantage
> > > of architectural features available only on EV6 or later CPUs.
> > > 
> > > They are:
> > > 
> > > 1. scheduling of instructions specifically for EV6.
> > > 2. use of instructions available only on EV67 ("cttz", etc).
> > > 3. use of the "wh64" (write hint) instruction (defined early on,
> > >    but not implemented until EV6).
> > > 
> > > --Jay++
> > > 
> > > --------------------------------------------------------------
> > > ---------------
> > > Jay A Estabrook                            Alpha Engineering 
> > > - LINUX Project
> > > Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
> > > 200 Forest Street, Marlboro MA 01752       
> Jay.Estabrook@compaq.com
> > > --------------------------------------------------------------
> > > ---------------
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Axp-list mailing list
> > > Axp-list@redhat.com
> > > https://listman.redhat.com/mailman/listinfo/axp-list
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> > 
> 
> -- 
> Rich Payne
> rpayne@alphalinux.org			www.alphalinux.org
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
> 




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

* Custom AXP kernel
  2000-10-31 12:05 performance patches David Addison
  2000-10-31 13:19 ` Rich Payne
@ 2000-10-31 20:01 ` Paul Allen
  2000-11-01  1:05   ` Peter Petrakis
  2000-11-01 12:02   ` Custom AXP kernel Greg Lindahl
  2000-11-01  1:48 ` performance patches Chai Mee Joon
  2 siblings, 2 replies; 19+ messages in thread
From: Paul Allen @ 2000-10-31 20:01 UTC (permalink / raw)
  To: axp-list

I've got an Alpha EV6/500 XP1000 with RedHat 6.2.  I took a crack at
building a custom kernel recently and couldn't figure out which
machine type to use.  I've looked through a couple lists of machine
types: the one on www.alphalinux.org and I think another one on a
Compaq web site.  I don't see anything that clearly matches my
hardware.  During boot, my kernel says this:

Booting GENERIC on Tsunami variation Monet using machine vector Monet
from SRM

This hardware may be more recent than the 2/99 date on the FAQ at
alphalinux.org.  Does the 2.2.16 kernel know about this particular
machine, or should I just use GENERIC?  Any clues will be welcome.

Thanks!

Paul Allen

-- 
Paul L. Allen           | voice: (425) 865-3297  fax: (425) 865-2964
Unix Technical Support  | paul.l.allen@boeing.com
Boeing Phantom Works Math & Computing Technology Site Operations,
POB 3707 M/S 7L-68, Seattle, WA 98124-2207




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

* Re: Custom AXP kernel
  2000-10-31 20:01 ` Custom AXP kernel Paul Allen
@ 2000-11-01  1:05   ` Peter Petrakis
  2000-11-01  1:55     ` rtlinux-3.0-pre8 running on an alpha pc164? Terry L. Ridder
  2000-11-01 12:02   ` Custom AXP kernel Greg Lindahl
  1 sibling, 1 reply; 19+ messages in thread
From: Peter Petrakis @ 2000-11-01  1:05 UTC (permalink / raw)
  To: axp-list

I believe the correct system type is "DP264". Also select "Use SRM as 
bootloader" and you should be fine.

Peter

Paul Allen wrote:

> I've got an Alpha EV6/500 XP1000 with RedHat 6.2.  I took a crack at
> building a custom kernel recently and couldn't figure out which
> machine type to use.  I've looked through a couple lists of machine
> types: the one on www.alphalinux.org and I think another one on a
> Compaq web site.  I don't see anything that clearly matches my
> hardware.  During boot, my kernel says this:
> 
> Booting GENERIC on Tsunami variation Monet using machine vector Monet
> from SRM
> 
> This hardware may be more recent than the 2/99 date on the FAQ at
> alphalinux.org.  Does the 2.2.16 kernel know about this particular
> machine, or should I just use GENERIC?  Any clues will be welcome.
> 
> Thanks!
> 
> Paul Allen
> 






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

* Re: performance patches
  2000-10-31 12:05 performance patches David Addison
  2000-10-31 13:19 ` Rich Payne
  2000-10-31 20:01 ` Custom AXP kernel Paul Allen
@ 2000-11-01  1:48 ` Chai Mee Joon
  2 siblings, 0 replies; 19+ messages in thread
From: Chai Mee Joon @ 2000-11-01  1:48 UTC (permalink / raw)
  To: axp-list

On Tue, Oct 31, 2000 at 12:05:17PM -0000, David Addison wrote:
> Do you need to configure the kernel with something other than
> CONFIG_ALPHA_GENERIC to get these improvements ?
> 
> I tried using CONFIG_ALPHA_DP264 but it rebooted immediately on the aboot
> handover. Has anyone got a non-GENERIC kernel to boot ?

Yes, I applied the latest patch on a DP264 using 1*750/8 EV7 (SuSE AXP 6/4)
with CONFIG_ALPHA_DP264 and booted it successfully, running for about 
2 days now on 2 machines.

<4>Booting on Tsunami variation DP264 using machine vector DP264 from SRM	 


Cheers,
-- 
Chai Mee Joon, Lawrence <chaimj@singnet.com.sg>

4 Pandan Valley #14-413
Singapore 597628
 
Mobile: (+65) 98430098




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

* rtlinux-3.0-pre8 running on an alpha pc164?
  2000-11-01  1:05   ` Peter Petrakis
@ 2000-11-01  1:55     ` Terry L. Ridder
  0 siblings, 0 replies; 19+ messages in thread
From: Terry L. Ridder @ 2000-11-01  1:55 UTC (permalink / raw)
  To: axp-list

hello;

i would like to hear from anyone who has
rtlinux-3.0-pre8 running correctly on an
alpha pc164.

currently, the fsmlabs.com folks only have
it running on a ds10/tsunami. 

i am working on porting the nist emc software
to the alpha platform, and it requires rtlinux
to run. the alpha platform was not supported
until rtlinux-3.0 and linux-2.4.0-test1.

i have been pouring over the rtlinux-3.0-pre8
code looking for the problem area. 

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

digging deep, i feel my conscience burn
i need to know who and what i am
this hunger jolts me from complacency
rocks me, makes me meet myself
----kendall payne---closer to myself---




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

* RE: Custom AXP kernel
  2000-10-31 20:01 ` Custom AXP kernel Paul Allen
  2000-11-01  1:05   ` Peter Petrakis
@ 2000-11-01 12:02   ` Greg Lindahl
  2000-11-01 14:36     ` A few questions about compiling code and performance J. Pedro Sousa do Amaral
  1 sibling, 1 reply; 19+ messages in thread
From: Greg Lindahl @ 2000-11-01 12:02 UTC (permalink / raw)
  To: axp-list

> I've got an Alpha EV6/500 XP1000 with RedHat 6.2.  I took a crack at
> building a custom kernel recently and couldn't figure out which
> machine type to use.

I guess, in a way, that it's handy that people insist on testing the
non-generic kernels...

> This hardware may be more recent than the 2/99 date on the FAQ at
> alphalinux.org.

Nothing's changed since 2/99; that's around when the GENERIC kernel was
invented, and the GENERIC kernel will be a valid type into the future. As
the hardware gets revved, new code does get added.

-- g




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

* A few questions about compiling code and performance
  2000-11-01 12:02   ` Custom AXP kernel Greg Lindahl
@ 2000-11-01 14:36     ` J. Pedro Sousa do Amaral
  2000-11-01 19:34       ` Ross A Knepper
  2000-11-01 19:52       ` arthur m coucouvitis
  0 siblings, 2 replies; 19+ messages in thread
From: J. Pedro Sousa do Amaral @ 2000-11-01 14:36 UTC (permalink / raw)
  To: axp-list

Hi,
My questions are somewhat off-topic (and ignorant; I do not know how to
program...) but here's the first one: I have a certain dynamical system
analysis program source code, which I believe was initially written for
Sun's OS. This FORTRAN code was initially set to compile with the flag
-fast, but that wouldn't work in my system (AS 200, RH 5.2 highly modified,
latest stable kernel, and pretty recent compilers--g77 version egcs-2.91.66
19990314). Is there an equivalent flag in the GNU FORTRAN compiler?

Another question is about bogometer benchmarking. How useful is to use the
function time to benchmark the performance of a given program compiled
across different machines? From the man time: "The time utility executes and
times utility. After the utility finishes, time writes the total time
elapsed, the time consumed by system overhead, and the time used to execute
utility to the standard error stream." What is exactly the meaning of the
two last times reported?

My last question is about a compiling error shown below. Any ideas about why
this error occurs?

f77 -O4  \
        -o dimension dimension.f epsprg.o
param.h: In program `dimension':
In file included from dimension.f:39:
param.h:26: 
           parameter (nbound=max(nbins,ndatar))
                             ^
Invalid declaration of or reference to symbol `max' at (^) [initially seen
at (^)]
make: *** [dimension] Error 1

Thank you very much.
ZP
-- 
José Pedro Sousa do Amaral

Disclaimer: Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely coincidental.
Any resemblance between the above and my own views is non-deterministic. The
question of the existence of views in the absence of anyone to hold them is
left as an exercise for the reader. The question of the existence of the
reader is left as an exercise for the second god coefficient. (A discussion
of non-orthogonal, non-integral polytheism is beyond the scope of this
article.)




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

* Re: A few questions about compiling code and performance
  2000-11-01 14:36     ` A few questions about compiling code and performance J. Pedro Sousa do Amaral
@ 2000-11-01 19:34       ` Ross A Knepper
  2000-11-01 19:52       ` arthur m coucouvitis
  1 sibling, 0 replies; 19+ messages in thread
From: Ross A Knepper @ 2000-11-01 19:34 UTC (permalink / raw)
  To: axp-list

On Wed, 1 Nov 2000, J. Pedro Sousa do Amaral wrote:
> This FORTRAN code was initially set to compile with the flag
> -fast, but that wouldn't work in my system (AS 200, RH 5.2 highly modified,
> latest stable kernel, and pretty recent compilers--g77 version egcs-2.91.66
> 19990314). Is there an equivalent flag in the GNU FORTRAN compiler?

-fast is a compiler specific flag.  gnu compilers use -O for general
optimizations, which will probably make it run faster.  i dont use
fortran, but with gcc, there are multiple levels of optimization that get
more aggressive (eg -O6 is more sophisticated than -O2, which may or may
not mean it runs faster)

> Another question is about bogometer benchmarking. How useful is to use the
> function time to benchmark the performance of a given program compiled
> across different machines?

it depends what you want to know.  time is pretty accurate about how long
a program takes to run, but if you're comparing between systems, the
information you derive from it is limited.  it would be unfair to conclude
that one compiler generates faster code, or that one processor is
faster.  all you can safely say is that for your application, compiler A
gives better performance on platform A than compiler B gives on platform
B.

> From the man time: "The time utility executes and
> times utility. After the utility finishes, time writes the total time
> elapsed, the time consumed by system overhead, and the time used to execute
> utility to the standard error stream." What is exactly the meaning of the
> two last times reported?

wall clock time is simply the difference in time between when it begins
and when it ends.  on a busy system, this will be longer than the sum of
the system and user times, because other processes are running at the same
time.  user time is the actual time consumed by the processor in running
the code you wrote.  system time is the actual processor time spent
within the kernel executing on behalf of your process.  system time
includes system calls and some types of faults (like memory management).

on an idle system, user+system should be roughly equal to wall clock time.

>            parameter (nbound=max(nbins,ndatar))

you may need to define a macro for max, or include some file which defines
it.  not knowing fortran, i can't help much with this.  but in c, it would
be:

#define max(a,b) ((a) > (b) ? (a) : (b))

hope this helps

 -ross




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

* Re: A few questions about compiling code and performance
  2000-11-01 14:36     ` A few questions about compiling code and performance J. Pedro Sousa do Amaral
  2000-11-01 19:34       ` Ross A Knepper
@ 2000-11-01 19:52       ` arthur m coucouvitis
  2000-11-02  0:50         ` W Bauske
  1 sibling, 1 reply; 19+ messages in thread
From: arthur m coucouvitis @ 2000-11-01 19:52 UTC (permalink / raw)
  To: axp-list

  hi,

  maybe i can help witrh the 3rd ?
> ...Any ideas about why this error occurs?
> 
> f77 -O4  \
>         -o dimension dimension.f epsprg.o
> param.h: In program `dimension':
> In file included from dimension.f:39:
> param.h:26:
>            parameter (nbound=max(nbins,ndatar))
>                              ^
> Invalid declaration of or reference to symbol `max' at (^) [initially seen
> at (^)]
> make: *** [dimension] Error 1
  max is a macro defined in a system include file.
  the error can be fixed by adding 'include <file-name.h>' to
dimension.f,
  where file-name is the name of the file containing the
definition of map().
  to find the file, you could try:
     grep -w map /usr/include/*.h
     grep -w map /usr/include/*/*.h, etc

  good luck,
-- 
  arthur m coucouvitis           ATIPA Linux Solutions, Inc.
  tel: 603 622-7171 x 15         850 East Industrial Park Drive
  fax: 603 622-7272              Suite 8,  Manchester, NH  03109
  http://www.dcginc.com          http:/www.atipa.com




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

* Re: A few questions about compiling code and performance
  2000-11-01 19:52       ` arthur m coucouvitis
@ 2000-11-02  0:50         ` W Bauske
  0 siblings, 0 replies; 19+ messages in thread
From: W Bauske @ 2000-11-02  0:50 UTC (permalink / raw)
  To: axp-list

arthur m coucouvitis wrote:
> 
>   hi,
> 
>   maybe i can help witrh the 3rd ?
> > ...Any ideas about why this error occurs?
> >
> > f77 -O4  \
> >         -o dimension dimension.f epsprg.o
> > param.h: In program `dimension':
> > In file included from dimension.f:39:
> > param.h:26:
> >            parameter (nbound=max(nbins,ndatar))
> >                              ^
> > Invalid declaration of or reference to symbol `max' at (^) [initially seen
> > at (^)]
> > make: *** [dimension] Error 1
>   max is a macro defined in a system include file.
>   the error can be fixed by adding 'include <file-name.h>' to
> dimension.f,
>   where file-name is the name of the file containing the
> definition of map().
>   to find the file, you could try:
>      grep -w map /usr/include/*.h
>      grep -w map /usr/include/*/*.h, etc
> 

If it were my code, I'd just do:

	integer nbound
	.
	.
	.
	nbound=max(nbins,ndatar)

Not worth chasing this. It's trivial to change the code so the compiler
won't complain about it.


Wes




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

end of thread, other threads:[~2000-11-01 23:43 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-31 12:05 performance patches David Addison
2000-10-31 13:19 ` Rich Payne
2000-10-31 20:01 ` Custom AXP kernel Paul Allen
2000-11-01  1:05   ` Peter Petrakis
2000-11-01  1:55     ` rtlinux-3.0-pre8 running on an alpha pc164? Terry L. Ridder
2000-11-01 12:02   ` Custom AXP kernel Greg Lindahl
2000-11-01 14:36     ` A few questions about compiling code and performance J. Pedro Sousa do Amaral
2000-11-01 19:34       ` Ross A Knepper
2000-11-01 19:52       ` arthur m coucouvitis
2000-11-02  0:50         ` W Bauske
2000-11-01  1:48 ` performance patches Chai Mee Joon
  -- strict thread matches above, loose matches on Subject: below --
2000-10-31 13:39 David Addison
2000-10-27 20:10 PWS433a + 100Mbit Jay Estabrook
2000-10-30 18:02 ` performance patches Speedracer
2000-10-30 18:49   ` Rich Payne
2000-10-31  0:18     ` James Fowler
2000-10-31  0:38     ` Chris Price
2000-10-31  4:50       ` Jay Estabrook
2000-10-30 22:36   ` Jay Estabrook
2000-09-06 19:18 Performance patches Rick Gorton

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