2010-04-30 35 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 
相關問題