]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Oct 2019 11:10:36 +0000 (12:10 +0100)
commit29ee92a1512c5407b305c0b7312805c6174a3f80
tree4f6f91499ec58d6c59345b204706f118d57db8e4
parent924e18f468cbe6d4b93de8cf989b71059a9c5747
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>
(cherry picked from commit 1c6cac1acaefdf59c3265d70c8d2191c59f14652)
src/krbd.cc