ICSOC-8.21.3 Memory Boundary Computations and Storage Sizing (M)

🎓
Student Learning Profile
Module: 8.21.3 Memory Boundary Computations and Storage Sizing (ICSOC)
Score: 0/150 XPInitiate
Easy

ICSOC-8.21.3.1 Address Bus and Data Bus Width in Addressable Memory Architecture

Address Bus and Data Bus Width in Addressable Memory Architecture

The architecture of a computer system relies on two fundamental physical bus structures: the address bus and the data bus. The width of the address bus, measured in n bits, strictly dictates the maximum number of unique memory locations the central processing unit can directly reference, given by the power-of-two formula 2^n addressable locations. In byte-addressable systems, each distinct address references exactly one 8-bit byte. Consequently, an n-bit address bus can directly reference an address space of 2^n bytes, such as 2^16 = 65,536 bytes (64 KiB) or 2^32 = 4,294,967,296 bytes (4 GiB).

In contrast, the data bus width defines the volume of data bits transferred between the CPU and memory in a single read or write bus cycle. While the address bus governs memory capacity boundaries, the data bus governs transfer throughput and word size. In word-addressable architectures, each address points to a multi-byte word rather than a single byte; in such cases, the total addressable memory capacity equals 2^n multiplied by the word length. Olympiad problems frequently test the distinction between byte-addressable and word-addressable architectures, requiring students to compute exact memory capacities and determine required address bit-widths for custom embedded registers.

Easy
A microprocessor features a 24-bit address bus and a 16-bit data bus. If the memory subsystem is strictly byte-addressable, what is the maximum physical memory capacity that can be directly addressed by this processor?
Question diagram
💡 Hint
In a byte-addressable system, calculate 2 raised to the power of the address bus width, keeping in mind that the data bus width does not alter the number of addressable locations.

In a byte-addressable architecture, each distinct address references exactly one byte. An address bus of n = 24 bits can generate 2^24 distinct binary addresses. Since 2^20 bytes equals 1 MiB, 2^24 bytes = 2^4 * 2^20 = 16 MiB (16,777,216 bytes). The data bus width of 16 bits determines the amount of data transferred per bus cycle (2 bytes per transfer), but does not expand the total number of uniquely addressable byte locations. The capacity 32 MiB mistakenly multiplies the addressable space by the 2-byte data bus width in a byte-addressable system. The capacity 8 MiB incorrectly computes 2^23 bytes. The capacity 64 MiB assumes a 26-bit address bus.

Medium
A computer architecture has a total memory capacity of 1 GiB. If the architecture is word-addressable where each word consists of 32 bits, how many address bits are required in the address bus to address every memory word?
Question diagram
💡 Hint
First determine the total number of bytes in 1 GiB, divide by the number of bytes contained in each 32-bit word, and find the power of two of the resulting word count.

Total memory is 1 GiB = 2^30 bytes. In this word-addressable system, each word is 32 bits = 4 bytes (2^2 bytes). The total number of unique addressable words is (2^30 bytes) / (2^2 bytes per word) = 2^(30 – 2) = 2^28 words. Therefore, exactly 28 bits are required in the address bus to uniquely reference every word. Requiring 30 bits corresponds to a byte-addressable 1 GiB memory system rather than a 32-bit word-addressable system. Requiring 26 bits corresponds to a 64-bit (8-byte) word size. Requiring 32 bits corresponds to addressing 4 GiB of byte-addressable space or 16 GiB of 32-bit words.

Tricky
A memory subsystem spans hexadecimal addresses from 0x00400000 to 0x007FFFFF inclusive. If each memory location stores a 16-bit half-word, what is the total memory capacity of this range in mebibytes (MiB), and how many address lines are required to select any location within this specific block?
Question diagram
💡 Hint
Compute the number of locations by subtracting the start address from the end address and adding 1, then multiply by the 2-byte word size to get capacity, and find log2 of the location count.

The number of addressable locations is (0x007FFFFF – 0x00400000) + 1 = 0x003FFFFF + 1 = 0x00400000 locations. In decimal, 0x00400000 = 4 * 16^5 = 4 * (2^4)^5 = 4 * 2^20 = 2^2 * 2^20 = 2^22 locations (4,194,304 locations). To uniquely select any of these 2^22 locations within the block, exactly 22 address lines are required. Since each location stores a 16-bit half-word (2 bytes), the total capacity is 2^22 locations * 2 bytes = 2^23 bytes = 8 MiB. The answer of 4 MiB assumes each location stores only 1 byte (8 bits). Requiring 23 address lines mistakenly calculates address lines based on byte capacity rather than addressable memory location count. The answer of 21 address lines is an off-by-one power of two error.

Medium

ICSOC-8.21.3.2 Magnetic Disk Geometry and Storage Capacity Computations

Magnetic Disk Geometry and Storage Capacity Computations

Magnetic storage devices and virtual disk simulations organize non-volatile data through a rigid physical geometry composed of platters, recording surfaces, concentric tracks, and sectors. A hard disk assembly consists of multiple rigid platters coated with magnetic material, where each platter provides two usable recording surfaces serviced by dedicated read/write heads. All tracks positioned at the identical radial distance across all active surfaces collectively form a cylinder. The total unformatted storage capacity of a disk drive is governed by the product: Number of Surfaces * Number of Tracks per Surface * Number of Sectors per Track * Number of Bytes per Sector.

In modern Olympiad challenges, disk calculations extend beyond simple geometric multiplication into formatted capacity overheads and track sector density variations. Students must account for track-to-track layout differences, sector headers, error-correcting code (ECC) parity blocks, and inter-sector gaps that reduce raw unformatted capacity to net usable user storage. Furthermore, understanding cylinder organization is paramount for analyzing access mechanics, as switching tracks within the same cylinder requires zero mechanical head movement (seek time), minimizing latency during sequential block retrieval.

Easy
A magnetic hard disk assembly has 4 double-sided platters. Both surfaces of each platter are used for data recording. Each surface contains 2,048 concentric tracks, each track contains 256 sectors, and each sector stores 512 bytes. What is the total unformatted storage capacity of the disk drive?
Question diagram
💡 Hint
Multiply the number of recording surfaces (platters multiplied by 2) by tracks per surface, sectors per track, and bytes per sector, then convert the product into binary gibibytes.

With 4 double-sided platters, there are 4 * 2 = 8 recording surfaces (2^3). The total capacity equals Surfaces * Tracks * Sectors * Bytes = 8 * 2,048 * 256 * 512 bytes = 2^3 * 2^11 * 2^8 * 2^9 bytes = 2^(3 + 11 + 8 + 9) = 2^31 bytes. Since 2^30 bytes equals 1 GiB, 2^31 bytes = 2 GiB (2,147,483,648 bytes). The value 1 GiB assumes only 4 single-sided platters (4 surfaces instead of 8). The value 4 GiB overcounts surfaces by assuming 8 platters with 16 surfaces. The value 512 MiB erroneously divides by 4 or drops the track multiplier power.

Medium
A disk drive rotates at 7,200 RPM. It has 16 recording surfaces with 1,024 tracks per surface. Each track is divided into 128 sectors of 512 bytes each. What is the formatted capacity of a single cylinder, and what is the average rotational latency of the drive?
Question diagram
💡 Hint
A cylinder consists of all tracks at the same radius across all surfaces. Average rotational latency is the time required for half a disk revolution at 7,200 RPM.

A cylinder comprises one track from each of the 16 recording surfaces. Capacity per cylinder = Number of surfaces * sectors per track * bytes per sector = 16 * 128 * 512 bytes = 2^4 * 2^7 * 2^9 bytes = 2^20 bytes = 1 MiB (1,048,576 bytes). At 7,200 RPM, the disk performs 7,200 / 60 = 120 full rotations per second. The time for one full revolution is 1 / 120 seconds ≈ 8.333 milliseconds. Average rotational latency corresponds to half a rotation (waiting for the target sector to rotate halfway around), which is 8.333 ms / 2 ≈ 4.17 ms. A capacity of 2 MiB doubles the number of surfaces or sectors per track. A latency of 8.33 ms is the full rotational period rather than average latency. A capacity of 512 KiB only accounts for 8 surfaces.

Tricky
A disk drive uses zone-bit recording (ZBR) across two concentric zones on each of its 8 recording surfaces. The outer zone contains 500 tracks per surface with 300 sectors per track. The inner zone contains 500 tracks per surface with 200 sectors per track. Each sector holds 512 bytes of user data but requires 64 bytes of physical overhead (preamble header, ECC, and inter-sector gap). What is the total formatted user capacity of the drive, and what percentage of total raw track space is consumed by sector overhead?
Question diagram
💡 Hint
Calculate total sectors across both zones on all 8 surfaces, multiply by 512 bytes for user capacity, and calculate overhead percentage as overhead divided by total raw sector size (512 + 64 bytes).

Total sectors per surface = (500 tracks * 300 sectors) + (500 tracks * 200 sectors) = 150,000 + 100,000 = 250,000 sectors. Across 8 surfaces, the drive contains 8 * 250,000 = 2,000,000 sectors. Formatted user capacity = 2,000,000 sectors * 512 bytes = 1,024,000,000 bytes. Each raw sector occupies 512 bytes of user data + 64 bytes of overhead = 576 bytes of physical raw track space. The fraction consumed by overhead is 64 / 576 = 1 / 9 ≈ 11.11%. The overhead value 12.50% results from the classic mistake of dividing overhead by user payload (64 / 512 = 12.5%) rather than total raw space (64 / 576). The capacity 1,152,000,000 bytes represents total unformatted raw capacity (2,000,000 * 576) rather than formatted user capacity. The capacity 921,600,000 bytes erroneously subtracts overhead twice.

Medium

ICSOC-8.21.3.3 Transmission Rate, Network Bandwidth, and Transfer Latency Analysis

Transmission Rate, Network Bandwidth, and Transfer Latency Analysis

Evaluating the performance of data communication channels requires distinguishing between bandwidth, throughput, and total transmission latency. The transmission delay (also known as transfer time or packetization delay) is the exact physical duration required for a transmitter to push all packet bits onto the transmission medium, formulated strictly as T_trans = Data Size (bits) / Bandwidth (bits per second). In high-performance networks, transmission time represents only one component of end-to-end latency, which also incorporates propagation delay (distance divided by signal velocity in the medium), queuing delays in intermediate routers, and hardware processing overheads.

Olympiad problems often present scenarios where unit mismatches create subtle calculation pitfalls, particularly confusing storage units measured in bytes (B) with transmission rates specified in bits per second (bps). To determine the precise latency for transferring a multi-megabyte payload, students must convert data size to bits (multiplying bytes by 8) and normalize bandwidth to compatible decimal SI units (1 Mbps = 10^6 bps). Furthermore, analyzing round-trip time (RTT) and bandwidth-delay products (BDP) reveals the maximum data volume in flight across the network pipe, which is critical for evaluating transport protocol efficiency.

Easy
A computer needs to transmit an uncompressed 25 Megabyte (MB) file over a network link with an effective bandwidth of 100 Megabits per second (Mbps). Assuming ideal conditions where transmission delay dominates, how long does it take to transmit the entire file?
Question diagram
💡 Hint
Convert the file size from megabytes to megabits by multiplying by 8 before dividing by the transmission rate in Mbps.

To compute transmission delay, data size and network bandwidth must share compatible units. The file size is 25 MB = 25 * 8 Megabits = 200 Megabits (Mb). With a transmission bandwidth of 100 Mbps, transmission delay = Data Size (bits) / Bandwidth (bps) = 200 Mb / 100 Mbps = 2.0 seconds. The value 0.25 seconds occurs when dividing 25 MB directly by 100 Mbps without converting bytes to bits (25 / 100 = 0.25). The value 1.6 seconds results from inverting the ratio or dividing by 125. The value 8.0 seconds results from erroneously multiplying the final time by 4 or misapplying the bit-to-byte conversion factor.

Medium
Two network hosts are connected by a 2,000 km fiber-optic cable with a transmission bandwidth of 1 Gbps. Signal propagation speed in fiber is 200,000 km/s. If host A transmits a 1.25 MB data packet to host B, what is the total latency from the start of packet transmission at host A until the last bit is received at host B?
Question diagram
💡 Hint
Calculate transmission delay as size in bits divided by 1 Gbps, calculate propagation delay as distance divided by signal speed, and sum both values.

Total latency equals transmission delay plus propagation delay. First, transmission delay T_trans = Data Size / Bandwidth. Size = 1.25 MB = 1.25 * 8 Megabits = 10 Megabits = 10^7 bits. Bandwidth = 1 Gbps = 10^9 bps. T_trans = 10^7 / 10^9 = 0.010 seconds = 10 ms. Second, propagation delay T_prop = Distance / Speed = 2,000 km / 200,000 km/s = 0.010 seconds = 10 ms. Total latency = 10 ms + 10 ms = 20 ms. The value 11.25 ms fails to multiply megabytes by 8, yielding an erroneous transmission delay of 1.25 ms. The value 10 ms considers only one of the two delays and omits the other. The value 25 ms incorrectly estimates packet bit conversion or propagation speed.

Tricky
A satellite link has a bandwidth of 50 Mbps and a round-trip propagation time (RTT) of 500 ms. A transport protocol sends packets using a sliding window mechanism. What is the Bandwidth-Delay Product (BDP) of this link in megabytes (MB), and what is the minimum window size required to achieve 100% link utilization?
Question diagram
💡 Hint
Multiply the link bandwidth by the round-trip time to find total bits in flight, then convert from bits to bytes.

The Bandwidth-Delay Product (BDP) represents the maximum volume of data that can be in transit across the link at any moment: BDP = Bandwidth * RTT. With Bandwidth = 50 Mbps and RTT = 500 ms = 0.5 s, BDP in bits = 50 * 10^6 bps * 0.5 s = 25,000,000 bits = 25 Megabits (Mb). Converting bits to bytes: 25 Mb / 8 = 3.125 Megabytes (MB). To keep the pipe completely saturated without stalling for acknowledgments, the sender’s sliding window must hold at least the entire BDP, which is 3.125 MB. The value 25 MB confuses Megabits with Megabytes by forgetting to divide by 8. The value 12.5 MB uses a 2-second RTT or miscalculates 50 * 0.5 / 2. The value 1.5625 MB uses one-way propagation delay (250 ms) instead of the full round-trip time needed to receive acknowledgments.

Tricky

ICSOC-8.21.3.4 Cache Memory Hierarchies and Effective Access Time (EAT) Formulations

Cache Memory Hierarchies and Effective Access Time (EAT) Formulations

To bridge the substantial speed disparity between ultra-fast processor registers and slower main memory (DRAM), computer architectures implement multi-tiered cache hierarchies leveraging spatial and temporal locality. When the central processing unit issues a memory read request, the cache controller first checks whether the target memory block resides in high-speed cache. If found, a cache hit occurs, and the data is serviced within the cache hit time (T_c). If absent, a cache miss occurs, incurring a miss penalty (T_m) that includes accessing main memory and loading the requested block into cache.

The average performance of this memory subsystem is quantified by the Effective Access Time (EAT) equation: EAT = (h * T_c) + ((1 – h) * T_m), where h represents the cache hit ratio (0 <= h <= 1) and (1 - h) denotes the cache miss ratio. In hierarchical multi-level caches (L1, L2, L3), the formulation expands recursively: EAT = T_L1 + (1 - h_1) * (T_L2 + (1 - h_2) * T_main). Olympiad competitors must master both simultaneous-lookup and hierarchical-lookup EAT formulations, evaluating how marginal improvements in hit rates yield dramatic reductions in overall processor stalling.

Easy
A computer system has a cache memory access time of 2 nanoseconds (ns) and a main memory access time of 50 ns. If the cache hit ratio is 0.90 (90%), what is the Effective Access Time (EAT) of the memory subsystem, assuming cache and main memory are accessed hierarchically?
Question diagram
💡 Hint
Apply the formula EAT = Cache Access Time + (Miss Rate * Main Memory Miss Penalty).

In a hierarchical memory lookup, the processor always accesses the cache first. If a hit occurs (probability h = 0.90), time taken is 2 ns. If a miss occurs (probability 1 – h = 0.10), main memory must be accessed, adding a penalty of 50 ns. Thus, EAT = T_c + (1 – h) * T_m = 2 ns + (0.10 * 50 ns) = 2 ns + 5 ns = 7.0 ns. The value 5.2 ns is the miss penalty component alone without adding the cache hit time. The value 6.8 ns incorrectly uses (0.90 * 2) + (0.10 * 50) = 1.8 + 5.0, which forgets that on a miss, the cache was also searched first. The value 27.0 ns represents the unweighted arithmetic mean (2 + 52) / 2.

Medium
A processor design requires an Effective Access Time (EAT) no greater than 5 ns. The cache access time is 1.5 ns, and the main memory access penalty is 70 ns. What is the minimum cache hit ratio (h) required to satisfy this performance target?
Question diagram
💡 Hint
Set up the inequality T_cache + (1 – h) * T_main <= 5, substitute 1.5 ns and 70 ns, and solve for h.

Using the hierarchical access formula: EAT = T_c + (1 – h) * T_m <= 5 ns. Substituting known values gives 1.5 + (1 - h) * 70 <= 5. Subtracting 1.5 from both sides yields (1 - h) * 70 <= 3.5. Dividing by 70 gives 1 - h <= 3.5 / 70 = 0.05. Rearranging yields h >= 1 – 0.05 = 0.95 (95.0%). Thus, the cache hit ratio must be at least 95.0%. A hit ratio of 92.5% yields EAT = 1.5 + (0.075 * 70) = 1.5 + 5.25 = 6.75 ns, exceeding the 5 ns target. A hit ratio of 90.0% yields EAT = 1.5 + 7.0 = 8.5 ns. A hit ratio of 97.5% exceeds the minimum threshold unnecessarily.

Tricky
A multi-level cache architecture features an L1 cache, an L2 cache, and main memory. L1 has a hit time of 1 ns and a local hit rate of 90%. L2 has a hit time of 6 ns and a local hit rate of 80%. Main memory has an access time of 100 ns. What is the overall Effective Access Time (EAT) of this system, and what is the global miss rate of the cache hierarchy?
Question diagram
💡 Hint
Trace the hierarchy step by step: L1 misses 10% of accesses. Of those 10%, L2 hits 80% and misses 20%. The global miss rate is 10% * 20%.

In a multi-level cache, EAT = T_L1 + (1 – h_1) * [T_L2 + (1 – h_2) * T_main]. Given T_L1 = 1 ns, h_1 = 0.90 (miss rate = 0.10), T_L2 = 6 ns, h_2 = 0.80 (miss rate = 0.20), and T_main = 100 ns: The penalty upon an L1 miss is T_L2 + (1 – h_2) * T_main = 6 + (0.20 * 100) = 6 + 20 = 26 ns. Weighting by the L1 miss rate: EAT = 1 + (0.10 * 26) = 1 + 2.6 = 3.6 ns. The global miss rate is the fraction of total memory requests that miss both L1 and L2: (1 – h_1) * (1 – h_2) = 0.10 * 0.20 = 0.02 = 2.0%. The value 4.2 ns incorrectly adds L1 hit time inside the L2 miss calculation. Citing a 10.0% global miss rate confuses the local L1 miss rate with the overall hierarchy miss rate. The value 2.8 ns mistakenly discounts main memory access latency.

Tricky

ICSOC-8.21.3.5 Binary Prefixes vs. Decimal SI Units and Storage Discrepancy Sizing

Binary Prefixes vs. Decimal SI Units and Storage Discrepancy Sizing

In computing and digital engineering, a critical distinction exists between traditional decimal SI metric prefixes (multiples of 10) and IEC binary prefixes (multiples of 2). Under the International System of Units (SI), prefixes such as kilo (10^3 = 1,000), mega (10^6 = 1,000,000), giga (10^9 = 1,000,000,000), and tera (10^12) denote powers of ten, commonly used by storage hardware manufacturers to advertise drive capacities. Conversely, the International Electrotechnical Commission (IEC) standardizes binary prefixes: kibibyte (1 KiB = 2^10 = 1,024 B), mebibyte (1 MiB = 2^20 = 1,048,576 B), gibibyte (1 GiB = 2^30 = 1,073,741,824 B), and tebibyte (1 TiB = 2^40 B), which align with native binary memory addressing.

This fundamental standard discrepancy explains why an operating system reports a noticeably smaller capacity for a newly installed hard drive than the capacity printed on its retail packaging. For example, a drive marketed as 1 TB contains 10^12 bytes; when parsed by an operating system using binary units, its capacity is calculated as 10^12 / 2^40 = 10^12 / 1,099,511,627,776 ≈ 0.9095 TiB (often labeled colloquially as 909.5 GB or 931.3 GiB depending on the OS reporting standard). Olympiad problems test students’ mathematical rigor in quantifying this percentage discrepancy across increasing powers—which escalates from 2.4% at kilo/kibi to over 9.95% at tera/tebi—and converting storage footprints between standards.

Easy
How many exact bytes are contained in 1 Tebibyte (1 TiB) under the IEC binary standard, and how many bytes are in 1 Terabyte (1 TB) under the SI decimal standard?
Question diagram
💡 Hint
Binary IEC prefixes use powers of 2 (kibi=2^10, mebi=2^20, gibi=2^30, tebi=2^40), while SI metric prefixes use powers of 10.

The IEC binary standard defines prefixes based on powers of 2: 1 KiB = 2^10 = 1,024 B; 1 MiB = 2^20 = 1,048,576 B; 1 GiB = 2^30 = 1,073,741,824 B; and 1 TiB = 2^40 = 1,099,511,627,776 bytes. In contrast, SI metric prefixes denote powers of 10: 1 KB = 10^3 = 1,000 B; 1 MB = 10^6 = 1,000,000 B; 1 GB = 10^9 = 1,000,000,000 B; and 1 TB = 10^12 = 1,000,000,000,000 bytes. Reversing the two standards confuses the binary IEC notation with SI metric notation. The other values introduce hybrid calculation errors combining powers of 1,024 with powers of 1,000.

Medium
A consumer purchases a solid-state drive (SSD) marketed by the manufacturer as having 500 Gigabytes (GB) of storage capacity. When installed, an operating system that measures storage in binary Gibibytes (GiB) calculates the usable capacity. Assuming zero file system overhead, what capacity will the operating system report?
Question diagram
💡 Hint
The manufacturer specifies 500 * 10^9 bytes. Divide this value by 2^30 (1,073,741,824 bytes per GiB) to find the binary capacity.

Hardware manufacturers define 500 GB using SI decimal units: 500 * 10^9 bytes = 500,000,000,000 bytes. Operating systems that measure capacity using binary prefixes calculate gibibytes by dividing total bytes by 2^30 = 1,073,741,824 bytes per GiB. Capacity in GiB = 500,000,000,000 / 1,073,741,824 ≈ 465.661 GiB. The value 476.84 GiB results from dividing by 1,024^2 (converting to MiB instead of GiB) and scaling incorrectly. Reporting 500.00 GiB ignores the fundamental 7.37% difference between 10^9 and 2^30. The value 450.00 GiB is an arbitrary estimate that overstates the discrepancy as a flat 10%.

Tricky
As storage scales from kilo/kibi (10^3 vs 2^10) to tera/tebi (10^12 vs 2^40), the percentage difference between decimal SI capacity and binary IEC capacity expands predictably. By what exact percentage is 1 TiB larger than 1 TB, and what is the primary mathematical reason this discrepancy grows with larger prefixes?
Question diagram
💡 Hint
Calculate the ratio 2^40 / 10^12 = (1,024 / 1,000)^4, subtract 1, and express as a percentage.

At the first prefix tier (kilo vs kibi, k = 1), 1 KiB / 1 KB = 1,024 / 1,000 = 1.024, representing a 2.40% difference. At each successive prefix level (mega/mebi k=2, giga/gibi k=3, tera/tebi k=4), the ratio is multiplied by 1.024, compounding as (1,024 / 1,000)^k. For tera vs tebi (k = 4): 2^40 / 10^12 = (1.024)^4 ≈ 1.0995116. Subtracting 1 gives approximately 0.09951, or 9.951%. Thus 1 TiB is approximately 9.95% larger than 1 TB. Stating the discrepancy is fixed at 2.40% overlooks exponential compounding across powers. The value 7.37% is the discrepancy for the giga/gibi tier ((1.024)^3 – 1 ≈ 7.37%), not the tera/tebi tier. Claiming a 12.5% discrepancy due to parity bits confuses address-space definitions with error-correction overhead.