gettimeofday() in hping

Vlad GALU dudu at dudu.ro
Tue Jan 22 03:37:04 PST 2008


On 1/22/08, Stefan Lambrev <stefan.lambrev at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


-- 
Mahnahmahnah!


More information about the freebsd-hackers mailing list