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

CPU values get reset when CPU goes offline/online #1507

Open
myllynen opened this issue Dec 29, 2021 · 0 comments
Open

CPU values get reset when CPU goes offline/online #1507

myllynen opened this issue Dec 29, 2021 · 0 comments

Comments

@myllynen
Copy link
Contributor

CPU values get reset when CPU first goes offline and then comes back online:

# pmrep -i cpu3 -r -s 1 kernel.percpu.cpu.idle
  k.p.c.idle
        cpu3
    millisec
     1180890
# echo 0 > /sys/devices/system/cpu/cpu3/online
# echo 1 > /sys/devices/system/cpu/cpu3/online
# pmrep -i cpu3 -r -s 1 kernel.percpu.cpu.idle
  k.p.c.idle
        cpu3
    millisec
        1400

Recent iostat(1) versions avoid these resets but perhaps both approaches have their pros and cons.

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

No branches or pull requests

1 participant