Re: Remove or weaken hints about "effective resolution of sleep delays is 10 ms"? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Remove or weaken hints about "effective resolution of sleep delays is 10 ms"?
Date
Msg-id CA+TgmoaRPREkynkF5gnm0T_6qpkv02KB5XV8ESBOu=py8FprMw@mail.gmail.com
Whole thread Raw
In response to Re: Remove or weaken hints about "effective resolution of sleep delays is 10 ms"?  (Andres Freund <andres@anarazel.de>)
Responses Re: Remove or weaken hints about "effective resolution of sleep delays is 10 ms"?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Feb 16, 2016 at 3:50 AM, Andres Freund <andres@anarazel.de> wrote:
> On 2016-02-16 09:13:09 +0100, Andres Freund wrote:
>> What we do we think the resolution is on modern
>> >systems?  I would not have guessed that to be inaccurate.
>>
>> Depends in a lot of factors. The biggest being how busy you're system
>> is. On an mostly idle system (i.e. workout so CPUs being
>> overcommitted) you can get resolutions considerably below one
>> millisecond. HPET can get you very low latencies, making OS scheduling
>> latencies the dominant factor, but one that can be tuned.
>
> To back up my claim on this, read man 7 time
> (e.g. http://linux.die.net/man/7/time), especially "The software clock,
> HZ, and jiffies" and "High-resolution timers". To quote the most salient
> point:

Interesting, thanks.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: postgres_fdw vs. force_parallel_mode on ppc
Next
From: Alexander Korotkov
Date:
Subject: Re: WIP: Access method extendability