MoatLab / FEMU

FEMU: Accurate, Scalable and Extensible NVMe SSD Emulator (FAST'18)
Other
407 stars 187 forks source link

How to emulate GC impact with FEMU #130

Open yanbozyb opened 7 months ago

yanbozyb commented 7 months ago

Hi Huaicheng,

When I try FEMU Black box SSD, the write throughput is always around 1180MB/s.

I use default FEMU configuration and FIO tool to measure raw block device. Although I change fio configuration to sequential writes (128KB) and random writes (4KB) multiple times, the throughput remain same (1180MB/s). And I when continue to randomly write entire device, I didn't see any performance degradation as real NAND SSDs.

I'm wondering how can I reproduce GC influence with FEMU? The Black box SSD is expected to show lower write throughput when GC is triggered.

Thanks

huaicheng commented 7 months ago

Try enabling FEMU logs, did you observe GC being triggered?

yanbozyb commented 7 months ago

Thanks for your help.

When I enable FEMU debug log, I find GC is indeed triggered. It seems like GC has visible influence on tail latency, but it hasn't too much visible influence on throughput (around 1-2% throughput degradation for writes).