4,150 views
3 3 votes
Consider an indexed file allocation using index nodes (inodes). An inode contains among other things, 14 direct indexes, one indirect index, two double indexes, and three triple indexes. If the system contains the 10485 files, size of disk is 1 PB and disk sector is 1 Kbytes.
 
1. What is the size of inode in this allocation scheme?_____Bytes

2. How much space of disk is required to store inode of all the files?____Bytes

3. How large of a file can be addressed by the double indirect block alone?____MB

4. What is the maximum file size possible in this allocation scheme?____GB

2 Answers

Best answer
2 2 votes
Block size = sector size = 1KB

Block pointer size = (40-10) = 30 bits

Now there is one inode for each file in the system.

1. Size of inode = (14+2+3)*(block pointer size) = 19*30bits = 570bits= 72 Bytes.

2. space of disk is required to store inode of all the files = 72*10485 = 754920 bytes.

3. Size of file Addressed by double indirect block pointer = (274*274*1KB) = 75.076 MB
   [ As the No of entries in each block = (8*1024/30) = 274 ]

4. Maximum file size possible = 14*1KB + 274*1KB + 2*274*274*1KB +3*274*274*274*1KB = almost 62 GB
• selected by
0 0 votes
Block size = 1KB, and its offset is 10 bits.

address size for 1 PB = 50 bits.

Block Pointer Size = 50 - 10 = 40 bits = 5 Bytes.

1. Size of each Inode = (14+1+2+3) * 5 B = 100 B.

2. Space required to store all inodes:

   size each file have their own inode, so

   total space required for inodes = 10485 * 100 B = 1048500 B = 1MB (aprox.)

3. Max file size using double indirect pointer:

    number of address 1 block can have = 1 KB / 5B = 204.8 = 204 (only lower bound number of address can be stored).

    total size using double indirect pointer = 204 * 204 * 1 KB = 41616 B = 40.64 MB.

4. max file size possible = 14*1 KB + 1*204*1 KB + 2*204*204*1KB + 3*204*204*204*1KB = 24.37 GB (aprox)
Position:
Show:

Related questions

3 3 votes
1 1 answer
1.2k
1.2k views
Anup patel asked Oct 13, 2017
1,244 views
1 1 vote
0 0 answers
1.2k
1.2k views
Shubhanshu asked Sep 5, 2017
1,228 views
Explain the following terms with there respective formula (expression)1) Max file size2) Max possible file size3) Max Disk Size4) Total file size5) max possible size of t...