Skip to contentSkip to conversation

Inconsistent Performance

DISCUSSION Andrew Thrift 2 participants 3 messages Jul 29, 2013 – Jul 31, 2013 1 message not in the archive bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hi,

We are noticing some odd performance characteristics with bcache on 3.10 Mainline kernel.

We are using Intel DC S3700 SSD and Seagate Constellation ES.2 HDD

Using FIO to perform a 4K random write test with QD=32 and 4 instances we get:

RAW SSD: 55.5K iops

RAW HDD: 540 iops

Fresh bcache on top of SSD/HDD [writeback]: 36.8K iops

Which is not great, but OK.

However if I run the FIO test a number of times, letting it write out the data to the backing device after each run, after a few runs I will notice the IOPS drop. When the benchmark starts it will sit around 14K IOPS, then as soon as it starts writing to the backing device this will drop to around 5K IOPS. On the subsequent runs it will never go above 5K IOPS.

Has there been a performance regression on 3.10 ?

Regards,

Andrew

A message that is not in the archive (sent off-list or not yet received): 51F5E261.6050600-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org

#2 lore raw
Quoted 16 lines · Andrew Thrift

Hi,

We are noticing some odd performance characteristics with bcache on 3.10 Mainline kernel.

We are using Intel DC S3700 SSD and Seagate Constellation ES.2 HDD

Using FIO to perform a 4K random write test with QD=32 and 4 instances we get:

RAW SSD: 55.5K iops

RAW HDD: 540 iops

Fresh bcache on top of SSD/HDD [writeback]: 36.8K iops

Quoted 8 lines

Which is not great, but OK.

However if I run the FIO test a number of times, letting it write out the data to the backing device after each run, after a few runs I will notice the IOPS drop. When the benchmark starts it will sit around 14K IOPS, then as soon as it starts writing to the backing device this will drop to around 5K IOPS. On the subsequent runs it will never go above 5K IOPS.

Hmm... that sounds like something an SSD would do, but it sounds like you've checked that performance to the bare SSD isn't degrading, and that is a rather large regression.

Quoted 1 line

Has there been a performance regression on 3.10 ?

Certainly not impossible.

Could you try doing some profiling with perf and seeing if anything shows up? Also, try flipping off discards if you have them on.

It's just write performance that's degrading, not read?

#3 lore raw
In reply to a message not in the archive
Quoted 27 lines · Andrew Thrift

Hi,

We are noticing some odd performance characteristics with bcache on 3.10 Mainline kernel.

We are using Intel DC S3700 SSD and Seagate Constellation ES.2 HDD

Using FIO to perform a 4K random write test with QD=32 and 4 instances we get:

RAW SSD: 55.5K iops

RAW HDD: 540 iops

Fresh bcache on top of SSD/HDD [writeback]: 36.8K iops

Which is not great, but OK.

However if I run the FIO test a number of times, letting it write out the data to the backing device after each run, after a few runs I will notice the IOPS drop. When the benchmark starts it will sit around 14K IOPS, then as soon as it starts writing to the backing device this will drop to around 5K IOPS. On the subsequent runs it will never go above 5K IOPS.

Quoted 1 line

Has there been a performance regression on 3.10 ?

I don't seem to be able to reproduce this in the bcache-testing branch (but I haven't tried stock 3.10, and also the SSD in my test machine isn't near as fast as yours).

Could you try the testing branch and see if you can reproduce it there?