40% slowdown with dynamic /bin/sh
Colin Percival
colin.percival at wadham.ox.ac.uk
Tue Nov 25 21:53:36 PST 2003
At 00:23 26/11/2003 -0500, Michael Edenfield wrote:
>Static /bin/sh:
> real 385m29.977s
> user 111m58.508s
> sys 93m14.450s
>
>Dynamic /bin/sh:
> real 455m44.852s
> user 113m17.807s
> sys 103m16.509s
Given that user+sys << real in both cases, it looks like you're running
out of memory; it's not surprising that dynamic linking has an increased
cost in such circumstances, since reading the diverse files into memory
will take longer than reading a single static binary.
I doubt many systems will experience this sort of performance delta.
Colin Percival
More information about the freebsd-current
mailing list