summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authormohans <mohans@FreeBSD.org>2007-10-12 03:56:27 +0000
committermohans <mohans@FreeBSD.org>2007-10-12 03:56:27 +0000
commit11057bb00f9f3b774ef74c31ebed91a17cb02a2b (patch)
treef34b01cf15801e9a776d59231a8e65de164c98d1 /sys/kern/uipc_sockbuf.c
parente279fe58cfce32d714c22d04c3909696223222a2 (diff)
downloadFreeBSD-src-11057bb00f9f3b774ef74c31ebed91a17cb02a2b.zip
FreeBSD-src-11057bb00f9f3b774ef74c31ebed91a17cb02a2b.tar.gz
Set the NFS server sockbuf high watermarks to the system defaults
(up form 32KB). The low highwatermark setting caused UDP fullsock request drops, throttling thruput greatly. Reported by: Kris Kennaway Approved by: re@ (Ken Smith)
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 1b1e271..e1fc341 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -60,8 +60,8 @@ void (*aio_swake)(struct socket *, struct sockbuf *);
*/
u_long sb_max = SB_MAX;
-static u_long sb_max_adj =
- SB_MAX * MCLBYTES / (MSIZE + MCLBYTES); /* adjusted sb_max */
+u_long sb_max_adj =
+ SB_MAX * MCLBYTES / (MSIZE + MCLBYTES); /* adjusted sb_max */
static u_long sb_efficiency = 8; /* parameter for sbreserve() */
OpenPOWER on IntegriCloud