mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
A distributed benchmarking system for TCP networks.
This commit is contained in:
parent
3412dccd60
commit
3f018c354e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=12246
11 changed files with 203 additions and 0 deletions
34
benchmarks/dbs/Makefile
Normal file
34
benchmarks/dbs/Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# New ports collection makefile for: dbs
|
||||
# Version required: 1.1.5
|
||||
# Date created: 1 August 1998
|
||||
# Whom: jkoshy
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= dbs-1.1.5
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= http://shika.aist-nara.ac.jp/member/yukio-m/dbs/software1.1.5/
|
||||
|
||||
MAINTAINER= jkoshy@freebsd.org
|
||||
|
||||
DOCDIR= ${PREFIX}/share/doc/dbs/
|
||||
DOCS= dbs.man dbs.man.jis dbs_paper.ps Copyright
|
||||
EXDIR= ${PREFIX}/share/examples/dbs/
|
||||
EXS= TCP2.cmd TCPvsMPEG.cmd
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC}/src; ${MAKE} dir
|
||||
cd ${WRKSRC}/obj/${OPSYS}; ${MAKE} ${ALL_TARGET} PREFIX=${PREFIX}
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}/obj/${OPSYS}; ${MAKE} ${INSTALL_TARGET} PREFIX=${PREFIX}
|
||||
strip ${PREFIX}/bin/dbsc ${PREFIX}/bin/dbsd
|
||||
${MKDIR} ${EXDIR}
|
||||
cd ${WRKSRC}/sample; ${CP} -p ${EXS} ${EXDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCDIR}
|
||||
cd ${WRKSRC}/doc; ${CP} -p ${DOCS} ${DOCDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
benchmarks/dbs/distinfo
Normal file
1
benchmarks/dbs/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (dbs-1.1.5.tar.gz) = 9939acd3450393e03127b6885cfb646d
|
33
benchmarks/dbs/files/patch-aa
Normal file
33
benchmarks/dbs/files/patch-aa
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- src/Makefile-- Sat Aug 1 19:13:01 1998
|
||||
+++ src/Makefile Sat Aug 1 19:44:49 1998
|
||||
@@ -27,10 +27,10 @@
|
||||
# make install
|
||||
#
|
||||
|
||||
-BIN =/usr/local/etc
|
||||
+BIN = ${PREFIX}/bin
|
||||
|
||||
#CC =gcc
|
||||
-CFLAGS =-O
|
||||
+CFLAGS =-O -DHAVE_SYS_PARAM_H
|
||||
|
||||
#CFLAGS =-g # debug
|
||||
#CFLAGS =-g -DDEBUGMODE
|
||||
@@ -51,7 +51,7 @@
|
||||
obj::
|
||||
(cd ../obj/$(UNAME); make)
|
||||
|
||||
-UNAME = `uname|tr -d '/'``uname -r|tr -d '/'`
|
||||
+UNAME = `uname|tr -d '/'`
|
||||
dir::
|
||||
-@ mkdir ../obj
|
||||
-@ mkdir ../obj/$(UNAME)
|
||||
@@ -74,7 +74,7 @@
|
||||
etags *.c *.h
|
||||
|
||||
install::
|
||||
- cp -p dbsc dbsd ../script/dbs_view $(BIN)
|
||||
+ cp -p dbsc dbsd ../../script/dbs_view $(BIN)
|
||||
|
||||
dbsc: dbsc.o scan.o dbs.o
|
||||
$(CC) $(BSTATIC) dbsc.o scan.o dbs.o -o $@ -lm $(LDFLAGS)
|
22
benchmarks/dbs/files/patch-ab
Normal file
22
benchmarks/dbs/files/patch-ab
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- src/dbsc.c-- Mon Jun 8 00:23:35 1998
|
||||
+++ src/dbsc.c Sat Aug 1 19:29:49 1998
|
||||
@@ -51,6 +51,10 @@
|
||||
|
||||
#define DBSC
|
||||
|
||||
+#ifdef HAVE_SYS_PARAM_H
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -69,7 +73,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
|
||||
-#if !defined(bsdi)
|
||||
+#if (!defined(BSD) || (BSD < 199306))
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
21
benchmarks/dbs/files/patch-ac
Normal file
21
benchmarks/dbs/files/patch-ac
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- src/dbsd.c-- Mon Jun 8 00:23:26 1998
|
||||
+++ src/dbsd.c Sat Aug 1 19:29:15 1998
|
||||
@@ -51,6 +51,9 @@
|
||||
|
||||
#define DBSD
|
||||
|
||||
+#ifdef HAVE_SYS_PARAM_H
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -80,7 +83,7 @@
|
||||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
-#if !defined(bsdi)
|
||||
+#if (!defined(BSD) || (BSD < 199306))
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
22
benchmarks/dbs/files/patch-ad
Normal file
22
benchmarks/dbs/files/patch-ad
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- src/scan.c-- Fri Jul 11 00:54:12 1997
|
||||
+++ src/scan.c Sat Aug 1 19:33:34 1998
|
||||
@@ -49,6 +49,9 @@
|
||||
* $Author: yukio-m $
|
||||
*****************************************************************/
|
||||
|
||||
+#ifdef HAVE_SYS_PARAM_H
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
|
||||
@@ -58,7 +61,8 @@
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
-#if !defined(bsdi)
|
||||
+#if (!defined(BSD) || (BSD < 199306))
|
||||
+#error BSD
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
35
benchmarks/dbs/files/patch-ae
Normal file
35
benchmarks/dbs/files/patch-ae
Normal file
|
@ -0,0 +1,35 @@
|
|||
--- src/sendrecv.c-- Mon Oct 13 03:27:19 1997
|
||||
+++ src/sendrecv.c Sat Aug 1 19:37:02 1998
|
||||
@@ -70,12 +70,12 @@
|
||||
#define INIT_RECORD() (rdp = rd->d, rd->n=0)
|
||||
#define INIT_RECORD2() (rdp2 = rd2->d, rd2->n=0)
|
||||
|
||||
-#define RECORD(NO,SIZE) (gettimeofday(&(rdp->tv), &tzp),\
|
||||
+#define RECORD(NO,SIZE) (gettimeofday(&(rdp->tv), (struct timezone *)&tzp),\
|
||||
rdp->packet_no = (NO),\
|
||||
rdp->packet_size = (SIZE),\
|
||||
rdp++, rd->n++)
|
||||
|
||||
-#define RECORD2(NO,SIZE) (gettimeofday(&(rdp2->tv), &tzp),\
|
||||
+#define RECORD2(NO,SIZE) (gettimeofday(&(rdp2->tv), (struct timezone *)&tzp),\
|
||||
rdp2->packet_no = (NO),\
|
||||
rdp2->packet_size = (SIZE),\
|
||||
rdp2++, rd2->n++)
|
||||
@@ -87,7 +87,7 @@
|
||||
_TP1.tv_usec %= 1000000;\
|
||||
}
|
||||
|
||||
-#define GETTIMEOFDAY(_TPP) gettimeofday(&tp, &tzp);\
|
||||
+#define GETTIMEOFDAY(_TPP) gettimeofday(&tp, (struct timezone *)&tzp);\
|
||||
tp.tv_sec = _TPP.tv_sec - tp.tv_sec;\
|
||||
tp.tv_usec = _TPP.tv_usec - tp.tv_usec;\
|
||||
if (tp.tv_usec < 0) {\
|
||||
@@ -108,7 +108,7 @@
|
||||
USLEEP(tp);
|
||||
|
||||
/* before 0.00001s */
|
||||
-#define WAIT_BEFORE(_TPP) gettimeofday(&tp, &tzp);\
|
||||
+#define WAIT_BEFORE(_TPP) gettimeofday(&tp, (struct timezone *) &tzp);\
|
||||
tp.tv_sec = _TPP.tv_sec - tp.tv_sec;\
|
||||
tp.tv_usec = _TPP.tv_usec - tp.tv_usec - 1000;\
|
||||
if (tp.tv_usec < 0) {\
|
12
benchmarks/dbs/files/patch-af
Normal file
12
benchmarks/dbs/files/patch-af
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- script/dbs_view-- Fri Jul 11 00:53:57 1997
|
||||
+++ script/dbs_view Sat Aug 1 20:44:46 1998
|
||||
@@ -1,7 +1,7 @@
|
||||
-#!/usr/local/bin/perl
|
||||
-#!/usr/local/bin/perl -d
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/perl -d
|
||||
+#!/usr/local/bin/perl
|
||||
+#!/usr/local/bin/perl -d
|
||||
|
||||
######################################################################
|
||||
# DBS: Distributed Benchmark System
|
1
benchmarks/dbs/pkg-comment
Normal file
1
benchmarks/dbs/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A distributed network benchmarking system.
|
11
benchmarks/dbs/pkg-descr
Normal file
11
benchmarks/dbs/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
DBS is a useful tool chest for evaluating TCP implementations, specifically
|
||||
flow control, retransmission control and congestion avoidance.
|
||||
|
||||
-It can treat multiple TCP connections spanning multiple hosts
|
||||
simultaneously, and
|
||||
-It has the capability of measuring the changes of application
|
||||
level throughput at every data transmission.
|
||||
|
||||
URL: http://shika.aist-nara.ac.jp/member/yukio-m/dbs
|
||||
|
||||
- Koshy
|
11
benchmarks/dbs/pkg-plist
Normal file
11
benchmarks/dbs/pkg-plist
Normal file
|
@ -0,0 +1,11 @@
|
|||
bin/dbs_view
|
||||
bin/dbsc
|
||||
bin/dbsd
|
||||
share/doc/dbs/Copyright
|
||||
share/doc/dbs/dbs.man
|
||||
share/doc/dbs/dbs.man.jis
|
||||
share/doc/dbs/dbs_paper.ps
|
||||
share/examples/dbs/TCP2.cmd
|
||||
share/examples/dbs/TCPvsMPEG.cmd
|
||||
@dirrm share/doc/dbs
|
||||
@dirrm share/examples/dbs
|
Loading…
Add table
Reference in a new issue