You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in _pslinux.py we have 3 formats for diskstats reporting information:
15 fields if we use a Linux 2.4 kernel;
14 fields if we use a Linux 2.6+ kernel and it reports a partition;
7 fields if we use a Linux 2.6+ kernel and it reports a disk.
In fact, if we use a 2.6+ kernel, we have always a 14 fields structure (I've verified on CentOS 6 and CentOS 7), so the method reports always the same data. Is a good thing to correct this documentation and remove the unused code for cleanup (it also a good thing to check if the data are correct in case of disk or partition check)
The text was updated successfully, but these errors were encountered:
Mmmm I seem to remember I came up with that code after reading some doc ("man proc" or something) which described those 3 possible formats so I'm not sure it's a good idea to remove it.
Please note: in my issue I've swapped partition and disk, so, as reported in _pslinux.py and in the documentation, in 2.6+ we are 14 fields. But this is a sample output on CentOS 6:
As reported in _pslinux.py we have 3 formats for diskstats reporting information:
In fact, if we use a 2.6+ kernel, we have always a 14 fields structure (I've verified on CentOS 6 and CentOS 7), so the method reports always the same data. Is a good thing to correct this documentation and remove the unused code for cleanup (it also a good thing to check if the data are correct in case of disk or partition check)
The text was updated successfully, but these errors were encountered: