toolkits / nux

*nux metric collector
238 stars 82 forks source link

Kernel 4.18+ appends four more fields putting the total at 18 #17

Open neohe opened 5 years ago

neohe commented 5 years ago

https://github.com/toolkits/nux/blob/d5bf087ae58de8d83fbb04a0a8c8e9d739cb9620/iostat.go#L72

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

Livezxy commented 5 years ago

你好,这个pr目前合并了吗,我试着用github.com/shirou/gopsutil重写diskio模块,转过来想找找作者... 发现了这个pr

mdh67899 commented 5 years ago

@live-xy 没有,你要临时用的话手动把我代码里的iostat.go文件拿过去替换吧 https://github.com/mdh67899/nux/blob/diskstats-patch/iostat.go

Livezxy commented 5 years ago

还是不行,在ubuntu16上没法获得disk.io http://disk.io/.read 我用goutils重写一个吧

在 2019年6月14日,下午5:58,mdh67899 notifications@github.com 写道:

@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 https://github.com/toolkits/nux/issues/17?email_source=notifications&email_token=ALIXBONZNIT2WUGJ2XNDRHLP2NTTXA5CNFSM4GDNGC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWKVLY#issuecomment-502049455, or mute the thread https://github.com/notifications/unsubscribe-auth/ALIXBOLXBKEVPK25O6O4INDP2NTTXANCNFSM4GDNGC4Q.

taomaree commented 5 years ago

24 这个PR实现相同的功能,已经合并到 master 了。