classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_29 Aug

Date 2026-08-29 Length 2h 36m Words 16,491 Segments 1,909
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-08-29 0000 FCS 29 Aug"

title: "FCS 29 Aug"

date: "2026-08-29 00:00"

duration: "2h 35m"

language: "en"

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

parts: 4

transcript_chars: 84936

generated: "2026-11-23T15:13:48+05:30"


FCS 29 Aug

Overview

This class focused on practical system observation in a Linux environment, establishing the operating system's role as the manager of hardware resources (CPU, memory, disk, network) on behalf of applications. Students used a Python web application (systemlab) to generate specific loads and observed the resulting hardware utilization via command-line tools (ps, top, htop, mpstat, /proc). The session connected high-level cloud concepts (compute, storage) to low-level OS modules (scheduler, virtual memory, file system) and demonstrated how the OS abstracts physical hardware for applications.

Learning outcomes

Core concepts

Operating System as Resource Manager

The OS acts as a middleman between application software and physical hardware. It provides abstractions (processes, virtual memory, files) and manages resources via dedicated modules: the scheduler for CPU time, virtual memory for RAM and swap, the file system for disk I/O, and the network stack for communication. This management is observable through system monitoring tools.

Process Observation and States

A process is a program loaded into memory. Tools like ps and top reveal its state (e.g., sleeping, running), resource consumption (%CPU, %MEM), and relationships (PPID). Understanding the difference between CPU time (actual processor cycles used) and elapsed time (total wall-clock time) is crucial for performance analysis. The OS scheduler decides which process runs on which CPU core.

Virtual vs. Physical Resources

The OS creates virtual abstractions (virtual CPUs, virtual memory addresses) for processes, but these are bounded by physical resources. Virtual CPU and memory cannot exceed the actual, physical CPU and RAM capacity. The /proc filesystem provides a window into how the kernel manages these virtual resources for each process.

Storage Hierarchy and Performance

The system employs a storage hierarchy: fast, volatile RAM (temporary) and slower, persistent disk (permanent). Swap memory extends RAM onto disk via paging. Performance demonstrations (writing to /tmp vs. allocating memory) show that memory access is orders of magnitude faster than disk access. Cache (L1, L2, L3) sits between CPU and RAM for even faster access (covered in a previous session).

Disk Management: Partitioning and LVM

Disk partitioning splits a physical disk into logical sections (sda1, sda2) for purposes like isolating the /boot partition or controlling data placement. Logical Volume Manager (LVM) allows flexible management of space within a partition, enabling dynamic resizing of logical volumes, which is a common practice in server and cloud environments.

Formulas and maths

No formulas were presented in this session.

Worked examples

Disk Partitioning Layout

Process Monitoring with ps and /proc

Generating and Observing CPU Load

Generating and Observing Memory Load

Disk vs. Memory Performance Test

Using systemlab.py to write data:

Questions asked in class

Key takeaways

Exam-style questions

1. Scenario: You run curl localhost:8080/cpu?seconds=10 and observe in top that the process uses 95% CPU. However, mpstat shows overall CPU idle time is 50%. Explain this apparent contradiction.

2. A system has 8 GB of physical RAM. A process has a VmSize of 10 GB as reported in /proc/[PID]/status. Is this possible? Explain.

3. Describe the purpose of having a separate /boot partition on a Linux system's hard disk.

Glossary

Follow-ups

Transcript

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

loading…