-
Notifications
You must be signed in to change notification settings - Fork 21
Description
In my setup:
1 hdd ("slow"), can write ~150mb/s directly
another hdd ("fast") can read 250+ mb/s
I have ssd cache (50GiB) via dmwb in between
(writeback 100, nr_max_batched_writeback 32)
During large files copy from fast hdd to slow with dmwb:
- it sits around 150mb/s writing to slow hdd while cache filling up (due to much faster "source" hdd)
- once cache fills completely speed will be around 35-40mb/s
If I do temporary stop copy process, all data in cache will be written back in full 150mb/s. If cache fills again (after copy being resumed) - it will once again drop to ~1/3 of hdd bandswitch.
Also I did tried to set writeback thershold to 0. It fill cache without any writes to slow hdd (this is expected, I guess). But once cache is filled completely - it will slowly write to "slow" hdd with ~1/3 (45MiB/s) of its max speed.
So, I guess there some is some very not-optimal thing happens if cache is completely saturated with dirty data. Or maybe im doing something wrong? :)
This is the only bad case I found yet. Great library!!
p.s. suspend/resume wb dm device quickly (100 times/sec) not allowing cache to fill more than 95% works -- transfer rate will sit around 120-130 in that case for me :-D