| Files | Last commit | Last update |
|---|---|---|
perf(orchestrator): use a single NBD connection per device on Linux 4.19 Each socket attached to an NBD device goes through nbd_add_socket, which freezes the device's block queue, and starting a device with more than one connection resizes its hardware queues under another freeze. The nbd netlink commands of all devices run under one kernel-wide genetlink lock, so concurrent sandbox starts queue behind these freezes. With the default of four connections, each device start goes through five of them. On Linux 4.19 a freeze is slow. On an openEuler 20.03 host (Linux 4.19.90, aarch64) with the distribution's nbd module, a userspace benchmark that connects devices through the same nbdnl calls as DirectPathMount measured about 21 ms per freeze on an idle host and 100-200 ms with sandboxes running. Concurrent connects ran one after another, and a single-connection connect took about a fifth of the time of a four-connection one. Together with the 1 ms status polling from "perf(orchestrator): stop spin-polling NBD status after connect/disconnect", the mean create time of 50 and 100 concurrent sandboxes on that host went from 4.9 s to 1.40 s and from 8.9 s to 3.17 s. Use one connection per device on 4.19 hosts, detected by a new hostkernel package. Fewer connections also mean fewer device queues; throughput under sustained parallel I/O was not compared. Other kernels keep the feature-flag value. cherry-pick merge request: perf(orchestrator): use a single NBD connection per device on Linux 4.19 6de46a85d79bc3e4968be4f62bcd15d84c4c2660 This cherry-pick merge request !240 | 30 days ago | |
perf(orchestrator): use a single NBD connection per device on Linux 4.19 Each socket attached to an NBD device goes through nbd_add_socket, which freezes the device's block queue, and starting a device with more than one connection resizes its hardware queues under another freeze. The nbd netlink commands of all devices run under one kernel-wide genetlink lock, so concurrent sandbox starts queue behind these freezes. With the default of four connections, each device start goes through five of them. On Linux 4.19 a freeze is slow. On an openEuler 20.03 host (Linux 4.19.90, aarch64) with the distribution's nbd module, a userspace benchmark that connects devices through the same nbdnl calls as DirectPathMount measured about 21 ms per freeze on an idle host and 100-200 ms with sandboxes running. Concurrent connects ran one after another, and a single-connection connect took about a fifth of the time of a four-connection one. Together with the 1 ms status polling from "perf(orchestrator): stop spin-polling NBD status after connect/disconnect", the mean create time of 50 and 100 concurrent sandboxes on that host went from 4.9 s to 1.40 s and from 8.9 s to 3.17 s. Use one connection per device on 4.19 hosts, detected by a new hostkernel package. Fewer connections also mean fewer device queues; throughput under sustained parallel I/O was not compared. Other kernels keep the feature-flag value. cherry-pick merge request: perf(orchestrator): use a single NBD connection per device on Linux 4.19 6de46a85d79bc3e4968be4f62bcd15d84c4c2660 This cherry-pick merge request !240 | 30 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 30 days ago | ||
| 30 days ago |