From 8eff37b20833b3d5b0e5c98de78f253bded5131c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Jan 2018 03:27:24 +0000 Subject: Triple kbufsz default --- doc/mdevd.html | 4 ++-- src/mdevd/mdevd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/mdevd.html b/doc/mdevd.html index 0ea61bb..f5ae5ee 100644 --- a/doc/mdevd.html +++ b/doc/mdevd.html @@ -91,8 +91,8 @@ 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 65536 (which is reasonable -for average systems).
  • +too small a buffer risks losing events. The default is 196608 +(192 kB, which is on the large side for average systems).
  • -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 8671600..162a6f5 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -987,7 +987,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 = 65536 ; + unsigned int kbufsz = 196608 ; char const *slashdev = "/dev" ; PROG = "mdevd" ; { -- cgit v1.3.1