Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2006 18:46:06 +0700 (KRAT)
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        joerg@FreeBSD.org
Subject:   ports/106806: [patch] raise buffer limit for ports/misc/team
Message-ID:  <200612161146.kBGBk6ok007121@grosbein.pp.ru>
Resent-Message-ID: <200612161150.kBGBoF1I000107@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612161146.kBGBk6ok007121>