[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting
From: |
Zhaoming Luo |
Subject: |
Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy |
Date: |
Thu, 12 Jun 2025 21:54:22 +0800 |
On Wed, Jun 11, 2025 at 09:07:10PM +0200, Michael Banck wrote:
> Hi,
Hi
>
> On Mon, Mar 24, 2025 at 12:25:51PM +0800, Zhaoming Luo wrote:
> > Integrate HPET so host_get_time, host_get_time64, and host_get_uptime64
> > are more precise. The highest precision can be 10ns when this patch is
> > applied.
>
> Is there something else besides this patch that needs to be
> done/patched/configured to get higher resolution timers?
>
> I am running the current gnumach Debian package which (to the best of my
> knowledge) includes this patch, but clock_getres() still reports
> 10000000 ns timer resolution and applications like PostgreSQL that rely
> on timing still have 10ms resolution.
>
The current higher resolution depends on HPET, and the HPET will be
enabled when APIC is enabled[0]. Therefore, please try to compile a
gnumach kernel with --enable-apic in the ./configure stage.
[0]:
https://cgit.git.savannah.gnu.org/cgit/hurd/gnumach.git/tree/i386/i386at/model_dep.c#n232
Best,
Zhaoming
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Michael Banck, 2025/06/11
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy,
Zhaoming Luo <=
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Michael Banck, 2025/06/12
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Damien Zammit, 2025/06/12
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Michael Banck, 2025/06/13
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Zhaoming Luo, 2025/06/13
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Michael Banck, 2025/06/13
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Damien Zammit, 2025/06/13
- Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy, Samuel Thibault, 2025/06/14
- Hangs in Postgres test suite (was: Re: [PATCH mach v4 1/1] Integrate HPET so the functions used for getting time can have a higher accuracy), Michael Banck, 2025/06/14