Filesystem I/O and storage performance
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Before any separately authorized Docker query, verify the effective endpoint and builder (including environment overrides), not just the context name. Use only disposable lab resources; a failed check is a stop condition, not permission to retry against a different host.
Synthetic bounded worksheet, no disk writes:A: 64 MiB sequential payload in 2 s -> 32 MiB/sB: same payload in 1.6 s -> 40 MiB/sSeparate scenario: 1000 small operations in 4 s -> 250 ops/sRecord mount type, filesystem, sync policy, block size,cache state, host/VM boundary and available disk capacity.Copy-on-write storage may add work when changing image-layer files; a volume avoids using the container writable layer for its mounted data. A Desktop bind mount can cross a host/VM file-sharing boundary, particularly costly for some metadata-heavy workloads. Neither observation establishes a universal ranking. Compare equivalent workloads, including durability semantics: buffered writes may return before data is durable, so do not compare a buffered result against an fsync-heavy database result as equal. Throughput is bytes per time; IOPS counts operations per time and depends on block size and access pattern. Keep a fixed bounded payload and record free space, caches and concurrency. Do not clear the host page cache, change mount options, run unbounded disk tests or benchmark live databases. For persistent data, include recovery and backup correctness in the decision. Use identical sync and durability requirements; successful buffered writes are not necessarily persisted. The practice results are 16 MiB/s and 400 operations/s. A metadata test must specify operation types, fixed file count and size, cache state and correctness checks; do not generalize to database durability.
Common mistake
Comparing cached reads with uncached durable writes is not a controlled storage experiment.
Manual practice
Compute throughput for 48 MiB in 3 s and IOPS for 800 operations in 2 s. Propose a separate metadata-heavy comparison for a Desktop shared directory versus a VM-local volume, keeping correctness and sync semantics fixed.
Worksheet: lab-fixtures/docker-performance-engineering/06-filesystem-io/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Filesystem I/O and storage performance — Knowledge check
Interpret performance evidence and make a safe operational decision.
What is throughput for 64 MiB in 2 seconds?
What must be equivalent when comparing write speed?
Does a named volume guarantee the fastest workload?