4KB Alignment: How does it affect the efficiency of a hard disk

 

The cache size and the rotation rate have long been considered as the bottleneck of the transmission rate of the traditional hard disk. Hence, whenever computer users want to improve the I/O performance of their desktops, these are indicators that firstly emerge in their minds most of the time. However, the important role of the mechanism of hard disk storage remains obscure for general users. The problem of 4KB alignment indeed, is accounted for a significant proportion in influencing the transmission rate of hard disk.

 

In the 1K/4K Sector Size Summit 2005, IT giants like Microsoft, Intel, Seagate and Western have realized the necessity of larger sector size in order to meet the demand of mass storage in the future. Since the era of DOS, 512 bytes have always been both the standard sector size and the cluster size of the file system. It is generally admitted that lower sector definition is more capable for small-sized discrete data management. Hence, 512 bytes can fully fulfill the needs during the past decades.

 

Volume

Amount of Sectors

Sector Definition

10MB

20,000

0.005%

10GB

20,000,000

0.000005%

1.1 Relationship between volume of storage and sector definition

 

If we are familiar with the common file system, we may get to know that the FAT (file allocation table) is a chain structure. Before writing a file onto the hard disk, the OS will firstly try to search the entire FAT until it find an unused sector (maybe either empty or marked with 00H in the MFT (Master File Table, new feature in NTFS) with the offset value of 16H) and insert the first 512 bytes data with the address of the next sector at the end. The entire process, which are searching and writing,keeps repeating until the last set of data have been written. No matter the size, it will occupy a whole cluster with file ending label 0x0FFFFFFF7. The chain structure indicates that files are stored discontinuously on a hard disk.


 

Here comes to the problem. The ISO image of a double layers DVD nowadays can simply reach to a size of 4.7GB which equals to 9.4*10^6 times of 512 bytes. That means the single file need to be divided into 9.4*10^6 blocks and being stored separately everywhere in a hard disk. Every single time of searching and writing cost address time, which add up can be an enormous amount. Thus, it is apparent that the larger the sector size, the smaller is the number of file blocks and the number of operation.

 

On the other hand, 4KB sector, known as the Advanced Format, is preferred for its higher volume conversion rate. In each 512 bytes traditional sector, the extra 50 bytes are reserved for ECC (Error Correcting Code) and 15 bytes more are used for Gap, Sync and Address Mark sections. In all, only 512/ (512+65) = 88% space is available after formation.

 

 

 2.1 512 bytes traditional sector structure


However, in Advanced Format, eight 512 bytes sectors combine to form a 4KB sector. Though the ECC have been risen by 50 bytes accordingly, the total volume conversion rate have reached 4096/(4096+115) = 97%, which is a 10% improvement as compared to the previous example.

 

 


2.2 4KB sector in Advanced Format

 

Although the above paragraphs have portrait a bright future of 4KB sector, it takes time to be popularised. Hence, the current resolution for compatibility consideration is to map each physical sectors to eight analog sectors. However, it causes the problem of 4KB alignment mentioned in the title. For a brand new hard disk, its first partition always starts from the 63rd sector (analog sector).Supposing we are going to write a 4KB file onto the hard disk, the data is then divided into eight 512 bytes data blocks and written into analog sectors form 63 to 70 separately. It is worthwhile to notice that the 63rd analog sector locates in the 7th physical sector while the others are in the 8th. The next 512 bytes data will also occupy both the 8th and the 9th physical sectors. The problem comes: the basic operating unit of hard disk is the sector. Every time, the disk will read, modify and rewrite the entire physical sector. Crossing sectors thus mean double times of operation since every following data block will encounter the same problem. For SSD (Solid State Disk) it becomes worse because the lifetime of SDD is decided by the number of writing.




3.1 Mappingof the analog sector

 

To check the state of 4KB alignment can simply open the Start menu and type ‘msinfo32.exe’ in the searching box. Choose Component > Storage > Hard disk in the opened application window. Use the value of the term Partition Starting Offset to divide by 4096. If the quotient is an integer, it indicates the current partition has been aligned already. If not, just use software like PowerQuest or PartitionMagic to modify the reference number of starting sector (must be the power of 2, starting from 64, i.e. 64,128, 256…). Incidentally, the default partition setting of Windows 7 have taken 4KB alignment into consideration, which should be a good news for all Windows 7 users.



4.1 Checking the Partition Starting Offset in System Information

 

 

Bibliography

[1] http://baike.baidu.com/view/381.htm

[2]http://cpcwcq.blog.sohu.com/246399977.html

[3]http://wenku.baidu.com/view/4ad4eb69a45177232e60a205.html

[4]http://forum.51nb.com/thread-1228912-1-1.html

[5]http://storage.chinabyte.com/282/11423282.shtml

[6]wenku.baidu.com/view/04b1bf116c175f0e7cd13739.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
城市应急指挥系统是智慧城市建设的重要组成部分,旨在提高城市对突发事件的预防和处置能力。系统背景源于自然灾害和事故灾难频发,如汶川地震和日本大地震等,这些事件造成了巨大的人员伤亡和财产损失。随着城市化进程的加快,应急信息化建设面临信息资源分散、管理标准不统一等问题,需要通过统筹管理和技术创新来解决。 系统的设计思路是通过先进的技术手段,如物联网、射频识别、卫星定位等,构建一个具有强大信息感知和通信能力的网络和平台。这将促进不同部门和层次之间的信息共享、交流和整合,提高城市资源的利用效率,满足城市对各种信息的获取和使用需求。在“十二五”期间,应急信息化工作将依托这些技术,实现动态监控、风险管理、预警以及统一指挥调度。 应急指挥系统的建设目标是实现快速有效的应对各种突发事件,保障人民生命财产安全,减少社会危害和经济损失。系统将包括预测预警、模拟演练、辅助决策、态势分析等功能,以及应急值守、预案管理、GIS应用等基本应用。此外,还包括支撑平台的建设,如接警中心、视频会议、统一通信等基础设施。 系统的实施将涉及到应急网络建设、应急指挥、视频监控、卫星通信等多个方面。通过高度集成的系统,建立统一的信息接收和处理平台,实现多渠道接入和融合指挥调度。此外,还包括应急指挥中心基础平台建设、固定和移动应急指挥通信系统建设,以及应急队伍建设,确保能够迅速响应并有效处置各类突发事件。 项目的意义在于,它不仅是提升灾害监测预报水平和预警能力的重要科技支撑,也是实现预防和减轻重大灾害和事故损失的关键。通过实施城市应急指挥系统,可以加强社会管理和公共服务,构建和谐社会,为打造平安城市提供坚实的基础。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值