]> git-server-git.apps.pok.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)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 Nov 2019 11:43:20 +0000 (12:43 +0100)
commit1e0a4d2a5a5f8f088cfb3c0a16ae36c5b6902ee8
tree739419ab9b6664335d27e9194a6a0732bc0b4b36
parent9af0c7351facfd9b60e12c435b439a7dd54e7703
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)

Conflicts:
src/krbd.cc [ trivial context ]
src/krbd.cc