Patch: lwbuf page limits

看板DFBSD_kernel作者時間16年前 (2010/03/27 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--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&#39;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--
文章代碼(AID): #1BhI2Izs (DFBSD_kernel)