ports/106806: [patch] raise buffer limit for ports/misc/team
Eugene Grosbein
eugen at grosbein.pp.ru
Sat Dec 16 11:50:26 UTC 2006
>Number: 106806
>Category: ports
>Synopsis: [patch] raise buffer limit for ports/misc/team
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 16 11:50:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD grosbein.pp.ru 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Dec 14 22:22:13 KRAT 2006 eu at grosbein.pp.ru:/mnt/home/obj/usr/local/src/sys/DADV i386
>Description:
These days 1MB buffer limit is just too low,
this multi-gigabyte hard drives, multimegabyte RAM
and even home DVD backup system needs something more
while burning output of not-so-quick dump(8) program.
Let's face it and permit using buffers upto 64MB :-)
>How-To-Repeat:
Try to run 'team 2m' (to obtain 8MB buffer).
>Fix:
--- ports/misc/team/files/patch-b.orig Sat Dec 16 18:36:08 2006
+++ ports/misc/team/files/patch-b Sat Dec 16 18:36:28 2006
@@ -1,6 +1,6 @@
---- team.c.orig Sat Jul 1 17:33:24 1995
-+++ team.c Mon Sep 1 16:13:15 2003
-@@ -58,8 +58,10 @@
+--- team.c.orig Sat Jul 1 23:33:24 1995
++++ team.c Sat Dec 16 18:34:07 2006
+@@ -58,12 +58,14 @@
upstream to it, which has much the same effect.
*/
@@ -13,6 +13,11 @@
#define TeamLBUFSZ (64) /* Low buffer size */
#define TeamDBUFSZ (60*512) /* Default buffer size */
+-#define TeamHBUFSZ (1L<<20) /* High buffer size */
++#define TeamHBUFSZ (1L<<26) /* High buffer size */
+
+ #define TeamDTEAMSZ 4 /* Default # of processes */
+ #define TeamHTEAMSZ 16 /* High # of processes */
@@ -84,11 +86,23 @@
#include <sys/file.h>
#include <sys/stat.h>
Eugene Grosbein
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list