summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-07-13 22:52:50 +0000
committerdyson <dyson@FreeBSD.org>1996-07-13 22:52:50 +0000
commit49cbb2bcfc3ba7cf6685fc91c0bced5bb2ce69e8 (patch)
tree2371ac9cf5eef8135b704b3a7940c15d7e3fd87e /sys/sys
parentdd36926d570838b0f4086a79308586ddc87eeda9 (diff)
downloadFreeBSD-src-49cbb2bcfc3ba7cf6685fc91c0bced5bb2ce69e8.zip
FreeBSD-src-49cbb2bcfc3ba7cf6685fc91c0bced5bb2ce69e8.tar.gz
A few minor mods (improvements) to support more efficient pipe
operations for large transfers. There are essentially no differences for small transfers, but big transfers should perform about 20% better.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/pipe.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h
index a7e83ff..764f1f7 100644
--- a/sys/sys/pipe.h
+++ b/sys/sys/pipe.h
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: pipe.h,v 1.4 1996/05/01 04:18:20 bde Exp $
+ * $Id: pipe.h,v 1.5 1996/07/12 05:44:30 bde Exp $
*/
#ifndef _SYS_PIPE_H_
@@ -40,6 +40,10 @@
#define PIPE_SIZE 16384
#endif
+#ifndef BIG_PIPE_SIZE
+#define BIG_PIPE_SIZE (64*1024)
+#endif
+
/*
* PIPE_MINDIRECT MUST be smaller than PIPE_SIZE and MUST be bigger
* than PIPE_BUF.
@@ -48,7 +52,7 @@
#define PIPE_MINDIRECT 8192
#endif
-#define PIPENPAGES (PIPE_SIZE / PAGE_SIZE + 1)
+#define PIPENPAGES (BIG_PIPE_SIZE / PAGE_SIZE + 1)
/*
* Pipe buffer information.
OpenPOWER on IntegriCloud