当前位置:网站首页>Basic knowledge of hard disk (head, track, sector, cylinder)
Basic knowledge of hard disk (head, track, sector, cylinder)
2022-06-28 09:03:00 【Endless learning WangXiaoShuai】
summary
- Disc (platter)
- head (head)
- Magnetic track (track)
- A sector (sector)
- cylinder (cylinder)
Disc one-sided and head
There are usually multiple disks in the hard disk , Each disc contains two faces , Each disk has a corresponding read / Write head . Limited by the overall volume and production cost of hard disk , The number of discs is limited , Be in commonly 5 Within one piece . The disc number is from bottom to top 0 Start , If the bottom disc has 0 Surface and 1 Noodles , The last disc will be numbered 2 Surface and 3 Noodles .
Here's the picture :

chart 1
A sector and Magnetic track
The following figure shows a disk surface , Circles of gray concentric circles in the disk are tracks , Draw a straight line from the center of the circle , The track can be divided into several arc segments , An arc segment on each track is called a sector ( The green part of the picture ). A sector is the smallest component of a disk , Usually 512 byte .( Due to increasing disk size , Some manufacturers set the size of each sector to 4096 byte )

chart 2
head and cylinder
A hard disk usually consists of a set of overlapping disks , Each disk is divided into an equal number of tracks , And from the outer edge “0” Numbered starting , Tracks with the same number form a cylinder , It's called the cylinder of the disk . The number of cylinders on a disk is equal to the number of tracks on a disk . Because each disk has its own head , therefore , The number of disks is equal to the total number of heads . Here's the picture

chart 3
Disk capacity calculation
storage capacity = Number of heads × Magnetic track ( cylinder ) Count × Sectors per channel × Bytes per sector
chart 3 Medium disk is a 3 Disc 6 A magnetic head ,7 A cylinder ( Each disc 7 Tracks ) Of disks , chart 3 Each track in the has 12 Sectors , So the capacity of this disk is :
storage capacity 6 * 7 * 12 * 512 = 258048
The number of sectors per track is the same as the old hard disk , The density of the outer ring is small , The density of the inner ring is high , The amount of data that can be stored in each circle is the same . The data density of the new hard disk is the same , In this way, the longer the circumference of the track , The more sectors , The larger the amount of data stored .
Disk read response time
- Seek time : The time it takes for the head to move from the beginning to the track where the data is located , The shorter the search time ,I/O The faster the operation , At present, the average seek time of the disk is generally 3-15ms, Be in commonly 10ms about .
- Rotation delay : The time it takes for disk rotation to move the sector in which the requested data is located under the read / write head , The rotation delay depends on the disk speed . Ordinary hard disks are generally 7200rpm, Slow 5400rpm.
- Data transfer time : The time required to complete the transmission of the requested data .
To sum up : From the above indicators 、 In fact, the most important thing is 、 Or say 、 There should be only two things we care about most : Seek time ; Rotation delay .
The time required to read and write disk information can be divided into : Seek time 、 Delay time 、 Transmission time . To improve disk transmission efficiency , The software should focus on reducing seek time and delay time .
block / cluster
summary
Disk block / cluster ( Virtual ). Block is the smallest logical storage unit in the operating system . The smallest unit that the operating system deals with disk is disk block .
In layman's terms , stay Windows The next is like NTFS And other file systems are called clusters ; stay Linux The next is like Ext4 And other file systems are called blocks (block). Each cluster or block may include 2、4、8、16、32、64…2 Of n Power sector .
Why are there disk blocks ?
Easy to read : Because the number of sectors is relatively small , A large number is difficult to address , So the operating system combines adjacent sectors , Form a block , Then perform the overall operation on the block .
Separate the dependence on the bottom : The operating system ignores the design of the underlying physical storage structure . The concept of virtual disk block , In the system, the block is considered to be the smallest unit .
page
The operating system often communicates with memory and hard disk , Be similar to “ block ” The concept of , All need a virtual basic unit . therefore , And memory operation , It's the concept of a virtual page as the smallest unit . Working with hard drives , It's the smallest unit in a block .
A sector 、 block / cluster 、page The relationship between
- A sector : The smallest read / write unit of a hard disk
- block / cluster : Is the smallest unit of the operating system for hard disk reading and writing
- page: Is the smallest unit of operation between memory and the operating system .
A sector <= block / cluster <= page
边栏推荐
- Basic content learning of software testing (I)
- Installation of containerd1.5.5
- Build the first neural network with pytoch and optimize it
- The Falling Leaves
- Privacy computing fat----- offline prediction
- Explain observer mode
- 与普通探头相比,差分探头有哪些优点
- Data mining modeling practice
- STL -- binder
- Test cases for learning the basic content of software testing (II)
猜你喜欢

为什么SELECT * 会导致查询效率低?

How to solve the problem of port number occupation

Build the first neural network with pytoch and optimize it

用Pytorch搭建第一個神經網絡且進行優化

隐私计算FATE-----离线预测

Matlab tips (20) matrix analysis -- principal component regression

Construire le premier réseau neuronal avec pytorch et optimiser

JMeter -- interface test 2

Application of current limiting protector in preventing electrical fire in shopping malls

Webrtc advantages and module splitting
随机推荐
Copy & Deepcopy
I want to register my stock account online. How do I do it? Is online account opening safe?
Build the first neural network with pytoch and optimize it
Tree
From knowledge to wisdom: how far will the knowledge map go?
Is it safe to open an account for mobile phone stock speculation?
MySQL8.0 忘记 root 密码
Android studio interview preparation
Discussion on the improvement and application of the prepayment system in the management of electricity charge and price
Implementation of single sign on
TCP
学习阿里如何进行数据指标体系的治理
centos mysql5.5配置文件在哪
Protection range and optimization of motor protector for hoist equipment
如何实现基于 RADIUS 协议的双因子认证 MFA?
基于宽表的数据建模
【转载】STM32 GPIO类型
DEJA_VU3D - Cesium功能集 之 052-模拟卫星轨道(高空)效果
Which securities company is better and safer to choose when opening an account for the inter-bank certificate of deposit fund with mobile phone
【云原生 | Kubernetes篇】深入了解Pod(六)