Date: Fri, 27 Dec 2013 14:41:32 -0800 From: Adrian Chadd <adrian@freebsd.org> To: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Default knote hash table size is too .. small Message-ID: <CAJ-VmomteHhbNv2pLX1cma74hExbtQKhxiRd3D653abneuJwhg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, The default knote hash table size (KN_HASHSIZE) is 64. When doing dirty things with lots of sockets (say, 64k and more) that involve plenty of knote insert/remove (ie, oneshot events - think posix AIO and my upcoming kqueue sendfile notification stuff) it consumes stupid amounts of CPU. I'd like to make this a tunable so people like Adrian at Netflix can bump this to higher values (say 32k) but people like Adrian at Embedded can bump this to lower values (say 64.) Comments? I'll make the change soon if no-one objects. Thanks, -a
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomteHhbNv2pLX1cma74hExbtQKhxiRd3D653abneuJwhg>