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


Reply via email to