Converting sectors into MB - Useful in understanding the sectors in iostat in Linux


Supposed you have a sector with 512 Bytes equivalent, then the formula will be just below

      1  sect.      1024 Bytes       1024 KB 
      ---------  x  ----------   x   ---------     =   2048 sect./ MB 
      512 Bytes        1 KB            1 MB 



i.e.

if a sector has a 512 Bytes, commonly in a hard disk, so which means that a 1024 Bytes == 2 sector of a KiloByte. So if 2 sector is equivalent to a KiloByte (1024 Bytes), if you do the math, 2 ** 1024 / 512.0 = 2048.

This is useful only understanding the iostat process in Linux.

Comments

Popular posts from this blog

What is Disk Contention?

Installing MySQL from source: Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)