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

Make GPU residue values consistent across meter instances #1618

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Explorer09
Copy link
Contributor

GPUMeter_updateValues() used a locally cached "residue time" variable for computing the percentage of the "GPU residue" usage. The "residue" percentages of subsequent GPUMeter instances could be 0 due to the cached "residue time" off-sync with the time data from the LinuxMachine instance.

Rewrite the logic of the function so that all computed GPU percentage values are cached, and the cache updated only when there's increment on host->monotonicMs.

@BenBE BenBE added enhancement Extension or improvement to existing feature Linux 🐧 Linux related issues labels Feb 22, 2025
GPUMeter_updateValues() used a locally cached "residue time" variable
for computing the percentage of the "GPU residue" usage. The "residue"
percentages of subsequent GPUMeter instances could be 0 due to the
cached "residue time" off-sync with the time data from the LinuxMachine
instance.

Rewrite the logic of the function so that all computed GPU percentage
values are cached, and the cache updated only when there's increment on
host->monotonicMs.

Signed-off-by: Kang-Che Sung <[email protected]>
@Explorer09 Explorer09 force-pushed the gpu-meter-residue-percentage branch from 65bbcf2 to 88ae698 Compare February 23, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Extension or improvement to existing feature Linux 🐧 Linux related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants