-
Notifications
You must be signed in to change notification settings - Fork 83
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
Kernel 4.18+ appends four more fields putting the total at 18 #17
Comments
你好,这个pr目前合并了吗,我试着用github.com/shirou/gopsutil重写diskio模块,转过来想找找作者... 发现了这个pr |
@live-xy 没有,你要临时用的话手动把我代码里的iostat.go文件拿过去替换吧 |
还是不行,在ubuntu16上没法获得disk.io <http://disk.io/>.read 我用goutils重写一个吧
… 在 2019年6月14日,下午5:58,mdh67899 ***@***.***> 写道:
@live-xy <https://github.com/live-xy> 没有,你要临时用的话手动把我代码里的iostat.go文件拿过去替换吧
https://github.com/mdh67899/nux/blob/diskstats-patch/iostat.go <https://github.com/mdh67899/nux/blob/diskstats-patch/iostat.go>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#17?email_source=notifications&email_token=ALIXBONZNIT2WUGJ2XNDRHLP2NTTXA5CNFSM4GDNGC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWKVLY#issuecomment-502049455>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ALIXBOLXBKEVPK25O6O4INDP2NTTXANCNFSM4GDNGC4Q>.
|
#24 这个PR实现相同的功能,已经合并到 master 了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nux/iostat.go
Line 72 in d5bf087
Kernel 4.18+ appends four more fields for discard tracking putting the total at 18:
15 - discards completed successfully
16 - discards merged
17 - sectors discarded
18 - time spent discarding
https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
The text was updated successfully, but these errors were encountered: