diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-01-15 03:27:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-01-15 03:27:24 +0000 |
commit | 8eff37b20833b3d5b0e5c98de78f253bded5131c (patch) | |
tree | 006e410c737b73d1a92676b4e8f508680b9b1e8c | |
parent | b30c1450a8477f6a3fc23a1bbd1768831f7321fb (diff) | |
download | mdevd-8eff37b20833b3d5b0e5c98de78f253bded5131c.tar.xz |
Triple kbufsz default
-rw-r--r-- | doc/mdevd.html | 4 | ||||
-rw-r--r-- | 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</a>. <em>notif</em> cannot be lesser than 3. If this option is not given, no readiness notification is sent. </li> <li> <tt>-b</tt> <em>kbufsz</em> : try and reserve a kernel buffer of <em>kbufsz</em> 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). </li> +too small a buffer risks losing events. The default is 196608 +(192 kB, which is on the large side for average systems). </li> <li> <tt>-n</tt> : 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. </li> 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" ; { |