Date: Sat, 17 Feb 2001 18:18:12 -0700 From: Colin Faber <cfaber@fpsn.net> To: cjclark@alum.mit.edu Cc: Cliff Sarginson <cliff@raggedclown.net>, Peter Pentchev <roam@orbitel.bg>, Artem Koutchine <matrix@ipform.ru>, questions@FreeBSD.ORG, security@FreeBSD.ORG Subject: Re: Efficiency [Was: Re: rpc.statd attack] Message-ID: <3A8F22D4.E05E1BAE@fpsn.net> References: <E14TmQC-0006Ip-00@post.mail.nl.demon.net> <20010217165124.C62368@rfx-216-196-73-168.users.reflex>
next in thread | previous in thread | raw e-mail | index | archive | help
What is the point of this thread, I fail to see how its critical to freebsd security, If someone wants to waste cpu cycles its not hard. "Crist J. Clark" wrote: > On Fri, Feb 16, 2001 at 03:03:44PM +0000, Cliff Sarginson wrote: > > [snip] > > > As you can see makes all the difference :) > > But this is under Solaris ... > > > > $ time rpcinfo -p | egrep -e 'udp.*status$' | awk '{print $4}' > > 32790 > > > > real 0m0.12s > > user 0m0.04s > > sys 0m0.07s > > > > $ time rpcinfo -p | awk '($3 == "udp") && ($5 == "status") {print $4 }' > > 32790 > > > > real 0m0.11s > > user 0m0.05s > > sys 0m0.04s > > Shocking. rpcinfo takes the same amount of time to run in both > examples. You are not incuding the awk's and grep's in your > measurements. > > ITYM, > > $ rpcinfo -p | time egrep -e 'udp.*status$' | time awk '{print $4}' > 996 > 0.05 real 0.00 user 0.00 sys > 0.04 real 0.00 user 0.00 sys > > $ rpcinfo -p | time awk '($3 == "udp") && ($5 == "status") {print $4 }' > 996 > 0.03 real 0.00 user 0.00 sys > > -- > Crist J. Clark cjclark@alum.mit.edu > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A8F22D4.E05E1BAE>