Operating System-Device Management

Disk structure

  • Platter: A disk has multiple platters;

  • Track: A circular band-shaped area on the disk surface. A disk surface can have multiple tracks;

  • Track Sector: An arc on a track. A track can have multiple sectors. It is the smallest physical storage unit and currently has two sizes: 512 bytes and 4 K;

  • Head: It is very close to the disk surface and can convert the magnetic field on the disk surface into an electric signal (reading), or convert the electric signal into a magnetic field on the disk surface (writing);

  • Actuator arm: used to move the magnetic head between tracks;

  • Spindle: Rotate the entire disk surface.


Disk scheduling algorithm

The influencing factors of the time to read and write a disk block are:

  • Rotation time (the spindle rotates the disk surface to make the head move to the appropriate sector)

  • Seek time (braking arm moves to make the head move to the appropriate track)

  • Actual data transfer time

Among them, the seek time is the longest, so the main goal of disk scheduling is to make the average seek time of the disk

Guess you like

Origin blog.csdn.net/luolan_hust/article/details/113667633