From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 22 11:37:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A213216A46B for ; Tue, 22 Jan 2008 11:37:04 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 1C98713C447 for ; Tue, 22 Jan 2008 11:37:03 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by fg-out-1718.google.com with SMTP id 16so2348235fgg.35 for ; Tue, 22 Jan 2008 03:37:03 -0800 (PST) Received: by 10.82.187.2 with SMTP id k2mr14477399buf.16.1201000146115; Tue, 22 Jan 2008 03:09:06 -0800 (PST) Received: by 10.82.187.11 with HTTP; Tue, 22 Jan 2008 03:09:06 -0800 (PST) Message-ID: Date: Tue, 22 Jan 2008 13:09:06 +0200 From: "Vlad GALU" To: freebsd-hackers@freebsd.org In-Reply-To: <4795CC13.7080601@moneybookers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4795CC13.7080601@moneybookers.com> Subject: Re: gettimeofday() in hping X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 11:37:04 -0000 On 1/22/08, Stefan Lambrev wrote: > Greetings, > > I noticed that hping3 (from ports) is quite slower when running on > FreeBSD compared to Linux. > Simple ktrace shows lot of gettimeofday() calls, so I'm looking for > replacement of this function. > I tried clock_gettime() (using CLOCK_REALTIME for clock_id), but this > yield worse performance. > Of course changing timecounter to TSC make hping almost twice faster, > but I'm wandering if I can optimize things more? > Also, is it possible to bypass the ACPI timer entirely without disabling the whole ACPI, in order to use TSC as the default timecounter? > -- > > Best Wishes, > Stefan Lambrev > ICQ# 24134177 > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Mahnahmahnah!