2,803 views
1 1 vote
Suppose a computer that has a file system for a 256GB disk, where each disk block is 16KB .If the OS for this computer uses a FAT, what is the smallest amount of memory that could possibly be used for the FAT (assuming the entire FAT is in memory)?

1 Answer

Best answer
3 3 votes
Disk size= 256GB= $2^{38}$B and Block size= 16KB= $2^{14}$B.

The FAT will have one entry for each disk block. No of disk blocks= Disk size/Block Size=$\frac{2^{38}}{2^{14}}$ = $2^{24}$ blocks.

So no of entries in FAT=$2^{24}$.

Smallest amount of memory used for the FAT = No of entries in FAT x Size of each entry.

Each entry will contain the block number. With 2^24 blocks, bits required to identify a block is 24 bits.

So size=$2^{24}$ x 24 bits = $2^{24}$ x 3 Bytes = 48MB.
• selected by
Position:
Show:

Related questions

1 1 vote
1 1 answer
160
160 views
GO Classes asked Aug 29
160 views
Suppose several processes have opened and are sharing the same file $F$.Which statement is correct?All processes may open $F$ only in read mode. The system-wide open-file...
1 1 vote
1 1 answer
115
115 views
GO Classes asked Aug 25
115 views
A file system has:Cluster size = $\text{4 KB}$ Inode size = $\text{64 bytes}$ $1\text{M} = 2^{20}$ clusters reserved for storing inodes $512\text{M}$ clusters reserved fo...
2 2 votes
1 1 answer
119
119 views
GO Classes asked Aug 25
119 views
Consider a file system with:Block size = $\text{2048 bytes}$ Disk block pointer size = $\text{32 bits}$ $12$ direct pointers $1$ single-indirect pointer $1$ double-indire...