gettimeofday() in hping
dudu at dudu.ro
Tue Jan 22 03:37:04 PST 2008
On 1/22/08, Stefan Lambrev <stefan.lambrev at moneybookers.com> wrote:
> 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
> Best Wishes,
> Stefan Lambrev
> ICQ# 24134177
> freebsd-hackers at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers