* Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 @ 1999-01-03 8:59 Ron 1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer 1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson 0 siblings, 2 replies; 14+ messages in thread From: Ron @ 1999-01-03 8:59 UTC (permalink / raw) To: axp-list Hi All I see strange behavior of the Serial Ports on both my Noname (AXPXI33 with standard AT style Keyboard port) based Alpha servers. When trying to install a backup modem for the 1 st time it seems that no communications software is able to access the ports (both 0 and 1). Plugging in a modem both the RD and SD lights are turning on immediately (starting directly at power up!). Would anyone have a suggestion as to what to try next? Thanks in advance, Ron ^ permalink raw reply [flat|nested] 14+ messages in thread
* Performance again 1999-01-03 8:59 Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Ron @ 1999-01-03 11:21 ` Herwin Jan Steehouwer 1999-01-03 13:23 ` geerten kuiper 1999-01-03 22:06 ` warp 1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson 1 sibling, 2 replies; 14+ messages in thread From: Herwin Jan Steehouwer @ 1999-01-03 11:21 UTC (permalink / raw) To: axp-list Hello, i'm testing some programms, the C programm uses 32 bits floats, My 366XL alpha is slower in his output than my cheaper-than-cheap Pii266... i use EGCS 1.0.3a ( for Mesa also.. Mesa gives a internal compiler error with 1.1.1 ;-( ) can i speed up the code with 64 bits floats ?? or can i set beter optimizing the -O2 ??? tanx again ! Herwin Jan Herwin Jan Steehouwer herwinjs@palet.nl http://www.caiw.nl/~herwinjs steehouwer@kde.org KDE developer http://www.kde.org ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer @ 1999-01-03 13:23 ` geerten kuiper 1999-01-03 14:36 ` Herwin Jan Steehouwer 1999-01-03 14:37 ` Herwin Jan Steehouwer 1999-01-03 22:06 ` warp 1 sibling, 2 replies; 14+ messages in thread From: geerten kuiper @ 1999-01-03 13:23 UTC (permalink / raw) To: axp-list Herwin Jan, Some ideas: - as always, much depends on what your program is trying to do. - make shure you use the improved math libraries (I think <http://people.frankfurt.netsurf.de/Joachim.Wesner/libffm.0.28.tar.gz> has the latest.) - David Mosberger once wrote an article on optimizing code for Alpha. You may be able to find it somewhere on the web. Cache optimization is the main thing to realize the Alphas full potential. - using 64 bit floats will probably be almost as fast as 32 bits (contrary to your PentiumII, where it will be much slower.) - on some older Alpha boxes, memory bandwith limits performance. On your XL this should be less of an issue (is it 128 or 256 bits wide ?) Groeten, Geerten. At 12:21 03/01/99 +0100, you wrote: >Hello, > > >i'm testing some programms, the C programm uses 32 bits floats, My 366XL >alpha is slower in his output than my cheaper-than-cheap Pii266... > >i use EGCS 1.0.3a ( for Mesa also.. Mesa gives a internal compiler error >with 1.1.1 ;-( ) > >can i speed up the code with 64 bits floats ?? or can i set beter >optimizing the -O2 ??? > Geerten Kuiper | "It is customary to append a signature or Corn. Houtmanstraat 113 | .sig to a mail message, usually containing 2593 RG Den Haag | information on the author, along with a Nederland | joke or a motto." | Olaf Kirch | LINUX Network Administrators Guide ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 13:23 ` geerten kuiper @ 1999-01-03 14:36 ` Herwin Jan Steehouwer 1999-01-03 20:22 ` Ed Hall 1999-01-04 4:49 ` Joseph Curtis 1999-01-03 14:37 ` Herwin Jan Steehouwer 1 sibling, 2 replies; 14+ messages in thread From: Herwin Jan Steehouwer @ 1999-01-03 14:36 UTC (permalink / raw) To: axp-list On Sun, 3 Jan 1999, geerten kuiper wrote: > Herwin Jan, > > Some ideas: > > - as always, much depends on what your program is trying to do. > - make shure you use the improved math libraries (I think > <http://people.frankfurt.netsurf.de/Joachim.Wesner/libffm.0.28.tar.gz> > has the latest.) > - David Mosberger once wrote an article on optimizing code for Alpha. You > may be able to find it somewhere on the web. Cache optimization is the main > thing to realize the Alphas full potential. i cannot find him ;-( also his e-mail adres i found, was not working ;( > - using 64 bit floats will probably be almost as fast as 32 bits (contrary > to your PentiumII, where it will be much slower.) ok, will try that ! > - on some older Alpha boxes, memory bandwith limits performance. On your XL > this should be less of an issue (is it 128 or 256 bits wide ?) 366Xl is 128 bits wide ! a test programm ( see attachment ) will give this output ! how can i speed this up ?? ( gcc -o preftest preftest.c ) NO optimizing for this test ! SGI 100 Mhz R4k: time perftest i 7.359 time perftest f 3.534 time perftest d 4.942 Alpha 233 Mhz: time perftest i 9.140 time perftest f 2.290u time perftest d 3.050u Intel P2 300Mhz: time perftest i 1.955 time perftest f 1.555 time perftest d 2.614 tanx HJ Herwin Jan Steehouwer herwinjs@palet.nl http://www.caiw.nl/~herwinjs steehouwer@kde.org KDE developer http://www.kde.org ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 14:36 ` Herwin Jan Steehouwer @ 1999-01-03 20:22 ` Ed Hall 1999-01-04 4:49 ` Joseph Curtis 1 sibling, 0 replies; 14+ messages in thread From: Ed Hall @ 1999-01-03 20:22 UTC (permalink / raw) To: Herwin Jan Steehouwer; +Cc: axp-list > On Sun, 3 Jan 1999, geerten kuiper wrote: > > Herwin Jan, > > - David Mosberger once wrote an article on optimizing code for Alpha. You > > may be able to find it somewhere on the web. Cache optimization is the main > > thing to realize the Alphas full potential. > i cannot find him ;-( also his e-mail adres i found, was not working ;( It's at "http://www.mostang.com/~davidm/papers/expo97/paper.ps.gz". I've obtained 2:1 speedups using the techniques in his paper. > > - on some older Alpha boxes, memory bandwith limits performance. On your XL > > this should be less of an issue (is it 128 or 256 bits wide ?) > > 366Xl is 128 bits wide ! Memory bandwidth usually isn't as much the issue as memory latency. The Mosberger paper presents some techniques for avoiding processor stalls due to memory latency that work quite well. > a test programm ( see attachment ) will give this output ! how can i speed > this up ?? ( gcc -o preftest preftest.c ) NO optimizing for this test ! No optimization? That, IMHO, is silly! Just about any advanced processor can benefit from compiler optimizations, some more than others. This is especially true of highly pipelined multi-issue CPU's like the Alpha. Concerning your benchmark: you are performing an unusual number of divisions. The Alpha is especially weak on integer division, while its floating-point division is only so-so. Avoiding divisions when possible (e.g. multiplication by the reciprocal, such as "val1*= (val2)/(val2*val2 + val3)" instead of "val1/= (val2*val2 + val3)/(val2)") is a win on just about any architecture, including Pentium, but it is especially desirable on Alpha. Just for fun, I ran your benchmark (unaltered and unoptimized) on a 533MHz LX164 system: time perftest i 2.77 time perftest f 0.93 time perftest d 1.28 Not too bad, really. (The P2-300's were just coming out when I bought this system, BTW, and only cost about 20% less.) -Ed Hall edhall@ayched.com ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 14:36 ` Herwin Jan Steehouwer 1999-01-03 20:22 ` Ed Hall @ 1999-01-04 4:49 ` Joseph Curtis 1 sibling, 0 replies; 14+ messages in thread From: Joseph Curtis @ 1999-01-04 4:49 UTC (permalink / raw) To: axp-list Another set of data points (note the DEC compiler _key point_): using only DEC cc: on 333MHz Alpha (limantour)home/jc% time perftest i mixed int 0.182u 0.004s 0:00.19 94.7% 0+0k 0+0io 0pf+0w (limantour)home/jc% time perftest f float 0.649u 0.003s 0:00.65 98.4% 0+0k 0+0io 0pf+0w (limantour)home/jc% time perftest d double 0.391u 0.005s 0:00.39 100.0% 0+0k 0+1io 0pf+0w using gcc: on 500MHz PC164 (wasatch)/home/jc/% gcc preftest.c -o perftest (wasatch)/home/jc/% time perftest i mixed int 2.939u 0.003s 0:06.13 47.7% 0+0k 0+0io 67pf+0w (wasatch)/home/jc/% time perftest f float 0.906u 0.003s 0:02.07 43.4% 0+0k 0+0io 67pf+0w (wasatch)/home/jc/% time perftest d double 1.279u 0.004s 0:02.50 50.8% 0+0k 0+0io 67pf+0w using DEC cc (-non_shared) on 500MHz PC164 (wasatch)/home/jc/% time perftest_ns i mixed int 0.122u 0.000s 0:00.51 23.5% 0+0k 0+0io 15pf+0w (wasatch)/home/jc/% time perftest_ns f float 0.432u 0.001s 0:00.99 43.4% 0+0k 0+0io 12pf+0w (wasatch)/home/jc/% time perftest_ns d double 0.261u 0.001s 0:00.46 56.5% 0+0k 0+0io 12pf+0w ******************************************************************************* Joseph E. Curtis Office: 949-824-7473 Department of Chemistry Pager: 714-238-0557 590 Physical Sciences I Fax: 949-824-8571 University of California E-mail: curtisj@uci.edu Irvine, California 92697-2025 http://CX290227-A.msnv1.occa.home.com ******************************************************************************* On Sun, 3 Jan 1999, Herwin Jan Steehouwer wrote: > On Sun, 3 Jan 1999, geerten kuiper wrote: > > > Herwin Jan, > > > > Some ideas: > > > > - as always, much depends on what your program is trying to do. > > - make shure you use the improved math libraries (I think > > <http://people.frankfurt.netsurf.de/Joachim.Wesner/libffm.0.28.tar.gz> > > has the latest.) > > - David Mosberger once wrote an article on optimizing code for Alpha. You > > may be able to find it somewhere on the web. Cache optimization is the main > > thing to realize the Alphas full potential. > > i cannot find him ;-( also his e-mail adres i found, was not working ;( > > > - using 64 bit floats will probably be almost as fast as 32 bits (contrary > > to your PentiumII, where it will be much slower.) > > ok, will try that ! > > > - on some older Alpha boxes, memory bandwith limits performance. On your XL > > this should be less of an issue (is it 128 or 256 bits wide ?) > > 366Xl is 128 bits wide ! > > a test programm ( see attachment ) will give this output ! how can i speed > this up ?? ( gcc -o preftest preftest.c ) NO optimizing for this test ! > > SGI 100 Mhz R4k: > time perftest i > 7.359 > time perftest f > 3.534 > time perftest d > 4.942 > > Alpha 233 Mhz: > time perftest i > 9.140 > time perftest f > 2.290u > time perftest d > 3.050u > > Intel P2 300Mhz: > time perftest i > 1.955 > time perftest f > 1.555 > time perftest d > 2.614 > > > tanx > HJ > > Herwin Jan Steehouwer > herwinjs@palet.nl http://www.caiw.nl/~herwinjs > steehouwer@kde.org KDE developer http://www.kde.org > > > -- > 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] 14+ messages in thread
* Re: Performance again 1999-01-03 13:23 ` geerten kuiper 1999-01-03 14:36 ` Herwin Jan Steehouwer @ 1999-01-03 14:37 ` Herwin Jan Steehouwer 1999-01-03 21:45 ` Wes Bauske 1 sibling, 1 reply; 14+ messages in thread From: Herwin Jan Steehouwer @ 1999-01-03 14:37 UTC (permalink / raw) To: axp-list [-- Attachment #1: Type: TEXT/PLAIN, Size: 188 bytes --] oops, i forgot the source : HJ Herwin Jan Steehouwer herwinjs@palet.nl http://www.caiw.nl/~herwinjs steehouwer@kde.org KDE developer http://www.kde.org [-- Attachment #2: Type: TEXT/PLAIN, Size: 730 bytes --] /* cc perftest.c -o perftest */ int main(argc,argv) int argc; char **argv; { int a=5000000; if(argc==2 && argv[1][0]=='f') { float val1=2.0, val2=1.3, val3=1230.4; while(a--) { val1*= (val2*val2 + val3)/(val2); val1/= (val2*val2 + val3)/(val2); } printf("float\n"); } if(argc==2 && argv[1][0]=='i') { float val1=2; int val2=13, val3=1230; while(a--) { val1*= (val2*val2 + val3)/(val2); val1/= (val2*val2 + val3)/(val2); } printf("mixed int\n"); } if(argc==2 && argv[1][0]=='d') { double val1=2.0, val2=1.3, val3=1230.4; while(a--) { val1*= (val2*val2 + val3)/(val2); val1/= (val2*val2 + val3)/(val2); } printf("double\n"); } } ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 14:37 ` Herwin Jan Steehouwer @ 1999-01-03 21:45 ` Wes Bauske 0 siblings, 0 replies; 14+ messages in thread From: Wes Bauske @ 1999-01-03 21:45 UTC (permalink / raw) To: axp-list Herwin Jan Steehouwer wrote: > > oops, i forgot the source : > Herwin, I ran your test on my 533 PC164LX but the loop was optimized out of the code. All tests, i/f/d were 0.03 seconds WCT. So, you need a little change to the test t make the compiler run the loops. Just print out the last value of val1 in your print statements. This forces the compiler to really calculate the loop. I got the following results with that change: [wsb@wsb5 home]$ time preftest d double val1=2 0.24user 0.00system 0:00.25elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (68major+13minor)pagefaults 0swaps [wsb@wsb5 home]$ time preftest i mixed int val1=2.000000 2.01user 0.00system 0:02.02elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (68major+13minor)pagefaults 0swaps [wsb@wsb5 home]$ time preftest f float val1=2.000000 0.18user 0.00system 0:00.18elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (68major+13minor)pagefaults 0swaps Also, I used gcc -O2 : gcc version egcs-2.90.29 980515 (egcs-1.0.3 release) Watch out though how you use the results. This test is way too simple to represent a real application. Most likely almost all the work was moved out of the loop because it doesn't vary from iteration to iteration. Wes ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer 1999-01-03 13:23 ` geerten kuiper @ 1999-01-03 22:06 ` warp 1999-01-03 22:35 ` warp 1 sibling, 1 reply; 14+ messages in thread From: warp @ 1999-01-03 22:06 UTC (permalink / raw) To: axp-list Herwin Jan Steehouwer wrote: > > Hello, > > i'm testing some programms, the C programm uses 32 bits floats, My 366XL > alpha is slower in his output than my cheaper-than-cheap Pii266... > > i use EGCS 1.0.3a ( for Mesa also.. Mesa gives a internal compiler error > with 1.1.1 ;-( ) > > can i speed up the code with 64 bits floats ?? or can i set beter > optimizing the -O2 ??? I use "CFLAGS= -O3 -funroll-all-loops -fomit-frame-pointer \ -finline-functions -ffast-math", which works pretty well for me. Regards, Antoine p.s. I'm using EGCS 1.0.3a too... ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Performance again 1999-01-03 22:06 ` warp @ 1999-01-03 22:35 ` warp 0 siblings, 0 replies; 14+ messages in thread From: warp @ 1999-01-03 22:35 UTC (permalink / raw) To: axp-list warp@xs4all.nl wrote: > > Herwin Jan Steehouwer wrote: > > > > Hello, > > > > i'm testing some programms, the C programm uses 32 bits floats, My 366XL > > alpha is slower in his output than my cheaper-than-cheap Pii266... > > > > i use EGCS 1.0.3a ( for Mesa also.. Mesa gives a internal compiler error > > with 1.1.1 ;-( ) > > > > can i speed up the code with 64 bits floats ?? or can i set beter > > optimizing the -O2 ??? > > I use "CFLAGS= -O3 -funroll-all-loops -fomit-frame-pointer \ > -finline-functions -ffast-math", which works pretty well for me. Allmost forgot, I also use libffm (as mentioned in another post). Regards, Antoine p.s. the XL3xx and XL4xx boxen both have a 256bit membus, that is, when you fill /all/ 8 simm slots... ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 1999-01-03 8:59 Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Ron 1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer @ 1999-01-03 13:35 ` Kari Davidsson 1999-01-03 17:07 ` (Help) " Ron 1 sibling, 1 reply; 14+ messages in thread From: Kari Davidsson @ 1999-01-03 13:35 UTC (permalink / raw) To: axp-list Thus spake Ron (macron@casema.net): > Hi All > > I see strange behavior of the Serial Ports on both my Noname (AXPXI33 with > standard AT style Keyboard port) based Alpha servers. When trying to > install a backup modem for the 1 st time it seems that no communications > software is able to access the ports (both 0 and 1). > Plugging in a modem both the RD and SD lights are turning on immediately > (starting directly at power up!). > > Would anyone have a suggestion as to what to try next? Is the kernel echoing the startup information to the serial port? This is a behaviour is a compile option for the kernel. It might be possible to turnit off through boot parameters but I am not shure. Hope this helps, K.D. > > Thanks in advance, > > Ron > > -- > 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] 14+ messages in thread
* Re: (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson @ 1999-01-03 17:07 ` Ron 1999-01-03 20:32 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH Matthew Geier 1999-01-03 21:47 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Wes Bauske 0 siblings, 2 replies; 14+ messages in thread From: Ron @ 1999-01-03 17:07 UTC (permalink / raw) To: axp-list Unfortunately it is not the kernel echoing to the port. Anyone else having a suggestion? Ron >> >> I see strange behavior of the Serial Ports on both my Noname (AXPXI33 with >> standard AT style Keyboard port) based Alpha servers. When trying to >> install a backup modem for the 1 st time it seems that no communications >> software is able to access the ports (both 0 and 1). >> Plugging in a modem both the RD and SD lights are turning on immediately >> (starting directly at power up!). >> >> Would anyone have a suggestion as to what to try next? > >Is the kernel echoing the startup information to the serial port? This is a >behaviour is a compile option for the kernel. It might be possible to turnit >off through boot parameters but I am not shure. > >Hope this helps, > >K.D. >> >> Thanks in advance, >> >> Ron >> >> -- >> 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 > >-- >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] 14+ messages in thread
* Re: (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 1999-01-03 17:07 ` (Help) " Ron @ 1999-01-03 20:32 ` Matthew Geier 1999-01-03 21:47 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Wes Bauske 1 sibling, 0 replies; 14+ messages in thread From: Matthew Geier @ 1999-01-03 20:32 UTC (permalink / raw) To: axp-list > > Unfortunately it is not the kernel echoing to the port. Anyone else having > a suggestion? > Wrong serial port header ?. A handshake signals might be routes to the modems TX line. There is more than one type of serial connector out there. When I built my AXPpci33 out of the serial connecting cables I had, one worked and the other I had to rewire... -- Matthew Geier, | Australian Public Access Network Association matthew@sleeper.apana.org.au | +61 2 9587 9773 matthew@law.usyd.edu.au | 018 977 356 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 1999-01-03 17:07 ` (Help) " Ron 1999-01-03 20:32 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH Matthew Geier @ 1999-01-03 21:47 ` Wes Bauske 1 sibling, 0 replies; 14+ messages in thread From: Wes Bauske @ 1999-01-03 21:47 UTC (permalink / raw) To: axp-list Ron wrote: > > Unfortunately it is not the kernel echoing to the port. Anyone else having > a suggestion? > > Ron > > >> > >> I see strange behavior of the Serial Ports on both my Noname (AXPXI33 with > >> standard AT style Keyboard port) based Alpha servers. When trying to > >> install a backup modem for the 1 st time it seems that no communications > >> software is able to access the ports (both 0 and 1). > >> Plugging in a modem both the RD and SD lights are turning on immediately > >> (starting directly at power up!). > >> > >> Would anyone have a suggestion as to what to try next? > > > >Is the kernel echoing the startup information to the serial port? This is a > >behaviour is a compile option for the kernel. It might be possible to turnit > >off through boot parameters but I am not shure. > > > >Hope this helps, > > Could also be milo. Wes ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1999-01-04 5:07 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1999-01-03 8:59 Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Ron 1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer 1999-01-03 13:23 ` geerten kuiper 1999-01-03 14:36 ` Herwin Jan Steehouwer 1999-01-03 20:22 ` Ed Hall 1999-01-04 4:49 ` Joseph Curtis 1999-01-03 14:37 ` Herwin Jan Steehouwer 1999-01-03 21:45 ` Wes Bauske 1999-01-03 22:06 ` warp 1999-01-03 22:35 ` warp 1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson 1999-01-03 17:07 ` (Help) " Ron 1999-01-03 20:32 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH Matthew Geier 1999-01-03 21:47 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Wes Bauske
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox