[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Extremely poor performance crunching random numbers under PIV-FC5

BankHacker wrote:

Looking for information about "linux-gate.so.1" I have found this webpage:


I think this could be the reason for the slowdown in my case because
symptoms match. My program is invoking 10 million system calls for the
first random test and it happens only in the dynamic version. My CPU
is an Intel Pentium IV.

Ahaha, so if I understand you the strace output is huge for the dynamic one and smaller for the static one?

Can you post an example of one of the "10 million" syscalls that is present in the strace output for the dynamic case (if I understood you correctly)?

My glibc version is 2.4-8:

# rpm -qa | grep glibc

Do you think this could be the cause. How to fix it?


There are some magic things down


that you might want to meddle with to see if they affect the situation.  Eg

echo "0" >/proc/sys/kernel/randomize_va_space
echo "0" >/proc/sys/kernel/exec-shield

Another idea, perhaps to to give a static libm and keep the dynamic libc stuff eg

gcc blah.c /usr/lib/libm.a

not sure if that will work but worth a try. Then the ldd for the resulting binary should no longer reference libm.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]