ports/61717: new port: benchmarks/forkbomb

Radim Kolar hsn at netmag.cz
Thu Jan 22 11:50:23 UTC 2004


>Number:         61717
>Category:       ports
>Synopsis:       new port: benchmarks/forkbomb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 22 03:50:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
Sanatana Dharma
>Environment:
System: FreeBSD asura.bsd 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Thu Jan 15 18:35:03 CET 2004 root at asura.bsd:/usr/obj/usr/src/sys/GENERIC i386

>Description:
I am sending a port of my program forkbomb. When playing with this prog
i have found that freebsd has weak realloc() implementation and submited
bugreport about it yesterday. I hope that some kern developer will look at it
and he can use this program for realloc() testing. Classic fork() bomb
do not cause any problems on FreeBSD.
	
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	forkbomb
#	forkbomb/Makefile
#	forkbomb/distinfo
#	forkbomb/pkg-plist
#	forkbomb/pkg-descr
#
echo c - forkbomb
mkdir -p forkbomb > /dev/null 2>&1
echo x - forkbomb/Makefile
sed 's/^X//' >forkbomb/Makefile << 'END-of-forkbomb/Makefile'
X# New ports collection makefile for:	forkbomb
X# Date created:		21 Jan 2004
X# Whom:			Radim Kolar
X#
X# $FreeBSD$
X#
X
XPORTNAME=	forkbomb
XPORTVERSION=	1.0
XCATEGORIES=	benchmarks
XMASTER_SITES=	${MASTER_SITE_SUNSITE}
XMASTER_SITE_SUBDIR=	system/benchmark
X
XMAINTAINER=	hsn at netmag.cz
XCOMMENT=	System stres testing tool
X
XUSE_GETOPT_LONG=yes
XMAN8=		forkbomb.8
X
X.include <bsd.port.mk>
END-of-forkbomb/Makefile
echo x - forkbomb/distinfo
sed 's/^X//' >forkbomb/distinfo << 'END-of-forkbomb/distinfo'
XMD5 (forkbomb-1.0.tar.gz) = 9419b7740fab3e36e2b275c931363b41
END-of-forkbomb/distinfo
echo x - forkbomb/pkg-plist
sed 's/^X//' >forkbomb/pkg-plist << 'END-of-forkbomb/pkg-plist'
Xsbin/forkbomb
END-of-forkbomb/pkg-plist
echo x - forkbomb/pkg-descr
sed 's/^X//' >forkbomb/pkg-descr << 'END-of-forkbomb/pkg-descr'
Xforkbomb is tool for stres testing. It can create many processes using fork(),
Xeats all available memory using realloc() and access this memory. It has
Xdifferent switches for fine-tuning operation. While classic fork() bomb is good
Xonly for fun, running multiple memory-eaters can be usefull for determining
Xmaximum memory which can be given to servers (bind or squid) without taking
Xmachine down.  You can test different operation systems with this tool and see
Xhow they are handling the load.
X
XTesting using this tool shows:
X  Linux 2.4 crashes on fork(), memory leak in kernel?
X  very good fork() resistance of FreeBSD
X  serious troubles in FreeBSD realloc().
X
XWWW: http://home.worldonline.cz/~cz210552/forkbomb.html
END-of-forkbomb/pkg-descr
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list