Performance seems to take a hit when the cache is cleaning into the core. Using WO mode and ACP flushing
I am not sure whether if this is expected. Wouldn't the writes continued to hit the cache first even though the cache may be cleaning into the core at the same time ?
I am setting fsync in fio as I am trying to test the performance when using the cached device in a ceph environment (I believe ceph uses fsync for its writes?)
For example:
Baseline - fio against the cache device (Updated with the correct fio results for the device)
sda 8:0 0 838.4G 0 disk
├─sda1 8:1 0 828.4G 0 part
│ └─cas1-1 252:0 0 828.4G 0 disk
└─sda2 8:2 0 10G 0 part
sdb 8:16 0 838.4G 0 disk
├─sdb1 8:17 0 828.4G 0 part
│ └─cas1-2 252:1 0 828.4G 0 disk
└─sdb2 8:18 0 10G 0 part
sdc 8:32 0 838.4G 0 disk
├─sdc1 8:33 0 828.4G 0 part
│ └─cas1-3 252:2 0 828.4G 0 disk
└─sdc2 8:34 0 10G 0 part
sdd 8:48 0 838.4G 0 disk
├─sdd1 8:49 0 828.4G 0 part
│ └─cas1-4 252:3 0 828.4G 0 disk
└─sdd2 8:50 0 10G 0 part
sde 8:64 0 838.4G 0 disk
├─sde1 8:65 0 828.4G 0 part
│ └─cas1-5 252:4 0 828.4G 0 disk
└─sde2 8:66 0 10G 0 part
sdf 8:80 0 838.4G 0 disk
├─sdf1 8:81 0 828.4G 0 part
│ └─cas1-6 252:5 0 828.4G 0 disk
└─sdf2 8:82 0 10G 0 part
sdg 8:96 0 838.4G 0 disk
├─sdg1 8:97 0 828.4G 0 part
│ └─cas1-7 252:6 0 828.4G 0 disk
└─sdg2 8:98 0 10G 0 part
sdh 8:112 0 838.4G 0 disk
├─sdh1 8:113 0 828.4G 0 part
│ └─cas1-8 252:7 0 828.4G 0 disk
└─sdh2 8:114 0 10G 0 part
nvme0n1 259:0 0 447.1G 0 disk
├─nvme0n1p1 259:1 0 285M 0 part /boot/efi
├─nvme0n1p2 259:2 0 18.6G 0 part /
└─nvme0n1p3 259:3 0 428.2G 0 part
casadm -L
# casadm -L
type id disk status write policy device
cache 1 /dev/nvme0n1p3 Running wo -
+core 1 /dev/sda1 Active - /dev/cas1-1
+core 2 /dev/sdb1 Active - /dev/cas1-2
+core 3 /dev/sdc1 Active - /dev/cas1-3
+core 4 /dev/sdd1 Active - /dev/cas1-4
+core 5 /dev/sde1 Active - /dev/cas1-5
+core 6 /dev/sdf1 Active - /dev/cas1-6
+core 7 /dev/sdg1 Active - /dev/cas1-7
+core 8 /dev/sdh1 Active - /dev/cas1-8
Question
Performance seems to take a hit when the cache is cleaning into the core. Using WO mode and ACP flushing
I am not sure whether if this is expected. Wouldn't the writes continued to hit the cache first even though the cache may be cleaning into the core at the same time ?
I am setting fsync in fio as I am trying to test the performance when using the cached device in a ceph environment (I believe ceph uses fsync for its writes?)
For example:
Baseline - fio against the cache device (Updated with the correct fio results for the device)
Performing simultaneous fio on /dev/cas1-1
Performing simultaneous fio on /dev/cas1-2
Performing simultaneous fio on /dev/cas1-3
Observed iostat (Constant writes into sda)
Your Environment
4.15.0-154-generic #161-Ubuntu
fio_jobfile
lsblk
casadm -L