Re: Very slow sed...

看板FB_hackers作者時間18年前 (2007/06/21 00:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/9 (看更多)
--n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 20, 2007 at 10:24:01AM -0400, David Cross wrote: > Machine 2: > time sed -f=20 > /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/strip.sed= =20 > /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/doc-common= =20 > >/dev/null >=20 > real 0m4.506s > user 0m4.167s > sys 0m0.000s >=20 > Yes... you read that right... almost 400 _TIMES_ slower. WTF.. >=20 > Where should I be looking? Try ktracing to see what it is doing (although sys time =3D 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 --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGeVEsWry0BWjoQKURAm/OAJ9vKSiovbuut+3iEWttz7maJSSAlQCg9kv2 a+/nvwgDUN61CQtZ9MPu9Sk= =miy5 -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--
文章代碼(AID): #16UL8h00 (FB_hackers)
文章代碼(AID): #16UL8h00 (FB_hackers)