Date: Tue, 22 Jan 2008 13:09:06 +0200 From: "Vlad GALU" <dudu@dudu.ro> To: freebsd-hackers@freebsd.org Subject: Re: gettimeofday() in hping Message-ID: <ad79ad6b0801220309r330a7aa1q736a98858f9d9918@mail.gmail.com> In-Reply-To: <4795CC13.7080601@moneybookers.com> References: <4795CC13.7080601@moneybookers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/22/08, Stefan Lambrev <stefan.lambrev@moneybookers.com> 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0801220309r330a7aa1q736a98858f9d9918>