当前位置:网站首页>硬盘基本知识(磁头、磁道、扇区、柱面)
硬盘基本知识(磁头、磁道、扇区、柱面)
2022-06-28 09:00:00 【学无止境王小帅】
概述
- 盘片(platter)
- 磁头(head)
- 磁道(track)
- 扇区(sector)
- 柱面(cylinder)
盘片 片面 和 磁头
硬盘中一般会有多个盘片组成,每个盘片包含两个面,每个盘面都对应地有一个读/写磁头。受到硬盘整体体积和生产成本的限制,盘片数量都受到限制,一般都在5片以内。盘片的编号自下向上从0开始,如最下边的盘片有0面和1面,再上一个盘片就编号为2面和3面。
如下图:

图1
扇区 和 磁道
下图显示的是一个盘面,盘面中一圈圈灰色同心圆为一条条磁道,从圆心向外画直线,可以将磁道划分为若干个弧段,每个磁道上一个弧段被称之为一个扇区(图践绿色部分)。扇区是磁盘的最小组成单元,通常是512字节。(由于不断提高磁盘的大小,部分厂商设定每个扇区的大小是4096字节)

图2
磁头 和 柱面
硬盘通常由重叠的一组盘片构成,每个盘面都被划分为数目相等的磁道,并从外缘的“0”开始编号,具有相同编号的磁道形成一个圆柱,称之为磁盘的柱面。磁盘的柱面数与一个盘面上的磁道数是相等的。由于每个盘面都有自己的磁头,因此,盘面数等于总的磁头数。 如下图

图3
磁盘容量计算
存储容量 = 磁头数 × 磁道(柱面)数 × 每道扇区数 × 每扇区字节数
图3中磁盘是一个 3个圆盘6个磁头,7个柱面(每个盘片7个磁道) 的磁盘,图3中每条磁道有12个扇区,所以此磁盘的容量为:
存储容量 6 * 7 * 12 * 512 = 258048
每个磁道的扇区数一样是说的老的硬盘,外圈的密度小,内圈的密度大,每圈可存储的数据量是一样的。新的硬盘数据的密度都一致,这样磁道的周长越长,扇区就越多,存储的数据量就越大。
磁盘读取响应时间
- 寻道时间:磁头从开始移动到数据所在磁道所需要的时间,寻道时间越短,I/O操作越快,目前磁盘的平均寻道时间一般在3-15ms,一般都在10ms左右。
- 旋转延迟:盘片旋转将请求数据所在扇区移至读写磁头下方所需要的时间,旋转延迟取决于磁盘转速。普通硬盘一般都是7200rpm,慢的5400rpm。
- 数据传输时间:完成传输所请求的数据所需要的时间。
小结一下:从上面的指标来看、其实最重要的、或者说、我们最关心的应该只有两个:寻道时间;旋转延迟。
读写一次磁盘信息所需的时间可分解为:寻道时间、延迟时间、传输时间。为提高磁盘传输效率,软件应着重考虑减少寻道时间和延迟时间。
块/簇
概述
磁盘块/簇(虚拟出来的)。 块是操作系统中最小的逻辑存储单位。操作系统与磁盘打交道的最小单位是磁盘块。
通俗的来讲,在Windows下如NTFS等文件系统中叫做簇;在Linux下如Ext4等文件系统中叫做块(block)。每个簇或者块可以包括2、4、8、16、32、64…2的n次方个扇区。
为什么存在磁盘块?
读取方便:由于扇区的数量比较小,数目众多在寻址时比较困难,所以操作系统就将相邻的扇区组合在一起,形成一个块,再对块进行整体的操作。
分离对底层的依赖:操作系统忽略对底层物理存储结构的设计。通过虚拟出来磁盘块的概念,在系统中认为块是最小的单位。
page
操作系统经常与内存和硬盘这两种存储设备进行通信,类似于“块”的概念,都需要一种虚拟的基本单位。所以,与内存操作,是虚拟一个页的概念来作为最小单位。与硬盘打交道,就是以块为最小单位。
扇区、块/簇、page的关系
- 扇区: 硬盘的最小读写单元
- 块/簇: 是操作系统针对硬盘读写的最小单元
- page: 是内存与操作系统之间操作的最小单元。
扇区 <= 块/簇 <= page
边栏推荐
- Container adapter - stack: stack queue: queue priority_ Queue: priority queue
- 从知识到智慧:知识图谱还要走多远?
- Import and export of a single collection in postman
- 小程序 :遍历list里面的某个数组的值,等同于 for=“list” list.comment里面的某一项
- [introduction to SQL for 10 days] day4 Combined Query & specified selection
- Expérience d'optimisation SQL: de 30248 secondes à 0001 secondes
- What are the advantages of a differential probe over a conventional probe
- 罗氏线圈可以测量的大电流和频率范围
- What is the bandwidth of the Tiktok server that can be used by hundreds of millions of people at the same time?
- 网上炒股开户安不安全?
猜你喜欢

How to suppress SiC MOSFET crosstalk?
![[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service](/img/19/296f124becb87461accf8b73b0a8bc.png)
[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service

【.NET6】gRPC服务端和客户端开发案例,以及minimal API服务、gRPC服务和传统webapi服务的访问效率大对决

Common test method used by testers --- orthogonal method

JMeter -- interface test 1

RMAN backup message ora-19809 ora-19804

Construire le premier réseau neuronal avec pytorch et optimiser

Discussion on the improvement and application of the prepayment system in the management of electricity charge and price

使用transform:scale之后导致页面鼠标悬浮事件消失

罗氏线圈可以测量的大电流和频率范围
随机推荐
Zhejiang energy online monitoring and management system
Privacy computing fat----- offline prediction
Deployment of MySQL database in Linux Environment
Loggerfactory uses log4j Parameter introduction of properties
I want to register my stock account online. How do I do it? Is online account opening safe?
It only takes two steps to find the right PMP organization, one check and two questions
DEJA_VU3D - Cesium功能集 之 052-模拟卫星轨道(高空)效果
[introduction to SQL for 10 days] day4 Combined Query & specified selection
Application of energy management system in iron and steel enterprises
Applet: traverse the value of an array in the list, which is equivalent to for= "list" list An item in comment
Quickly understand JVM structure and working principle
RMAN backup message ora-19809 ora-19804
Common tools for interface testing --postman
Data mining modeling practice
Fire fighting work and measures in Higher Vocational Colleges
Use of Jasper soft studio report tool and solution of thorny problems
【转载】STM32 GPIO类型
containerd1.5.5的安装
Maintenance and protection of common faults of asynchronous motor
【无标题】