Computer Hardware Demo Examples

Runnable Python calculators and micro-benchmarks for infrastructure sizing, memory locality, storage trade-offs, and network planning. Click View to inspect any script in the code viewer.

For hardware architecture specifications, PCIe/NVMe standards, and data center guides, see References.

Phases 1–2: Compute, Power & Storage

Scripts for rack power and PUE sizing, cache-stride timing, GPU VRAM budgets, and RAID capacity planning.

#ScriptDescriptionLink
1Rack Power & PUE BudgetCalculates IT load, Power Usage Effectiveness, and 80%-derated circuit sizing.View
2CPU Cache Stride BenchmarkCompares sequential vs. strided array traversal timing in Python.View
3GPU VRAM EstimatorEstimates model weight + activation VRAM across FP16, INT8, and INT4 precision.View
4RAID Capacity & Fault ToleranceComputes usable TB and drive-failure tolerance for RAID 0, 1, 5, 6, and 10.View

Phases 2–3: Storage I/O & Networking

Queue-depth IOPS modeling and IPv4 CIDR subnet planning for server racks.

#ScriptDescriptionLink
5Storage IOPS vs. LatencyApplies Little's Law to compare HDD, SATA SSD, and NVMe queue depths.View
6CIDR Subnet PlannerComputes netmask, network/broadcast addresses, and usable host range for a CIDR block.View