Very slow sed...
Kris Kennaway
kris at obsecurity.org
Wed Jun 20 16:09:17 UTC 2007
On Wed, Jun 20, 2007 at 10:24:01AM -0400, David Cross wrote:
> Machine 2:
> time sed -f
> /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/strip.sed
> /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/doc-common
> >/dev/null
>
> real 0m4.506s
> user 0m4.167s
> sys 0m0.000s
>
> Yes... you read that right... almost 400 _TIMES_ slower. WTF..
>
> Where should I be looking?
Try ktracing to see what it is doing (although sys time = 0 says it's
all in userland). So maybe gprof or pmc. Also double check the
kernel configs are identical and malloc debugging is disabled.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070620/26b0cc47/attachment.pgp
More information about the freebsd-hackers
mailing list