2010-04-30 39 views

回答

17

这说明它适合你:

http://www.cis.temple.edu/~ingargio/cis307/readings/stable.html

"The maximum size of a file will be 8KB*(10 + 2**10 + 2**20 + 2**30), that is more than 8TB." 

交换8KB为您2KB,并调整条目较小的块大小。

2KB*(10 + 2**8 + 2**16 + 2**24) 

这不是从你的问题我清楚,如果13项包括单打,双打和三人间,或者如果他们是独立的,但应该是很容易调整 - 只是在表达改变10一个13

我想我已经正确调整所有的数学......仔细检查吧= |希望这不是功课我为你做;)

+1

对不起一个问题7打扰你多年以后,但这两个变量在方程式中意味着什么? '2 ** 10'或'2 ** 20' - 为什么2以及为什么每个10或20? – NateH06 2017-04-01 19:49:37

1

多少指针在1块?

 
    each block is 2kb = 2^11 
    1 disk address is 8b = 2^3 
    So, in 1 block there are 2^11/2^3 = 2^8 pointers" 

多少指针在文件系统?

 
    for 13 direct entries = (2^8)*13 = 3328 
    for single = (2^8)^2 = 2^16 
    for double = (2^8)^3 = 2^24 
    for triple = (2^8)^4 = 2^32 
    total pointer is :3328 + 2^16 + 2^24 + 2^32" 

因此文件系统的大小为:

size of the disk is : total of pointer*size of the pointer , which is around 34 GB " 

+4

我认为前13项是正确的,应该只有13分? – 2015-04-14 13:29:02

+2

你的数学不正确。 – Greg 2016-04-22 22:42:34

-1

我们HV给出可用于竞争性考试的捷径,:

Max file size possible = [ block size/pointer size]^3 * block size 
相关问题