Re: speed on amd64



Richard Engebretson wrote:
Fat Ass Fred wrote:

As others suspected your optimizations of your code may be the
culprit, but as well you mention not how your Linux installation was
configured.... Did you install anything optimized for the AMD 64? A
Linux installation without making any changes in some cases are
optimized not even for a Pentium but for a 80486 or 80386 CPU. Some
optimizations are optimized for Pentium Pro, etc. That's why one
particular version of Linux (can't remember the name, think its Gentu
or something like that) re-compiles ALL source code for the entire OS
(kernal and all) after downloading all updates, such that everything
on your system ins 100% optimized for your particular CPU! If your
CPU isn't optimized then every time you tell it to print, its going to
run slower, though if your sorting or generating random numbers, you
should be dealing with more number-crunching power and not so much
with output, though if you print all 1,000,000 numbers, you leave much
room for calling the OS to print, and the time could be because of the
OS..... Though I suspect your printing the time BEFORE you output all
1,000,000 floating point numbers....

I agree. Please see my earlier posts. Linux is not like win32 on a PC.
For beginning linux developers, SuSE is best. Even for an old linux
developer wanna-be, SuSE is great.

I still suspect you are looking at the wrong timer, or have other tasks
competing for the cpu. Linux is not DOS.


I am not writing a deamon for which it might be important how much time the cpu needs. I am writing Monte Carlo applications (numerical integration and that kind of stuff) and I am interested in how much time I (the human being) have to wait until results appear. This is just what t:=now; do something t:=now-t; does like using your wristwatch (in Turbo Pascal 4 already when I am not mistaken).

In this case we are not looking at a few % slower or faster but at a factor of 2 or more. If I have a look at system load (using e.g. top) before and after I run the test I have between 1% and 2% cpu load from all running processes (on Win2k also by the way). So it cannot be that the problem is in the multi-tasking.

I am very well aware of the fact that Linux is not DOS just as well as I know it's not CPM, MPE, AIX, AOS, MPOS, OS/IBM360 to name a few I worked with and that I am not behind a punched card machine anymore (grumpy old man eh?).

In my opinion either I am doing something fundamentally wrong or there is a fundamental problem with the AMD64 fpc implementation or the way Lazarus makes use of fpc 2.0.4.
.



Relevant Pages

  • Re: speed on amd64
    ... Linux installation without making any changes in some cases are ... optimizations are optimized for Pentium Pro, ... on your system ins 100% optimized for your particular CPU! ...
    (comp.lang.pascal.misc)
  • Re: Apple will have a touchscreen PC this autumn?
    ... Linux will always remain a better alternative. ... Apple controls OS X; they similarly don't have to wait around for some ... Leopard is porting many of the optimizations made for the iPhone variant ...
    (comp.sys.mac.system)
  • Re: Bloat
    ... Just compiling the default application between 5.5.5 Pro and 2005 Demo, ... the decrease in size on Linux, although I suppose that will naturally ... so we can hope to expect optimizations across the board as ... I haven't run a set of speed tests ...
    (comp.lang.basic.realbasic)
  • Re: Apples G5 Trounced By AMDs Opteron
    ... >> What does this mean for ix86 based Linux? ... >> optimizations? ... Mandrake also has a release for x86-64 in beta testing. ... I had problems with SuSE 8.2 for x86-64 and my ATA card. ...
    (alt.os.linux)
  • Re: [PATCH 6/6] sched: disabled rt-bandwidth by default
    ... An application which hogs the CPU for 9.9 ... whether POSIX allows to do that or Linux obeyed the ... Your precious customer use case is simply crap. ... break kernel userspace API regardless of closed source or open source. ...
    (Linux-Kernel)