Welcome to the Linux Foundation Forum!

/proc/diskstats discard entries

Hello,

I had a requirement to check for the discarded sectors from the linux disk system using /proc/diskstats.
Currently when i try:
cat /proc/diskstats

I get all the details - but the last 4 entires (discard details) always shows 0 for all the disk partitions.

Quote:
8 0 sda 75206471 19275565 823090590 47791223 31024389 28320408 501301040 98949063 0 43280636 146775656 0 0 0 0
Quote:
8 1 sda1 246 0 6184 68 0 0 0 0 0 60 60 0 0 0 0
Quote:
8 2 sda2 411 0 83664 459 33 36 150 212 0 368 652 0 0 0 0
.
.
.
etc...

Like shown in the above 3 different partitions - i see for all the entries i see last 4 fields shows "0".

My Question is - How do i test to increase those discarded fields? What tests i need to perform to make sure those are not "0" and i get some values?

Thanks
Avinash

Categories

Upcoming Training