Extremely poor performance crunching random numbers under PIV-FC5

Andy Green andy at warmcat.com
Thu May 18 13:36:26 UTC 2006


BankHacker wrote:

> It is surprising that when the program is compiled with the static
> flag enabled, it runs very fast, doing 10 million calculations in only
> 0.4 seconds. Nevertheless, when it is compiled without the static flag
> (that is dynamic binary), the performance becomes very poor, consuming
> 40 seconds in doing it.

Nice problem!  What libraries are being linked in to your executable 
when linked dynamically?

ldd dynamic-test-cpu-2

Do you see any serious difference in the output files if you run

strace -o /tmp/dump-dynamic dynamic-test-cpu-2

vs

strace -o /tmp/dump-static static-test-cpu-2

Anything in /var/log/messages?

Any possibility that the dynamic one goes to swap for some reason?

-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060518/250a0850/attachment-0001.bin>


More information about the fedora-list mailing list