mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-16 03:16:31 +00:00
![]() See the following kernel code snippet from kernel/sched/cputime.c's account_guest_time(): /* Add guest time to cpustat. */ if (task_nice(p) > 0) { cpustat[CPUTIME_NICE] += cputime; cpustat[CPUTIME_GUEST_NICE] += cputime; } else { cpustat[CPUTIME_USER] += cputime; cpustat[CPUTIME_GUEST] += cputime; } So the old sum was wrong as some time frames were counted double in the `total` value. The data will likely still deviate from PVE, but we should check by how much, as this version does seem more accurate. We can still fix it to just use the same math as pve if it seems off. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.cargo | ||
proxmox | ||
proxmox-api-macro | ||
proxmox-sortable-macro | ||
.gitignore | ||
build.sh | ||
Cargo.toml | ||
Makefile | ||
README.rst | ||
rustfmt.toml |
Local cargo config ================== This repository ships with a ``.cargo/config`` that replaces the crates.io registry with packaged crates located in ``/usr/share/cargo/registry``. A similar config is also applied building with dh_cargo. Cargo.lock needs to be deleted when switching between packaged crates and crates.io, since the checksums are not compatible. To reference new dependencies (or updated versions) that are not yet packaged, the dependency needs to point directly to a path or git source. Steps for Releases ================== - Cargo.toml updates: - Bump all modified crate versions. - Update all the other crates' Cargo.toml to depend on the new versions if required, then bump their version as well if not already done. - Update debian/changelog files in all the crates updated above. - Build packages with `make deb`.