Skip to content
Official PYQ · 2012

GATE CS 2012 Q41 — I/O Scheduling

Explain with AI

A file system with 300300 GByte disk uses a file descriptor with 88 direct block addresses, 11 indirect block address and 11 doubly indirect block address. The size of each disk block is 128128 Bytes and the size of each disk block address is 88 Bytes. The maximum possible file size in this file system is

Choose one option
View worked solution

Answer: B

To find the maximum possible file size, we first determine how many disk block addresses (pointers) can fit into a single disk block.

Step 1: Calculate the number of addresses per block

Number of addresses per block (N)=Disk Block SizeDisk Block Address Size=128 Bytes8 Bytes=16\text{Number of addresses per block } (N) = \frac{\text{Disk Block Size}}{\text{Disk Block Address Size}} = \frac{128 \text{ Bytes}}{8 \text{ Bytes}} = 16

Step 2: Calculate the maximum number of blocks a file can use

The file descriptor contains:

  • Direct blocks: 88 blocks
  • Single indirect block: 1×N=161 \times N = 16 blocks
  • Doubly indirect block: 1×N2=162=2561 \times N^2 = 16^2 = 256 blocks

Total Blocks=8+16+256=280 blocks\text{Total Blocks} = 8 + 16 + 256 = 280 \text{ blocks}

Step 3: Calculate the maximum file size

Maximum File Size=Total Blocks×Block Size\text{Maximum File Size} = \text{Total Blocks} \times \text{Block Size} Maximum File Size=280×128 Bytes=35,840 Bytes\text{Maximum File Size} = 280 \times 128 \text{ Bytes} = 35,840 \text{ Bytes}

Converting this to KBytes (1 KByte=1024 Bytes1 \text{ KByte} = 1024 \text{ Bytes}):

Maximum File Size=35,8401024 KBytes=35 KBytes\text{Maximum File Size} = \frac{35,840}{1024} \text{ KBytes} = 35 \text{ KBytes}

Thus, the maximum possible file size is 35 KBytes, which corresponds to option B.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore I/O Scheduling questions