* Impossible
@ 1998-09-08 21:04 Mark Dohojda
1998-09-09 13:37 ` Impossible Simon Kenyon
` (6 more replies)
0 siblings, 7 replies; 13+ messages in thread
From: Mark Dohojda @ 1998-09-08 21:04 UTC (permalink / raw)
To: axp-list
Hello everyone
I have an Impassable situation here (or so I believe). I have a
customer here who just installed Linux on alpha LX600mhz, 512mb of RAM.
He run C program in NT and in Linux (on the same box), and NT proved to
be 30% faster. Now I don't know much about the code, however I know
that he used the same sources on both of the operating systems. Also
the source (to the best of my knowledge) was in no way optimized for NT.
My question is, how can NT beat Linux????? Is that possible? And what to
do, to make sure that Linux is not going to look bad.
He has RedHat 5.1 no special editions or patches other then the man
pages patch.
Also one other question. Part of the problem might be his swap
partitions. He has total of 8 swap partitions 128mb each, how can I
make sure that Linux is using all of them? or does RedHat installation
automatically makes sure that all the swap partitions are working
correctly?
Thank you
Marek Dohojda
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-09 21:06 ` Impossible Michal Jaegermann
@ 1998-09-09 10:41 ` Ken Hansen
1998-09-10 6:49 ` Impossible gkoch
1 sibling, 0 replies; 13+ messages in thread
From: Ken Hansen @ 1998-09-09 10:41 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
>
> Ken Hansen wrote:
> >
> > Hello Mark,
> > I personally do not have much exp. with Alphas and C programming,
> > but I was under the impression that the C Compiler was the weakest link
> > in RH Linux...
>
> Sigh! Not again! If you want to spread misinformation do that at least
> in a private mail.
Michal,
You make a valid point - I probably should have held back my
"impressions" of the problem and wait for someone more exp. with these
issues... I am not a C programmer (on Alphas or other architecture), but
I was operating from recollections...
Thanks,
Ken
khansen@njcc.c
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
@ 1998-09-09 13:37 ` Simon Kenyon
1998-09-09 13:47 ` Impossible Armin Ollig
` (5 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Simon Kenyon @ 1998-09-09 13:37 UTC (permalink / raw)
To: axp-list
get him to do a ps on the machine
over the weekend i built myself my first alpha machine and was unimpressed
with the performance
then i notices messages in /var/log/messages like:
Apr 16 17:17:18 mc1 kernel: Cannot read proc file system: 9 - Bad file
descriptor.
Apr 16 17:17:51 mc1 last message repeated 240555 times
looking at ps it became obvious that klogd and syslogd where comsuming over
90% of the CPU
i applied ALL the updates from redhat and the problem went away
a quick check is to kill klogd and do the timing again
well at least that was my problem
--
simon
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
1998-09-09 13:37 ` Impossible Simon Kenyon
@ 1998-09-09 13:47 ` Armin Ollig
1998-09-09 18:29 ` Impossible Harvey J. Stein
1998-09-09 14:19 ` Impossible David Alan Gilbert
` (4 subsequent siblings)
6 siblings, 1 reply; 13+ messages in thread
From: Armin Ollig @ 1998-09-09 13:47 UTC (permalink / raw)
To: axp-list
Mark,
the problem is the compiler.
Gcc makes rather slow alpha code ;^(
We all have to suffer from this fact.
Please mail Digital and ask them to make the Digital Unix compiler
available, this will beat the speed of the Microsoft compiler (thou iam
not shure if MS really made a compler or if they just bought something
from Digital)
best regards,
--armin
---------------------------------------------------------------------
| Armin Ollig UNIX Systems Administration armin@tops.net |
| |
| If god is dead who will save the queen ? |
---------------------------------------------------------------------
On Tue, 8 Sep 1998, Mark Dohojda wrote:
>
>
> Hello everyone
>
> I have an Impassable situation here (or so I believe). I have a
> customer here who just installed Linux on alpha LX600mhz, 512mb of RAM.
> He run C program in NT and in Linux (on the same box), and NT proved to
> be 30% faster. Now I don't know much about the code, however I know
> that he used the same sources on both of the operating systems. Also
> the source (to the best of my knowledge) was in no way optimized for NT.
>
>
> My question is, how can NT beat Linux????? Is that possible? And what to
> do, to make sure that Linux is not going to look bad.
>
> He has RedHat 5.1 no special editions or patches other then the man
> pages patch.
>
> Also one other question. Part of the problem might be his swap
> partitions. He has total of 8 swap partitions 128mb each, how can I
> make sure that Linux is using all of them? or does RedHat installation
> automatically makes sure that all the swap partitions are working
> correctly?
>
> Thank you
> Marek Dohojda
>
> --
> 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] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
1998-09-09 13:37 ` Impossible Simon Kenyon
1998-09-09 13:47 ` Impossible Armin Ollig
@ 1998-09-09 14:19 ` David Alan Gilbert
1998-09-09 14:50 ` Impossible Adam C. Powell, IV
` (3 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: David Alan Gilbert @ 1998-09-09 14:19 UTC (permalink / raw)
To: axp-list
Mark Dohojda wrote:
>
> Hello everyone
>
> I have an Impassable situation here (or so I believe). I have a
> customer here who just installed Linux on alpha LX600mhz, 512mb of RAM.
> He run C program in NT and in Linux (on the same box), and NT proved to
> be 30% faster. Now I don't know much about the code, however I know
> that he used the same sources on both of the operating systems. Also
> the source (to the best of my knowledge) was in no way optimized for NT.
>
> My question is, how can NT beat Linux????? Is that possible? And what to
> do, to make sure that Linux is not going to look bad.
The simple answer is that he is probably using a better compiler on the NT
box. Since he is using RH5.1 first make sure that he is using the 'egcs'
compiler and not the gcc compiler to compile his program (just use the
command egcs instead of gcc). Secondly he should be looking at using
the flags to tell EGCS that he has the 21164A processor (its something
like -mcpu=21164a - someone correct me?).
> He has RedHat 5.1 no special editions or patches other then the man
> pages patch.
Does his program make heavy use of square roots? If so there was an
issue mentioned recently on the list about the square root implementation
in the library.
> Also one other question. Part of the problem might be his swap
> partitions. He has total of 8 swap partitions 128mb each, how can I
> make sure that Linux is using all of them? or does RedHat installation
> automatically makes sure that all the swap partitions are working
> correctly?
Its probably not a good idea to have 8 swap partitions on a single disc; that
would be slow; if they are on separate discs then RedHat should use them all
properly. (You can set priorities to indicate if some discs are preferable to
others).
But the other question is why? Linux/Alpha is quite capable of having one
big nice 1GB swap partition (I think) - its a limitation on architectures
with smaller page sizes which causes the 128MB limit.
Dave
--
----------------------------------------------------------------------
- Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
- Work: dg @ cogency.co.uk - +44-(0)161-428-9444 -
- Home: gro.gilbert @ treblig.org - -
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
` (2 preceding siblings ...)
1998-09-09 14:19 ` Impossible David Alan Gilbert
@ 1998-09-09 14:50 ` Adam C. Powell, IV
1998-09-09 14:52 ` Impossible Ken Hansen
` (2 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: Adam C. Powell, IV @ 1998-09-09 14:50 UTC (permalink / raw)
To: axp-list
Mark Dohojda wrote:
> Hello everyone
>
> I have an Impassable situation here (or so I believe). I have a
> customer here who just installed Linux on alpha LX600mhz, 512mb of RAM.
> He run C program in NT and in Linux (on the same box), and NT proved to
> be 30% faster. Now I don't know much about the code, however I know
> that he used the same sources on both of the operating systems. Also
> the source (to the best of my knowledge) was in no way optimized for NT.
>
> My question is, how can NT beat Linux????? Is that possible? And what to
> do, to make sure that Linux is not going to look bad.
>
> He has RedHat 5.1 no special editions or patches other then the man
> pages patch.
What kind of program is it? If it has a lot of math it might be sped up
quite a bit using the free fast math library libffm of Wesner and Goto at
http://people.frankfurt.netsurf.de/Joachim.Wesner/ . A friend of mine had
a program which was heavy in exp and sqrt, and this library sped up its
runtime from 380 seconds to 98!! That's an extreme example, but just shows
it can make a substantial difference.
One tip- if that library causes floating exceptions even with -mieee (due
to underflow in exp), try removing exp from libffm, building libfm, and
linking -lffm -lfm -lm. (I had to do this for my friend's program in the
above example.)
Zeen,
-Adam `Cold Fusion' Powell, IV _/\_ http://www.ctcms.nist.gov/~powell/
Call with Netscape Conference! \/ http://dls.netscape.com/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
` (3 preceding siblings ...)
1998-09-09 14:50 ` Impossible Adam C. Powell, IV
@ 1998-09-09 14:52 ` Ken Hansen
1998-09-09 21:06 ` Impossible Michal Jaegermann
1998-09-09 14:57 ` Impossible Adam C. Powell, IV
1998-09-09 16:48 ` Impossible B. James Phillippe
6 siblings, 1 reply; 13+ messages in thread
From: Ken Hansen @ 1998-09-09 14:52 UTC (permalink / raw)
To: axp-list
Hello Mark,
I personally do not have much exp. with Alphas and C programming,
but I was under the impression that the C Compiler was the weakest link
in RH Linux... It has been widely discussed that the Digital Unix
compiler
produces MUCH faster executables than the compiler included with Red Hat
Linux.
I think your client will need to look into alternative compilers
for use on the Alpha if he wants Linux to beat WinNT...
I don't think this is a swap problem, but 8 tiny swap partitions
seems abit extreme - can he reorganize it to be two partitions, each
as big as actual RAM (512 Meg)? I don't think it will make much of a
differnece, but I wonder how good performance will be if he goes to swap
out a 130 Meg image - one partition will not handle it...
I have always regarded SWAP as voodoo science - you find what
works and don't ask questions (there are many such things in computers,
like trying to predict how the database optimizer will work, etc. You
can make good guesses, but you never REALLY know what is happening...).
Good luck,
Ken
khansen@njcc.com
Mark Dohojda wrote:
>
> Hello everyone
>
> I have an Impassable situation here (or so I believe). I have a
> customer here who just installed Linux on alpha LX600mhz, 512mb of RAM.
> He run C program in NT and in Linux (on the same box), and NT proved to
> be 30% faster. Now I don't know much about the code, however I know
> that he used the same sources on both of the operating systems. Also
> the source (to the best of my knowledge) was in no way optimized for NT.
>
> My question is, how can NT beat Linux????? Is that possible? And what to
> do, to make sure that Linux is not going to look bad.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
` (4 preceding siblings ...)
1998-09-09 14:52 ` Impossible Ken Hansen
@ 1998-09-09 14:57 ` Adam C. Powell, IV
1998-09-09 16:48 ` Impossible B. James Phillippe
6 siblings, 0 replies; 13+ messages in thread
From: Adam C. Powell, IV @ 1998-09-09 14:57 UTC (permalink / raw)
To: axp-list
Sorry for the repeat posting, but...
What kind of disk does your friend have? IDE? If so, drivers for the
CMD646 chipset on LX motherboards were not implemented until development
kernel 2.1.115. Since that kernel, my disk transfers have been about
3-4 times faster in wall clock time, and use about 1/15 the CPU
resources they used to. NT has probably had such drivers since the
beginning.
Zeen,
-Adam `Cold Fusion' Powell, IV _/\_ http://www.ctcms.nist.gov/~powell/
Call with Netscape Conference! \/ http://dls.netscape.com/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-08 21:04 Impossible Mark Dohojda
` (5 preceding siblings ...)
1998-09-09 14:57 ` Impossible Adam C. Powell, IV
@ 1998-09-09 16:48 ` B. James Phillippe
6 siblings, 0 replies; 13+ messages in thread
From: B. James Phillippe @ 1998-09-09 16:48 UTC (permalink / raw)
To: axp-list
On Tue, 8 Sep 1998, Mark Dohojda wrote:
> He run C program in NT and in Linux (on the same box), and NT proved to
> be 30% faster. Now I don't know much about the code, however I know
> that he used the same sources on both of the operating systems. Also
> the source (to the best of my knowledge) was in no way optimized for NT.
...
> My question is, how can NT beat Linux????? Is that possible? And what to
> do, to make sure that Linux is not going to look bad.
It's impossible to know what's happening without knowing what this program
does. One theory: I've heard that the Linux Alpha math libraries are
really slow and inefficient. If the program uses floating point a lot,
that might be the problem. Another very likely candidate is the compiler:
I've also heard Microsoft's Alpha compiler is actually Digital's handiwork.
The compiler that comes with RedHat is not really the best available. You
could try getting egcs-1.1 release from http://egcs.cygnus.com and
compiling it with the Haifa scheduler, then rebuilding your code with
something like -O3 -ffast-math. Let us know what the results are.
cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGTI.
http://earth.terran.org/~bryan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-09 13:47 ` Impossible Armin Ollig
@ 1998-09-09 18:29 ` Harvey J. Stein
0 siblings, 0 replies; 13+ messages in thread
From: Harvey J. Stein @ 1998-09-09 18:29 UTC (permalink / raw)
To: axp-list; +Cc: hjstein
Armin Ollig <armin@data.tops.net> writes:
> Mark,
>
> the problem is the compiler.
> Gcc makes rather slow alpha code ;^(
>
> We all have to suffer from this fact.
>
> Please mail Digital and ask them to make the Digital Unix compiler
> available, this will beat the speed of the Microsoft compiler (thou iam
> not shure if MS really made a compler or if they just bought something
> from Digital)
>
> best regards,
> --armin
First of all, it could very well be that the NT compiler does
better scheduling when not optimizing. Compile both with optimization
& see what happens. What's the point of benchmarking without
optimization?
--
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
@ 1998-09-09 19:43 John Porcello
0 siblings, 0 replies; 13+ messages in thread
From: John Porcello @ 1998-09-09 19:43 UTC (permalink / raw)
To: axp-list
Mark,
You haven't described what the C program does, but you might want to
try using gdb (GNU Debugger).
A debugger or profiler, like "tprof", will tell you which parts of the
program are taking the longest. This can help you optimize code by
identifying the most inefficient/slowest areas in the source.
Profiling on both the NT side as well the LINUX side may give you a
better insight into actual performance.
Good Luck
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-09 14:52 ` Impossible Ken Hansen
@ 1998-09-09 21:06 ` Michal Jaegermann
1998-09-09 10:41 ` Impossible Ken Hansen
1998-09-10 6:49 ` Impossible gkoch
0 siblings, 2 replies; 13+ messages in thread
From: Michal Jaegermann @ 1998-09-09 21:06 UTC (permalink / raw)
To: khansen; +Cc: axp-list
Ken Hansen wrote:
>
> Hello Mark,
> I personally do not have much exp. with Alphas and C programming,
> but I was under the impression that the C Compiler was the weakest link
> in RH Linux...
Sigh! Not again! If you want to spread misinformation do that at least
in a private mail.
There are known issues with libraries on Linux/Alpha; especially
math libraries. This is not the same as "the C Compiler". BTW - which
is this "the" you are talking about as there is quite a few of these
available and, even if we are consider only various versions of
gcc and egcs, they do not produce the same code.
If you have some issues with a code you can pinpoint I am sure that
developers will be interested - especially if you can provide test
cases.
Michal
p.s. If on a project like Linux you will wait until "they" will fix
libraries you are for a possibly long wait. At least with elementary
functions something started to happen recently.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Impossible
1998-09-09 21:06 ` Impossible Michal Jaegermann
1998-09-09 10:41 ` Impossible Ken Hansen
@ 1998-09-10 6:49 ` gkoch
1 sibling, 0 replies; 13+ messages in thread
From: gkoch @ 1998-09-10 6:49 UTC (permalink / raw)
To: axp-list
At 03:06 PM 9/9/98 -0600, you wrote:
>Ken Hansen wrote:
>>
>> Hello Mark,
>> I personally do not have much exp. with Alphas and C programming,
>> but I was under the impression that the C Compiler was the weakest link
>> in RH Linux...
>
>Sigh! Not again! If you want to spread misinformation do that at least
>in a private mail.
Looks like he said what everyone else is saying. I assumed he was talking
about gcc and not one of the ones widely available as that is the one that
comes with redhat and is refered to in the manuals and howtos. I'm sure if
he was dead wrong, someone would point it out teaching us and him in the
process. If it was a private mail, none of us would learn and Mark might
follow him blindly.
>
>There are known issues with libraries on Linux/Alpha; especially
>math libraries. This is not the same as "the C Compiler". BTW - which
>is this "the" you are talking about as there is quite a few of these
>available and, even if we are consider only various versions of
>gcc and egcs, they do not produce the same code.
>
>If you have some issues with a code you can pinpoint I am sure that
>developers will be interested - especially if you can provide test
>cases.
>
> Michal
>
>p.s. If on a project like Linux you will wait until "they" will fix
>libraries you are for a possibly long wait. At least with elementary
>functions something started to happen recently.
>
>--
>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
>
>
>
Greg Koch
gkoch@usa.net
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~1998-09-10 10:35 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-08 21:04 Impossible Mark Dohojda
1998-09-09 13:37 ` Impossible Simon Kenyon
1998-09-09 13:47 ` Impossible Armin Ollig
1998-09-09 18:29 ` Impossible Harvey J. Stein
1998-09-09 14:19 ` Impossible David Alan Gilbert
1998-09-09 14:50 ` Impossible Adam C. Powell, IV
1998-09-09 14:52 ` Impossible Ken Hansen
1998-09-09 21:06 ` Impossible Michal Jaegermann
1998-09-09 10:41 ` Impossible Ken Hansen
1998-09-10 6:49 ` Impossible gkoch
1998-09-09 14:57 ` Impossible Adam C. Powell, IV
1998-09-09 16:48 ` Impossible B. James Phillippe
-- strict thread matches above, loose matches on Subject: below --
1998-09-09 19:43 Impossible John Porcello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox