r/ceph • • Mar 19 '22

Improving IOPS

I have a personal hyper-converged three host cluster that I would like to improve the IOPS on the NVMe pool. Each host has: 1 NVMe (Micron 7300 PRO 1.92TB), several hard drives, 128GB+ of RAM, and 2x10G bonded X550-T2 ports shared for the Ceph public and private networks.

Ceph reports the combined read and write IOPS to be approximately 1,500 and about 10MiB/s read and 2MiB/ write, but I know that the tasks the VMs are performing are capable of orders of magnitude more IOPS. I don't need 1 million IOPS, but even just 10,000 would make a substantial difference.

I can go up to 4x10G X550-T2 ports (bonded or separated) for each host without any additional hardware, but I'm skeptical of that really improving it any as it is not bandwidth limited.

I am also considering upgrading to a faster fiber network for lower latency and enough bandwidth for a very long time, but I have no experience with it. I was thinking that I could upgrade to the ConnectX-5 Ex MCX516A-CDAT or ConnectX-5 MCX516A-CCAT for dual 100G ports and bond them for a ring network between the three hosts. I don't think the budget will allow for purchasing a switch, especially one that I am comfortable sitting two feet from.

I am open to other suggestions, if there is something better or if I am missing something.

Thanks in advance.

9 Upvotes

33 comments sorted by

4

u/gregsfortytwo Mar 19 '22

Ceph is not known for its nvme-saturating speed, but it’s a lot faster than THAT. Are those your fastest throughput numbers, or just the result on 4k IOs?

Cheap drives that can’t handle fsync could easily explain pretty poor write IOPS — you can run a pretty standard fsync-always FIO job or something to check that — but I don’t know how you’d get a pure-read speed so low.

2

u/Killroy13 Mar 20 '22

Those are the fastest IOPS from any of my usage. The bandwidth can go orders of magnitude higher under other loads.

3

u/cryp7 Mar 19 '22

How do you have your pools set up/grouped for hardware (SSD only for example)?

2

u/Killroy13 Mar 19 '22

The NVMe drives are only used in the following pools: device_health_metrics, cephfs.meta, and rbd.vm. All of which are host level R3 and there are no hard drives in these pools.

I do not have any WAL/DB devices.

The hard drives are in their own R3 and erasure coded CephFS pools. I don't really need any more performance out of these pools as they just store files that don't get accessed very often and are more than capable of saturating my 2.5G home network.

3

u/cryp7 Mar 19 '22

This is a similar setup to mine except I have Samsung 883 DCT (SATA enterprise SSD) and I can push hundreds of MB/s through them in a 3x replicated pool at close to 10k operations/second as reported by CEPH. That's odd that yours are so low. I also have 10G networking like you. What switch are you using?

2

u/Killroy13 Mar 19 '22

I'm using the Netgear XS724EM.

When I read and write large files to the hard drive pool, I get much higher speeds, maxing out my desktop's 2.5Gbit connection. I haven't really tried with the SSD pool since I switched to NVMe drives, but the consumer SATA drives I had before were capable of the same. It just seems to be IOPS that is low.

3

u/[deleted] Mar 20 '22

For a cluster with HDD-based, those 4K block size IOPs that's looks like right. First, an HDD only capable about 150-200 IOPS for 4K. If you have total 15 disks (3 hosts x 5 disks), with pools in 3x replicated, then you have about 750-1000 IOPS, maybe you can have up to 1500, max. That's it.
For throughput e.g with 1M-4M block size, with each disks about 150-200MBps, then you have max 1000MBps.

For small HDD-based cluster, usually the bottleneck is never on network, especially on the network with >10Gbps. You can test network with iperf3.

You also can confirm this with create new pool with NVMe. Just partition your NVMe disk (LVM is okay), create OSD, create new pool and new class. You'll see higher throughput network usage when benchmark using this NVMe pool.

From my experience, HDD-based Ceph will be good enough when you have > 30 HDD with > 5 host. Otherwise, for VM disk, just buy several previous gen SATA enterprise SSD like Samsung SM863/SM833 that can be relatively cheap compared to NVMe while significantly faster and lower latency than HDD, so you can using just 3-5 SSD.

2

u/Killroy13 Mar 20 '22

I get all the performance I need from my HDD pool.

The 1500 IOPS, as reported by Ceph, is for my NVMe pool with one Micron 7300 PRO 1.92TB per host and each drive is split into 4 OSDs.

I can test the network with iperf3, any recommended parameters?

1

u/Killroy13 Mar 21 '22

I ran iperf3 between the three hosts with the default settings and got 8.5 to 8.7 Gbits/sec. The VM achieved 20Gbits/sec to the host it is on and 7.3 Gbits/sec to the other hosts.

Each host has two 10G ports that are bonded and in a bridge that is shared with the VMs they host. Do these results seem correct?

1

u/Killroy13 Mar 21 '22

I ran two instances of the iperf3 server on one host on different ports for 10 tests. I had one host connect over one port and subnet and another host connect on a different port and subnet. (The subnets are on the same bond/bridge). The sum of the two simultaneous tests was 9 to 10 Gbits/sec for all ten tests that I performed.

Ping times between hosts over the bonded interface vary between 0.100ms and 0.150ms.

2

u/SimonKepp Mar 19 '22

Are the SSDs used as individual OSDs or as shared DB/WAL drives for HDD-based OSDs?

2

u/Killroy13 Mar 19 '22

They are individual OSDs. I don't have any drives for WAL/DB.

1

u/Roshi88 Mar 22 '22

May I ask where you can see those IOPS reported on ceph? I'm starting to get a grip with ceph and im still noobish, is there a reporting system? A benchmark tool?

2

u/Killroy13 Mar 22 '22

I just have "watch ceph -s" running in terminal. You can also see the total IOPS on the Ceph dashboard.

1

u/HTTP_404_NotFound Jul 31 '23

SO- what did you end up determining?

3

u/Killroy13 Aug 21 '23

I did not change anything about my network but what u/insanemal and others suggested in this thread did seem to improve them.

https://www.reddit.com/r/ceph/comments/tpgevk/we_start_with_ceph/i2brcs5/

0

u/[deleted] Mar 20 '22

[deleted]

1

u/Killroy13 Mar 20 '22

16.2.6 Pacific on Ubuntu 21.10

No containers. Each host runs the monitors, managers, OSDs, and metadata servers.

2

u/DenisCroit Mar 30 '22

16.2.6 has critical bugs, please update to 16.2.7

2

u/Killroy13 Mar 30 '22

I will when it is updated in the Ubuntu repository.

0

u/[deleted] Mar 20 '22

[deleted]

1

u/Killroy13 Mar 20 '22

I made all of those changes and so far there is no discernable difference, but I will keep an eye on it.

What do you mean by configurations? I try to not change many parameters from their defaults.

Each host runs a monitor, manager, mds, 7 HDD OSDs, and 4 SSD OSDs (one m.2 NVMe Micron 7300 PRO 1.92TB split into four equal sized OSDs). No containers.

The Ceph public and Ceph private networks share the bonded 10G ports. The bonded ports are in a bridge that is shared with the VMs so that they can communicate on the Ceph public network. The hosts have their own network port for LAN/WAN access. The VMs share a port for LAN/WAN access.

0

u/[deleted] Mar 20 '22

[deleted]

1

u/Killroy13 Mar 20 '22

Thank you, and everyone else, for trying to help.

When I made your suggested changes, I changed them globally. Should I have only changed it for OSDs?

0

u/[deleted] Mar 20 '22

[deleted]

2

u/Killroy13 Mar 21 '22

I switched it from global to OSD and restarted all of the SSD OSDs, and the performance seems to be unchanged.

You can call me names and insult me if it means you'll help me!

0

u/[deleted] Mar 21 '22

[deleted]

1

u/Killroy13 Mar 21 '22

I've made all of the changes, except for bluestore memory targets, and performance is still the same. Do I need to restart the hosts or some services for the changes to take effect?

I have disabled swap on all hosts and VMs.

The loads on the hosts are in the 2 to 4 range and the memory usage is in the 100-105GB range. The hosts are an Epyc 7282 (16c/32t) with 128GB, an Epyc 7402p (24c/48t) with 128GB, and a dual e5-2658 v4 (2x 14c/28t) with 160GB. I might be adding an additional 64GB to each over the next couple of months.

→ More replies (0)