Date: Tue, 22 Jan 2008 16:31:48 +0200 From: Stefan Lambrev <stefan.lambrev@moneybookers.com> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no> Cc: freebsd-hackers@FreeBSD.org Subject: Re: gettimeofday() in hping Message-ID: <4795FE54.9090606@moneybookers.com> In-Reply-To: <864pd63v2h.fsf@ds4.des.no> References: <4795CC13.7080601@moneybookers.com> <868x2i3v8d.fsf@ds4.des.no> <864pd63v2h.fsf@ds4.des.no>
index | next in thread | previous in thread | raw e-mail
Greetings, Dag-Erling Smørgrav wrote: > Dag-Erling Smørgrav <des@des.no> writes: > >> Stefan Lambrev <stefan.lambrev@moneybookers.com> writes: >> >>> I tried clock_gettime() (using CLOCK_REALTIME for clock_id), but this >>> yield worse performance. >>> >> Try CLOCK_MONOTONIC instead. >> > > I forgot - there are also the FreeBSD-specific CLOCK_REALTIME_FAST and > CLOCK_MONOTONIC_FAST if you can live with a little bit of jitter. > > DES > Thanks for your reply. I tested all different combination. The performance change is almost invisible (100-200KB/s), and can't be compared with the performance boost that TSC gain over ACPI-fast timecounter. Unfortunately TSC doesn't play nice with power saving modes. -- Best Wishes, Stefan Lambrev ICQ# 24134177help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4795FE54.9090606>
