Interview Prep/Linux/Migrations, performance and fleet operations

You must benchmark a new storage volume before moving a database onto it. How?

AdvancedScenarioMigrations, performance and fleet operations
Answer

Situation read → Measure IOPS, throughput and latency with a DB-like pattern.

What I'd do →

fio --name=randrw --filename=/mnt/new/fio.test --size=10G --direct=1 \
    --rw=randrw --rwmixread=70 --bs=8k --iodepth=32 --numjobs=4 \
    --ioengine=libaio --runtime=120 --time_based --group_reporting
fio --name=seqread --filename=/mnt/new/fio.test --direct=1 --rw=read --bs=1M --iodepth=16 --runtime=60 --time_based

Look at IOPS, bandwidth and p99 latency (clat percentiles). Compare with the current volume using the same job.

Why → --direct=1 bypasses the page cache so you measure the disk, not RAM.

Interview tip → Note that cloud volumes may have burst credits; run long enough to see sustained performance.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations