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

What is the actual meaning of busy time? #1259

Closed
dyllanwli opened this issue Mar 29, 2018 · 1 comment
Closed

What is the actual meaning of busy time? #1259

dyllanwli opened this issue Mar 29, 2018 · 1 comment

Comments

@dyllanwli
Copy link

I am running a high disk IO test on linux, using psutil to monitoring the linux disk usage. And I noticed that the busy time, which defined in document as " time spent doing actual I/Os (in milliseconds)", can be over 1000 milliseconds for each seconds.

Could someone please tell me what is the actual meaning of busy time?

here is my code:

while true:
    cpu = psutil.cpu_percent(interval=1)
    disk = psutil.disk_io_counters() 
    print(cpu)
    print(disk)

Are there anything I omitted so that cause the busy time over 1000 ms?

@dyllanwli
Copy link
Author

dyllanwli commented Mar 29, 2018

Since there are several disks on my machine, if not use perdisk=True, the psutil will record all disk io information.

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