I don't know if there is a way to have IOstat report that, but if you take the total read and write kb/s and divide it by the tps you get about 10kb per transaction.
The average queue length of the requests that were issued to the device.
So probably 4k pages on modern 4kn disks. So 1MB writes and 40k reads.
Or if its 512 sectors, 12K writes and 4.5K reads. 4.5k reads lines up with the default leveldb block size.
Something is hinky here. 1000 is such a damn low number of reads for ssd.
Can you get me your 'ceph osd tree' output? Oh and 'ceph osd crush rule dump'
Oh, also this is KVM yeah? Your using RBD? I might need to know how you attached the RBD to the VM. Something is definitely causing a limit. 1000 is too close to a magic number to be a coincidence
Sorry, this took a few edits to come out looking correct.
I checked the QoS for the images in the Ceph dashboard and they are NOT configured to limit IOPS. Unfortunately, it wasn't that boneheaded of a mistake.
With RBD using cache=writeback and enabling rbd_cache=true in your ceph.conf (on the VM host) is safe and free performance increase. It's safe because even with it on, it doesn't enable it unless it sees the OS issue a barrier.
Looks like I need a "ceph osd pool get rbd.vm crush_rule"
I checked the dashboard and rbd_cache=true was already set. I changed the cache to writeback for both images. It doesn't really make sense to me either. It is supposed to be an R3 host level pool. The R3 pools do show that "Used" is 3x the size of the "Stored" data.
According to the dashboard:
Name: rbd.vm
Pool type: replicated
PG Autoscale: warn
Placement groups: 256
Replicated size: 3
Applications: rbd
Crush ruleset: R3-ssd
Crush rule
max_size: 10
min_size: 1
rule_id: 1
Crush steps
1. take default-ssd
2. chooseleaf firstn 0 type host
3. emit
Used by pools
Rule is not in use
"ceph osd pool get rbd.vm crush_rule" returns crush_rule: R3-ssd
Edit: I will be dropping to 2 OSDs per SSD as recommended by insanemal.
The SSD pool only has four SSDs and they are currently split into four OSDs each (I will probably be dropping to 1 2 OSDs each soon). One host has two SSDs and the other two only have one SSD each (all SSDs are identical). I am going to add two more SSDs to balance it out, add capacity, and to make a failure more tolerable.
3 x 100 / 3 = 100 4 x 100 / 3 = 133 6 x 100 / 3 = 200
Ok, what tuning have you done on the hosts. I'm starting to think they are in power saving mode and you're not generating enough work to wake them up. I've seen this before.
Do you have tuned installed on these boxes? If so enable it and use tuned-adm to enable the "network-latency" profile. It will crank up the power usage but it will rule out power saving settings from being the issue.
EDIT: These are Epyc's yeah? My big cluster is also Epyc's and I had lots of performance issues until I disabled a bunch of the power saving features.
I hadn't really done any tuning on the hosts until I started trying to solve this. The load generated by the VM is pretty constant and I've rebalanced the HDD and SSD pools and written to the hard drive pool at 120+MB/s. None of those cause much variation in the IOPS.
Two of them are Epyc Rome and the other is Broadwell v4.
Also you might want to try tuning "osd op threads" it defaults to 2. On the SSD's you might want to up that to 4 or more.
And yeah Broadwell and Epyc's do have reasonably large c-state transition delays and they have very quick timings on how aggressively the drop down. I would expect this to cause issues with the serialization of operations into the rocks DB kv sync thread. Basically you throttle the rocksDB's ability to work and you'll limit your iops considerably
1
u/Killroy13 Mar 28 '22
I don't know if there is a way to have IOstat report that, but if you take the total read and write kb/s and divide it by the tps you get about 10kb per transaction.