From owner-freebsd-questions Sat Feb 17 17:18:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.fpsn.net (mail.fpsn.net [63.224.69.57]) by hub.freebsd.org (Postfix) with ESMTP id 49B6C37B503; Sat, 17 Feb 2001 17:18:31 -0800 (PST) Received: from fpsn.net (control.fpsn.net [63.224.69.60]) by mail.fpsn.net (8.9.3/8.9.3) with ESMTP id SAA67112; Sat, 17 Feb 2001 18:18:09 -0700 (MST) (envelope-from cfaber@fpsn.net) Message-ID: <3A8F22D4.E05E1BAE@fpsn.net> Date: Sat, 17 Feb 2001 18:18:12 -0700 From: Colin Faber Reply-To: cfaber@fpsn.net Organization: fpsn.net, Inc. X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@alum.mit.edu Cc: Cliff Sarginson , Peter Pentchev , Artem Koutchine , questions@FreeBSD.ORG, security@FreeBSD.ORG Subject: Re: Efficiency [Was: Re: rpc.statd attack] References: <20010217165124.C62368@rfx-216-196-73-168.users.reflex> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message