Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Greetings,

Dag-Erling Sm=C3=B8rgrav wrote:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
>  =20
>> Stefan Lambrev <stefan.lambrev@moneybookers.com> writes:
>>    =20
>>> I tried clock_gettime() (using CLOCK_REALTIME for clock_id), but this=

>>> yield worse performance.
>>>      =20
>> Try CLOCK_MONOTONIC instead.
>>    =20
>
> 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
>  =20
Thanks for your reply.
I tested all different combination. The performance change is almost=20
invisible (100-200KB/s),
and can't be compared with the performance boost that TSC gain over=20
ACPI-fast timecounter.
Unfortunately TSC doesn't play nice with power saving modes.

--=20

Best Wishes,
Stefan Lambrev
ICQ# 24134177





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4795FE54.9090606>