AN IMPLEMENTATION OF ALOG-STRUCTURED FILE .ppt
《AN IMPLEMENTATION OF ALOG-STRUCTURED FILE .ppt》由会员分享,可在线阅读,更多相关《AN IMPLEMENTATION OF ALOG-STRUCTURED FILE .ppt(31页珍藏版)》请在麦多课文档分享上搜索。
1、AN IMPLEMENTATION OF A LOG-STRUCTURED FILE SYSTEM FOR UNIX,Margo Seltzer, Harvard U. Keith Bostic, U. C. Berkeley Marshall Kirk McKusick, U. C. Berkeley Carl Staelin, HP Labs,Overview,Paper presents a redesign and implementation of the Sprite LFS BSD-LFS is Faster than conventional UNIX FFS (the “fa
2、st” file system of the early 80s) Not as fast as an enhanced version of FFS with read and write clustering,Historical Perspective,Early UNIX FS used small block sizes and did not try to optimize block placement The UNIX FFS Increased block sizes Added cylinder groups Incorporated rotational disk pos
3、itioning to reduce delays when accessing sequential blocks,Limitations of FFS (I),Synchronous file deletion and creation Makes file system recoverable after a crash Same result can be achieved through NVRAM hardware or logging software,Limitations of FFS (II),Seek times between I/O requests for diff
4、erent files Has most impact on performance whenever vast majority of files are small FFS does not address the problem,Log-Structured File Systems,Attempt to address both limitations of FFS Store all data in a single, continuous log Optimized for All writes Reading files written in their entirety ove
5、r a short period of time Accessing files that were created or modified at the same time,General Organization,Disk is partitioned into segments Writes are always sequential within a segment Segment cleaner maintains a pool of empty (“clean”) segments through disk compaction “Live” data existing in a
6、a set of segments are regrouped in a smaller subset of segments,Overview,LFS Data Structures,Superblock: Same function as one used by FFS I-node map: Maps i-node numbers into disk addresses Segment usage tables: Show number of live bytes in a segment and last modification time Checkpoints: Created e
7、very time system does a sync(),Limitations of Sprite LFS,Recovery does not verify the consistency of the file system directory structure LFS consumes “excessive amounts” of main memory by 1993 standards Write requests are successful even if there is insufficient disk space Segment validation is hard
8、ware dependent All file systems use a single cleaner and a single cleaning policy No measure of the cleaner overhead,Recovery (I),Two major aspects Bringing the file system to a physically consistent state Verifying the logical structure of the file system FFS achieves both goals through fsck Rebuil
9、ds the whole file system Verifies the directory structure and all block pointers,Recovery (II),Sprite LFS uses a two-step recovery process: Initializes first all the file structures from the most recent checkpoint “Roll forward” to incorporate all subsequent modifications Done by reading each segmen
10、t in time order after the last checkpoint,Recovery (III),Standard LFS recovery does not verify the directory structure Weakness to be addressed in BSD-LFS,Memory Consumption,Sprite LFS reserves “large amounts” of main memory including four half-megabyte segments and many buffers BSD-LFS: Does not us
11、e special staging buffers Does not reserve two read-only segments that can be reclaimed without any I/O Implements cleaner as a user-level process,Block Accounting,Sprite LFS maintained a count of disk blocks available for physical writing Blocks written to the cache but not written to disk do not a
12、ffect that count What if a block is “successfully” written to the cache but the disk becomes full before the blocks are actually written? BSD-LFS keeps a separate count of disk blocks that are not yet committed to any dirty block in the cache,Segment Structure (I),Sprint LFS places segment summary b
13、locks at the end of the segment Write containing the segment summary validates the whole segment Makes two incorrect assumptions Controller will not reorder write requests Disk will always write the contents of a buffer in the order presented,Segment Structure (II),BSD-LFS Does not make these assump
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANIMPLEMENTATIONOFALOGSTRUCTUREDFILEPPT
