Patch: lwbuf page limits
--001636e1edbb5d06850482ba2ad7
Content-Type: text/plain; charset=UTF-8
Hi,
This patch adds a sysctl (kern.ipc.lwbuf_max_pages), a per-CPU limit on the
number of pages of KVA that can be allocated by lwbufs. It is currently set
at 8MB. It'd be nice for lwbuf_alloc to not keep requesting pages from the
system; in a test, I got a webserver to hit a 256 page limit fairly readily,
serving tarballs of /usr/src, to a few (4) clients concurrently.
http://endeavour.zapto.org/dfly/lwbuf_limit4.diff
-- vs
--001636e1edbb5d06850482ba2ad7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,<div><br></div><div>This patch adds a sysctl (kern.ipc.lwbuf_max_pages),=
a per-CPU limit on the number of pages of KVA that can be allocated by lwb=
ufs. It is currently set at 8MB. It'd be nice for lwbuf_alloc to not ke=
ep requesting pages from the system; in a test, I got a webserver to hit a =
256 page limit fairly readily, serving tarballs of /usr/src, to a few (4) c=
lients concurrently.=C2=A0</div>
<div><br></div><div><a href=3D"http://endeavour.zapto.org/dfly/lwbuf_limit4=
..diff">http://endeavour.zapto.org/dfly/lwbuf_limit4.diff</a><br clear=3D"al=
l"><br></div><div>-- vs<br>
</div>
--001636e1edbb5d06850482ba2ad7--