- 40
- 0
- 约9.74千字
- 约 10页
- 2017-10-07 发布于河南
- 举报
硬连接和软连接的原理(The principle of hard and soft connection)
硬连接和软连接的原理(The principle of hard and soft connection)
[text begins]
Primer
At present, the UNIX file system has many implementations, such as UFS (BSD based UNIX file system), ext3, ext4, ZFS and Reiserfs, and so on.
No matter what file system, you always need to store data. The smallest unit of storage for a hard disk is the sector, and the smallest unit in the data is not the sector, because the storage efficiency in sectors is too low. A sector has only 512 bytes, while the head is read from sector to sector. That is to say, if the file is 10MB, then the head must be read 20480 times to read the file. This efficiency is extremely low.
Logical block
To improve efficiency, we have the notion of a logical block (Block), or a block of data. The logical block is partitioned in the file system format specified by the minimum storage unit, the minimum storage unit is a sector based, so the logical block size is 2 sector times n times. At this time, the head can read a block at a time, so that the efficiency will be higher!
The planning of the logic block is very knowledgeable, not the bigger the better, because a logical block can also only contain a file (in Linux ext2), so if the logic block is planning is too large, it will be a waste of disk space. For example, if a logical block is 4KB, and one file is only 0.1KB in size, the small file still occupies a logical block, and therefore 3.9KB space is wasted.
So, when planning a disk, you need to consider the use of the host. For example, BBS hosts, because the article is short and the file is smaller, then the logical block is allocated smaller. If the host is mainly used to store large capacity files, then consider the efficiency of use, or logical block a little better!
Disk composition
We can split one disk into one or more partitions. Each partition can contain a file system.
We are going to describe a process of layering and refining, and please concentrate on thinking about it:
The 1 disk is composed of one parti
您可能关注的文档
- 烫发知识(Perm knowledge).doc
- 热带鱼饲养常识(新手必读)(Tropical fish raising knowledge (Rookie must read)).doc
- 热点专题五 图形与变换、图形与坐标(Hot topics five graphics and transformations, graphics and coordinates).doc
- 热点关注剧烈运动的10大益处(Hot spots focus on the 10 benefits of violent sports).doc
- 热点解读2013年高考历史热点问题扫描_百度文库(Interpretation the hot problem of the college entrance examination history 2013 hot scan _ Baidu Library).doc
- 热转印基础问答(Heat transfer basic questions and answers).doc
- 焦化行业年终总结(Year-end summary of coking industry).doc
- 煤化工技术展望(Prospect of coal chemical technology).doc
- 煤泥水综合利用研究概述(Review of comprehensive utilization of coal slurry).doc
- 煤炭采制样管理办法(The measures for the administration of coal sampling).doc
最近下载
- 人教六年级下册语文字帖直接打印DOC.doc VIP
- 三年(2023-2025)高考物理真题分类汇编:专题20 电学计算(全国通用)(解析版).docx VIP
- 肾病科优势病种中医诊疗方案梳理.doc VIP
- 湖南蒋氏部分字辈1教程范本.doc VIP
- 2025年城市管理协管队员招聘考试(公共基础知识与法律常识)题库.docx VIP
- CIMofCatamoldBASF陶瓷粉末注射成型准则.doc VIP
- 3年(2023-2025)全国高考物理真题知识点汇编专题7动量含详解.docx VIP
- 冠捷电源分析(天津)讲述.ppt
- 新版部编版四年级语文下册课内阅读理解专项练习(附答案解析).docx
- 医院制剂申请流程.docx VIP
原创力文档

文档评论(0)