From 1a25a5ae57ab9620df1596c83cb1ea2897be9279 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 16 Jan 2018 00:22:38 +0000 Subject: Increase default kbufsz again, to 500 kB --- doc/mdevd.html | 5 +++-- src/mdevd/mdevd.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/mdevd.html b/doc/mdevd.html index 55d1456..1a271c5 100644 --- a/doc/mdevd.html +++ b/doc/mdevd.html @@ -91,8 +91,9 @@ readiness. notif cannot be lesser than 3. If this option is not given, no readiness notification is sent.
  • -b kbufsz : try and reserve a kernel buffer of kbufsz bytes for the netlink queue. Too large a buffer wastes kernel memory; -too small a buffer risks losing events. The default is 196608 -(192 kB, which is on the large side for average systems).
  • +too small a buffer risks losing events. The default is 500 kB, which should be +enough for most systems; if you're getting "No buffer space available" errors +from mdevd at coldplug time, try increasing this number.
  • -n : dry run. mdevd will not create or delete device nodes, and it will not spawn commands. Instead, it will print to stdout the actions it would have performed.
  • diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index ed83384..54e5cf6 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -990,7 +990,7 @@ int main (int argc, char const *const *argv) char const *configfile = "/etc/mdev.conf" ; iopause_fd x[2] = { { .events = IOPAUSE_READ }, { .events = IOPAUSE_READ } } ; unsigned int notif = 0 ; - unsigned int kbufsz = 196608 ; + unsigned int kbufsz = 512288 ; char const *slashdev = "/dev" ; PROG = "mdevd" ; { -- cgit v1.3.1