Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sysinfo): do not use sysinfo on x86_64 #864

Closed
wants to merge 1 commit into from

Conversation

n0toose
Copy link
Member

@n0toose n0toose commented Jan 16, 2025

The frequency is not meant to be a frequency that the Hermit kernel can access instead of the real-time frequency value. Hermit uses this values as some sort of a nominal frequency for counting ticks (see constant_tsc) internally. Having to rely on sysinfo is a "worst-case" scenario for architectures that do not have CPUID-like functionalities (or, if they do, we do not handle them properly yet.)

Fixes #862

The frequency is not meant to be a frequency that the Hermit kernel
can access instead of the real-time frequency value. Hermit uses
this values as some sort of a nominal frequency for counting ticks
(see constant_tsc) internally. Having to rely on sysinfo is a
"worst-case" scenario for architectures that do not have CPUID-like
functionalities (or, if they do, we do not handle them properly
yet.)

Fixes hermit-os#862
@n0toose n0toose marked this pull request as draft January 16, 2025 18:10
@n0toose
Copy link
Member Author

n0toose commented Jan 16, 2025

I needed the closure from getting rid of that godforsaken problem for now (although it's still not a long-term solution) - will finish this once time allows.

@jounathaen
Copy link
Member

Actually, I'm currently working on a fix for this, but this unfortunately requires a bigger refactor. I'll create a PR for this soon.

@jounathaen jounathaen closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uhyve does not measure the time correctly
2 participants