]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
krbd: increase udev netlink socket receive buffer to 2M
authorIlya Dryomov <idryomov@gmail.com>
Mon, 14 Oct 2019 10:40:43 +0000 (12:40 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 18 Oct 2019 19:55:56 +0000 (21:55 +0200)
commit1c6cac1acaefdf59c3265d70c8d2191c59f14652
tree3eb7ef97649d8003e68b5a6d53d3df2f1b011ed4
parent5444a1111523bc100bea60958b2671674f6208ac
krbd: increase udev netlink socket receive buffer to 2M

Even though with the previous commit we no longer block between binding
the socket and starting handling events, we still want a larger receive
buffer to accommodate for scheduling delays.  Since the filtering is
done in the listener, an estimate focused on just rbd is not accurate,
but anyway: a pair of "rbd" and "block" events for "rbd map" take 2048
bytes in the receive buffer.  This allows for roughly a thousand of
them ("rbd map" and "rbd unmap" require root and libudev makes use of
SO_RCVBUFFORCE so rmem_max limit is ignored).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/krbd.cc