diff options
author | dyson <dyson@FreeBSD.org> | 1995-08-31 01:39:31 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1995-08-31 01:39:31 +0000 |
commit | a752352fe75980af72d15bb56b523736d0019c23 (patch) | |
tree | 6310786753a083a61be1cd328c0c615e4031377a /sys/kern/uipc_usrreq.c | |
parent | 9660571b5f90fa1338411e3629e5c6119fd06e42 (diff) | |
download | FreeBSD-src-a752352fe75980af72d15bb56b523736d0019c23.zip FreeBSD-src-a752352fe75980af72d15bb56b523736d0019c23.tar.gz |
Increase the size of the pipe buffer as denoted by PIPSIZ from
4k to 8k. This has a significant effect on the pipe performance. In
the future it might be good to increase this to 16k. PIPSIZ is now
tunable for experimentation.
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 91245c1..9e83333 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 - * $Id: uipc_usrreq.c,v 1.10 1995/08/08 02:22:16 davidg Exp $ + * $Id: uipc_usrreq.c,v 1.11 1995/08/16 16:13:27 bde Exp $ */ #include <sys/param.h> @@ -333,7 +333,9 @@ release: * and don't really want to reserve the sendspace. Their recvspace should * be large enough for at least one max-size datagram plus address. */ -#define PIPSIZ 4096 +#ifndef PIPSIZ +#define PIPSIZ 8192 +#endif u_long unpst_sendspace = PIPSIZ; u_long unpst_recvspace = PIPSIZ; u_long unpdg_sendspace = 2*1024; /* really max datagram size */ |