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

All load information is misunderstood and incorrectly set. #23

Open
xianglin1998 opened this issue Oct 26, 2023 · 3 comments
Open

All load information is misunderstood and incorrectly set. #23

xianglin1998 opened this issue Oct 26, 2023 · 3 comments

Comments

@xianglin1998
Copy link

xianglin1998 commented Oct 26, 2023

Most of the system's load information statistics only have a time range of 1-5-15, and our repo mistakenly gave a very strange time range of 10 minutes.

The value given to 10 minutes on the Windows platform points to a variable that has not undergone any updates at all.
Now load is fixed of 0 on windows, for 10 minute value.
https://github.com/EnterpriseDB/system_stats/blob/84f50fd8b6282369fd853a9cf2feedc01dbd2847/windows/load_avg.c#L125C69-L125C69

PSutil's code repository has the same implementation, but their scope is only 1-5-15
https://github.com/giampaolo/psutil/blob/e9dabbbcae38a52a725722c6e3df0dc94c6051ab/psutil/arch/windows/wmi.c#L118

@xianglin1998
Copy link
Author

The Linux and Darwin platforms should have been set to 15 minutes, but now they both have a 10 minute load time.

@xianglin1998
Copy link
Author

image

@xianglin1998
Copy link
Author

According to the answer to from stackoverflow related question, the load information read by/proc/loadavg under Linux is 1-5-15, which is the correct interpretation.

https://stackoverflow.com/questions/11987495/what-do-the-numbers-in-proc-loadavg-mean-on-linux

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