Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: while we're talking about the Millenium II...
@ 1998-05-23  2:55 Jay A Estabrook
  1998-05-23 11:30 ` Uncle George
  1998-06-02  9:29 ` DU C/C++ compiler Vladimir Kamenov
  0 siblings, 2 replies; 8+ messages in thread
From: Jay A Estabrook @ 1998-05-23  2:55 UTC (permalink / raw)
  To: Wes Nakamura, axp-list

At 03:54 PM 5/22/98 -0700, Wes Nakamura wrote:
>
>I'm trying to get my 4MB Mill. to run in 24-bit mode, X 3.3.2, SVGA
>server, but it won't start, giving the "cannot connect to X server"
>error.  It works fine in 16-bit, though, and when I start it (or attempt
>to start it) in 32-bit mode it says it's running with 32 bpp, color
>depth 24, colorweight 888, which looks to me like it's dropped down to
>24-bit mode (which is what I want anyway).  So that's how I've been
>running it.  Can the Mill. even do 32-bit color?  The card is new so I'm
>not too familiar with it.  Any help/comments appreciated.

None of the XFree86 servers will run pure 24-bit mode (aka packed) until
someone ports the cfb24 code to the Alpha. There is (when last I looked)
rampant assumption of 32-bit longs in there, not to mention the high
probability of unaligned access. Bottom line: a lot of work for little
payback, IMHO.

However, many of the Xservers, including SVGA for Millenniums, run very
nicely in 32-bit mode, which is officially 24-bit depth, 32 bits per pixel.

So yes, your 4Mb card will not do 1280x1024 at 32bpp, but 1152x900 is close.
Or you could always buy the 4Mb daughtercard... ;-}

--Jay++



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

* Re: while we're talking about the Millenium II...
  1998-05-23  2:55 while we're talking about the Millenium II Jay A Estabrook
@ 1998-05-23 11:30 ` Uncle George
  1998-05-24  9:52   ` Harald Koenig
  1998-06-02  9:29 ` DU C/C++ compiler Vladimir Kamenov
  1 sibling, 1 reply; 8+ messages in thread
From: Uncle George @ 1998-05-23 11:30 UTC (permalink / raw)
  To: axp-list; +Cc: Wes Nakamura

I think u'll find some unaligned probs in the 32 bit ( i think it was cfb32 )
routines also. In particular the macro's that hide long's behind their
definition.
I had posted one long/int boo boo but no one from X replied. I found 2 more,
alas i haven't reported them. So what am I to do.

BTW, these cfb's are all alike ( 16,24,32 ) , as they seem to be symbolically
linked. Changeing one, seems to change all.

gat
 Jay A Estabrook wrote:

>
>
> None of the XFree86 servers will run pure 24-bit mode (aka packed) until
> someone ports the cfb24 code to the Alpha. There is (when last I looked)
> rampant assumption of 32-bit longs in there, not to mention the high
> probability of unaligned access. Bottom line: a lot of work for little
> payback, IMHO.
>





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

* Re: while we're talking about the Millenium II...
  1998-05-23 11:30 ` Uncle George
@ 1998-05-24  9:52   ` Harald Koenig
  1998-05-25  9:43     ` Uncle George
  0 siblings, 1 reply; 8+ messages in thread
From: Harald Koenig @ 1998-05-24  9:52 UTC (permalink / raw)
  To: axp-list; +Cc: Wes Nakamura

On May 23, Uncle George wrote:

> I think u'll find some unaligned probs in the 32 bit ( i think it was cfb32 )
> routines also. In particular the macro's that hide long's behind their
> definition.
> I had posted one long/int boo boo but no one from X replied. I found 2 more,
> alas i haven't reported them. So what am I to do.
> 
> BTW, these cfb's are all alike ( 16,24,32 ) , as they seem to be symbolically
> linked. Changeing one, seems to change all.

correct.  but there is lot of

	#if PSZ==24

etc. code in both the header files (defining lots of magic little helpers)
and actual C code.   and much of this stuff is 32 bit only right now
(and pretty tricky to understand and extend to 64 bit, I tried this long ago
for a while and gave up because it took too much time).


Harald
--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^


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

* Re: while we're talking about the Millenium II...
  1998-05-24  9:52   ` Harald Koenig
@ 1998-05-25  9:43     ` Uncle George
  0 siblings, 0 replies; 8+ messages in thread
From: Uncle George @ 1998-05-25  9:43 UTC (permalink / raw)
  To: axp-list; +Cc: Wes Nakamura

i wasn't trying to expang into 64bit, but rather trying to catch long/int64 fetches
on int/int32 boundaries.
gat

Harald Koenig wrote:

> On May 23, Uncle George wrote:
>
> > I think u'll find some unaligned probs in the 32 bit ( i think it was cfb32 )
> > routines also. In particular the macro's that hide long's behind their
> > definition.
> > I had posted one long/int boo boo but no one from X replied. I found 2 more,
> > alas i haven't reported them. So what am I to do.
> >
> > BTW, these cfb's are all alike ( 16,24,32 ) , as they seem to be symbolically
> > linked. Changeing one, seems to change all.
>
> correct.  but there is lot of
>
>         #if PSZ==24
>
> etc. code in both the header files (defining lots of magic little helpers)
> and actual C code.   and much of this stuff is 32 bit only right now
> (and pretty tricky to understand and extend to 64 bit, I tried this long ago
> for a while and gave up because it took too much time).
>
> Harald
> --
> All SCSI disks will from now on                     ___       _____
> be required to send an email notice                0--,|    /OOOOOOO\
> 24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
>                                                     \  \/OOOOOOOOOOOOOOO\
>                                                       \ OOOOOOOOOOOOOOOOO|//
> Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
> Inst.f.Theoret.Astrophysik                              //  /     \\  \
> koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com




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

* DU C/C++ compiler
  1998-05-23  2:55 while we're talking about the Millenium II Jay A Estabrook
  1998-05-23 11:30 ` Uncle George
@ 1998-06-02  9:29 ` Vladimir Kamenov
  1998-06-04 16:14   ` Fun with assembler Shane Steven Sturrock
  1 sibling, 1 reply; 8+ messages in thread
From: Vladimir Kamenov @ 1998-06-02  9:29 UTC (permalink / raw)
  To: axp-list

Hi,

Is it possible to install the DU C/C++ compiler under Linux?
Can someone give me an advice (recipe) how to do it?

Thanks,
--Vlado


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

* Fun with assembler
  1998-06-02  9:29 ` DU C/C++ compiler Vladimir Kamenov
@ 1998-06-04 16:14   ` Shane Steven Sturrock
  1998-06-05  3:35     ` Richard Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Shane Steven Sturrock @ 1998-06-04 16:14 UTC (permalink / raw)
  To: axp-list

Finally getting somewhere with this alpha.

First some history.

We are working on some 64 bit code which isn't being optimised very well with 
gcc/egcs and as a result our 533Mhz alpha was being trounced by the MIPS 
R10000s in our SGI Challenge which only run at 200Mhz.  Said trouncing was of 
the order of 15% poorer performance for the alpha.  Grim situation for us, big 
laughs from the SGI boys.

Needless to say the problem is with the compilers.  The one on the SGI is smart 
enough to know how to get the best out of the chip, gcc/egcs is not.  Of course 
there is the option of DU C which is supposed to give about 30% better results 
than gcc.  I can now believe this having improved the performance of our code 
by a similar amount by a few simple changes to the assembler output of egcs.

The problem is that the alpha quite often gets stalled if you write code which 
is very tight, ie plenty of registers used and each instruction relies on the 
previous one.  The trick to getting better performance is to try and pair up 
your instructions but you can only really do this at the assembly level.  The 
good news is it is easy, you just need to find the busiest part of your 
program, in our case its an intensive repetitive operation in a loop.  Going 
through this code it quickly became apparent that the alpha was being stalled 
like mad, a typical example being:

   srl $3,7,$1
   srl $4,7,$2

The srl instruction must go down pipeline E0 and because there are two of these 
you end up with pipe E1 doing nothing.  The solution, stick an instruction in 
between the two:

   srl $3,7,$1
   addq $8,$6,$8
   srl $4,7,$2

Now the addq is using the second pipeline.  Do the same for the second srl and 
you're off and running.

Most instructions can run in both E0 and E1 but some are E0 or E1 only.  Mix 
and match, don't be affraid to put nop instructions in to pair up with an srl 
or whatever that you can't pair up with something else, you must try and keep 
things in step.

I have put the pdf files I got this from on my machine for anonymous ftp, you 
can get it from nova.bru.ed.ac.uk in the /pub directory, the original site for 
these is
 http://www.partner.digital.com/www-swdev/pages/Home/TECH/documents/alpha_cookboo
k/biblio.htm.  

The most interesting section is on the internal architecture.  There are good 
descriptions and examples of code to look at.  Now, if I can just squeeze a bit 
more out of it, we're already 30% faster than the MIPS, there must be something 
more I can do...... :-)

Dr. Shane Sturrock - sss@holyrood.ed.ac.uk
kernel: Calibrating delay loop.. ok - 529.53 BogoMIPS
Mmmmmmmmmmm :-)


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

* Re: Fun with assembler
@ 1998-06-04 18:18 Greg Lindahl
  0 siblings, 0 replies; 8+ messages in thread
From: Greg Lindahl @ 1998-06-04 18:18 UTC (permalink / raw)
  To: Shane.Sturrock; +Cc: axp-list

> We are working on some 64 bit code which isn't being optimised very well with 
> gcc/egcs and as a result our 533Mhz alpha was being trounced by the MIPS 
> R10000s in our SGI Challenge which only run at 200Mhz.  Said trouncing was of 
> the order of 15% poorer performance for the alpha.  Grim situation for us, big 
> laughs from the SGI boys.

15% slower, for a machine which costs 1/3 as much? Yeah, that's a
trouncing all right.

I think that the egcs folks are working on some instruction
scheduling. But you shouldn't be dismayed by losing by 15%. I just
presented a poster at the DoD HPC User's Group meeting in which
a CFD code on my 64-node Alpha cluster was beaten by 30% by a 64-node
SGI O2k. My cluster costs 1/10 as much, and I can scale it much bigger
than 128 nodes. For this code, that's a great result, even though
I know the compiler could do a better job.

Has anyone played with the egcs instruction scheduler?

-- g


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

* Re: Fun with assembler
  1998-06-04 16:14   ` Fun with assembler Shane Steven Sturrock
@ 1998-06-05  3:35     ` Richard Henderson
  0 siblings, 0 replies; 8+ messages in thread
From: Richard Henderson @ 1998-06-05  3:35 UTC (permalink / raw)
  To: Shane Steven Sturrock, axp-list

On Thu, Jun 04, 1998 at 04:14:39PM +0000, Shane Steven Sturrock wrote:
> Needless to say the problem is with the compilers.  The one on the SGI
> is smart enough to know how to get the best out of the chip, gcc/egcs
> is not.

Compiler version and source used?  

> The trick to getting better performance is to try and pair up 
> your instructions but you can only really do this at the assembly level.

The Haifa scheduler used in EGCS knows about instruction issue and
pipelines.  It doesn't know about how alignment affects issue, but
that's not nearly as drastic a problem.

You may be interested to look at the scheduling visualizations
produced by the Haifa scheduler when you give gcc the -dR option.

So the claim is that we should be doing the right thing now.

> ... there must be something more I can do...... :-)

The best thing that you can do is to examine your source code, identify
the hot spots that are not being optimized properly, and submit reports
with example source to the egcs list.


r~


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

end of thread, other threads:[~1998-06-05  3:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-23  2:55 while we're talking about the Millenium II Jay A Estabrook
1998-05-23 11:30 ` Uncle George
1998-05-24  9:52   ` Harald Koenig
1998-05-25  9:43     ` Uncle George
1998-06-02  9:29 ` DU C/C++ compiler Vladimir Kamenov
1998-06-04 16:14   ` Fun with assembler Shane Steven Sturrock
1998-06-05  3:35     ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1998-06-04 18:18 Greg Lindahl

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