GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Compute disk capacity and cylinder geometry

4 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Multiply surfaces, tracks per surface/cylinders, sectors per track and bytes per sector, or invert that product for cylinders. The 2007 variant additionally asks sector-address width, excluding bytes within a sector.

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Convert disk capacity into cylinders

Secondary Storage

Question 54, GATE 2024: A hard disk has capacity 512 GB, 32 storage surfaces, 4,096 sectors per track and 1,024 bytes per sector. How many cylinders does it contain? Use the binary capacity convention underlying the official answer.
Tap to enlarge
Answer & solution

Official answer: 4096

Approach: A cylinder is the collection of tracks at one radial position across all storage surfaces. Compute bytes per cylinder before dividing total capacity.
1. One track contains 4,096×1,024=2¹²×2¹⁰=2²² bytes.
2. A cylinder contains one track on each of 32=2⁵ surfaces, so its capacity is 2⁵×2²²=2²⁷ bytes. The stated surface count is already the number of recording surfaces; it must not be doubled again.
3. Under the question's intended binary convention, 512 GB=512×2³⁰=2³⁹ bytes.
4. Number of cylinders = total bytes / bytes per cylinder = 2³⁹/2²⁷=2¹²=4,096.
Answer: 4096. Strict decimal GB would mean 512×10⁹ bytes and would produce approximately 3814.697 cylinders, not the key's integer. The binary convention is therefore made explicit rather than silently treating the two unit definitions as identical.

Original paper, page 33 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Disk capacity and sector address bits

Secondary Storage

Question 11, GATE 2007: A disk pack has 16 surfaces, 128 tracks per surface, 256 sectors per track and 512 bytes per sector, stored bit-serially. What are its capacity and the number of bits needed to address a sector?
Options:
(A) 256 Mbyte,19 bits
(B) 256 Mbyte,28 bits
(C) 512 Mbyte,20 bits
(D) 64 Gbyte,28 bits
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Approach. Multiply surfaces, tracks and sectors for the number of addressable sectors. Multiply once more by bytes per sector for capacity; these two quantities require different address widths.

2. Derivation and interpretation. The number of sectors is 16×128×256=219. At 512=29 bytes each, capacity is 228 bytes=256 MiB. A sector address therefore needs 19 bits. Thus A, using the usual binary Mbyte convention; no byte/bit offset is needed when selecting a sector.

Original paper, page 3

Descriptive
Not in GATE 2027 syllabusReport issue

Disk capacity

Secondary Storage

Question 8(a), GATE 2001: Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Task: Find the total capacity of the disk.
Question 8(a), GATE 2001: Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Task: Find the total capacity of the disk.
Tap to enlarge
Shared context

Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Answer & solution

Answer: 320,000 KB = 327,680,000 bytes = 312.5 MiB. (no official key was published)

1. Count all sectors: 20 surfaces × 1000 tracks per surface × 16 sectors per track = 320,000 sectors. The units cancel to sectors, so rotation speed is irrelevant to capacity.

2. Each sector stores 1 KB=1024 bytes. Total capacity is 320,000×1024=327,680,000 bytes.

3. Dividing by 1024² yields 312.5 MiB, often written 312.5 MB under the historical binary convention. Under modern decimal units it is 327.68 MB.

4. The result uses the stated formatted sector payload and does not add hypothetical gaps or disk-controller overhead absent from the problem.

Original paper, page 8

Descriptive
Not in GATE 2027 syllabusReport issue

Calculate disk unformatted capacity

Secondary Storage

Question 14(a), GATE 1995: A disk has 8 surfaces, outer diameter 12cm, inner diameter 4cm, track spacing 0.1mm, 20 sectors per track, and 96 bytes formatting overhead per 4000-byte data sector. Find unformatted capacity.
Question 14(a), GATE 1995: A disk has 8 surfaces, outer diameter 12cm, inner diameter 4cm, track spacing 0.1mm, 20 sectors per track, and 96 bytes formatting overhead per 4000-byte data sector. Find unformatted capacity.
Tap to enlarge
Answer & solution

Answer: 262,144,000 bytes under the standard 400-tracks-per-surface model. (no official key was published)

Tracks occupy an annulus, so use the radial width, not the difference of diameters. The usable width is (12−4)/2=4cm=40mm. At a track pitch of 0.1mm, the standard capacity model gives 40/0.1=400 tracks per surface. Eight surfaces therefore have 3200 tracks, and with 20 sectors per track there are 64,000 sectors.

Each physical sector accounts for 4000 payload bytes plus 96 overhead bytes, or 4096 unformatted bytes. Multiplying gives 64,000×4096=262,144,000 bytes. This equals 250 MiB or 262.144 decimal MB. The formatted payload capacity is instead 64,000×4000=256,000,000 bytes, a useful cross-check; the difference 6,144,000 is exactly 96×64,000.

This conventional calculation treats the annular width as 400 track pitches. Counting both boundary centerlines as tracks would require a different geometrical endpoint convention not supplied by the question. It also assumes all surfaces are usable and every track has the stated 20 sectors.

Original paper, page 7