classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_31 Oct

Date 2026-10-31 Words 10,690 Segments 3,313
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-10-31 0000 FCS 31 Oct"

title: "FCS 31 Oct"

date: "2026-10-31 00:00"

duration: "--"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 3

transcript_chars: 57176

generated: "2026-11-23T01:38:20+05:30"


FCS 31 Oct

Overview

This class introduced the memory wall—the performance gap between fast processors and slow memory access—as a key motivation for studying memory hierarchy and caching. It systematically explored the memory hierarchy (registers, L1/L2/L3 cache, DRAM/SDRAM, disk, remote storage), distinguishing volatile from persistent levels and their trade-offs in speed, cost, and capacity. The session connected these hardware concepts to software performance, using real-world examples like banking applications and OTP authentication to illustrate how data movement bottlenecks and locality impact application speed and cost. The discussion set the stage for deeper analysis of caching mechanisms, locality principles, and performance monitoring.

Learning outcomes

Core concepts

Memory Wall

The growing performance gap between processor capability and memory access latency. While CPUs can execute instructions rapidly, their effective speed is often constrained by the time needed to fetch data from memory or storage. This creates a bottleneck where the CPU stalls, waiting for data.

Memory Hierarchy

A layered structure of storage, from fastest, smallest, most expensive, and volatile at the top (registers) to slowest, largest, cheapest, and persistent at the bottom (remote storage). The order discussed: Registers → L1 Cache → L2 Cache → L3 Cache → DRAM/SDRAM (Main Memory/RAM) → Local Hard Disk → Remote Storage (e.g., S3). Each level trades off speed, capacity, and cost.

Locality

The principle that programs tend to reuse data they have accessed recently (temporal locality) and access data stored near recently used data (spatial locality). This predictable access pattern justifies caching: keeping copies of frequently used data in faster storage levels close to the CPU.

Cache Hit/Miss

Volatile vs. Persistent Storage

Variable Storage

Formulas and maths

(No formulas were presented in this session.)

Worked examples

Banking Application Performance Analysis

Image Processing Throughput

OTP Authentication Cost Impact

Systematic Slowdown Troubleshooting

Steps to diagnose application slowdown:

1. CPU: Check for high utilization.

2. Memory (RAM): Check for high utilization; identify which process/module is consuming it.

3. Storage: Check disk I/O.

4. Application Code: Profile the code for inefficiencies.

Questions asked in class

Key takeaways

Exam-style questions

1. Describe the "memory wall" and explain why a program with minimal computation but extensive data fetching (like an OTP delivery system) can still feel slow to a user.

2. A banking application is slow only when generating monthly statements, not for balance checks. Using the memory hierarchy, explain the likely difference.

3. Where would you expect the following to be stored during program execution, and why: a loop counter i, a global configuration variable API_KEY, and a sensitive OTP value received from a user?

Glossary

Follow-ups

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…