diff options
author | glebius <glebius@FreeBSD.org> | 2013-09-22 13:36:52 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-09-22 13:36:52 +0000 |
commit | 12fb397079ae31a26be56507235df63d4f0ef5a3 (patch) | |
tree | 9ba162f03b1c450c6c062e63e5a94fabaeb7f2d1 /sys/i386 | |
parent | 79894c60808ab81f99811a12ec76a9cfd16ec29d (diff) | |
download | FreeBSD-src-12fb397079ae31a26be56507235df63d4f0ef5a3.zip FreeBSD-src-12fb397079ae31a26be56507235df63d4f0ef5a3.tar.gz |
- Create kern.ipc.sendfile namespace, and put the new "readhead" OID
there as "kern.ipc.sendfile.readahead".
- Push all nsfbuf related tunables into MD code. Don't move them
to new namespace in favor of POLA.
Reviewed by: scottl
Approved by: re (gjb)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/vm_machdep.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 5d62b1c..17c29fd 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -117,6 +117,18 @@ static void cpu_reset_proxy(void); static u_int cpu_reset_proxyid; static volatile u_int cpu_reset_proxy_active; #endif + +static int nsfbufs; +static int nsfbufspeak; +static int nsfbufsused; + +SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufs, CTLFLAG_RDTUN, &nsfbufs, 0, + "Maximum number of sendfile(2) sf_bufs available"); +SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufspeak, CTLFLAG_RD, &nsfbufspeak, 0, + "Number of sendfile(2) sf_bufs at peak usage"); +SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufsused, CTLFLAG_RD, &nsfbufsused, 0, + "Number of sendfile(2) sf_bufs in use"); + static void sf_buf_init(void *arg); SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL); |