ports/186108: New port: benchmarks/ramspeed a cache and memory benchmarking tool

Martin Kammerhofer mkamm at gmx.net
Sat Jan 25 20:40:02 UTC 2014


>Number:         186108
>Category:       ports
>Synopsis:       New port: benchmarks/ramspeed a cache and memory benchmarking tool
>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 Jan 25 20:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        10.0-RELEASE
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	ramspeed
#	ramspeed/Makefile
#	ramspeed/pkg-descr
#	ramspeed/distinfo
#	ramspeed/files
#	ramspeed/files/patch-build.sh
#
echo c - ramspeed
mkdir -p ramspeed > /dev/null 2>&1
echo x - ramspeed/Makefile
sed 's/^X//' >ramspeed/Makefile << '4e79c774fdc6512f184b4b176967e2bd'
X# $FreeBSD$
X
XPORTNAME=	ramspeed
XPORTVERSION=	3.5.0
XCATEGORIES=	benchmarks
XMASTER_SITES=	http://www.alasir.com/software/ramspeed/
XDISTNAME=	ramsmp-${PORTVERSION}
X
XMAINTAINER=	mkamm at gmx.net
XCOMMENT=	A cache and memory benchmarking tool
X
XNO_CDROM=	do not sell for money
XLICENSE_NAME=	Alasir Licence
XLICENSE_FILE=	LICENCE
XLICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell
X
XPLIST_FILES=	bin/ramspeed
XPORTDOCS=	HISTORY LICENCE README
X
Xdo-build:
X	cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.sh
X
Xdo-install:
X	( cd ${INSTALL_WRKSRC} \
X	&& ${INSTALL_PROGRAM} ramsmp ${STAGEDIR}${PREFIX}/bin/ramspeed \
X	&& ${MKDIR} ${STAGEDIR}${DOCSDIR} \
X	&& for f in ${PORTDOCS}; do \
X	${INSTALL_DATA} $$f ${STAGEDIR}${DOCSDIR}; done )
X
X.include <bsd.port.mk>
4e79c774fdc6512f184b4b176967e2bd
echo x - ramspeed/pkg-descr
sed 's/^X//' >ramspeed/pkg-descr << 'f99d13988f53fa9c3bdabc0dbdfb1b1a'
XRAMspeed is a command line utility to measure cache and memory performance of
Xcomputer systems. It offers 18 cache and memory benchmarks for i386 and amd64
Xmachines, though 6 only for alpha ones. There are *mark benchmarks such as
XINTmark, FLOATmark, MMXmark and SSEmark. They operate with linear (sequential)
Xdata streams passed through ALU, FPU, MMX and SSE units respectively.
XThere are also *mem benchmarks such as INTmem, FLOATmem, MMXmem and SSEmem.
XThese are supposed to illustrate how fast is actual read/write memory
Xperformance. There are also non-temporal versions of MMX and SSE benchmarks.
XThey have been coded with special instructions to minimise cache pollution on
Xmemory reads and to eliminate it completely on memory writes. In addition, they
Xoperate with a built in aggressive data prefetching algorithm. In some cases,
Xnon-temporal MMXmark and SSEmark can deliver almost 100% of theoretical
Xbandwidth while reading. 
X
XWWW: http://alasir.com/software/ramspeed/
f99d13988f53fa9c3bdabc0dbdfb1b1a
echo x - ramspeed/distinfo
sed 's/^X//' >ramspeed/distinfo << '7511ed4eb953da9b5b916470123083d7'
XSHA256 (ramsmp-3.5.0.tar.gz) = 39fb15493fb3c293575746d56f6ab9faaa1d876d8b1f0d8e5a4042d2ace95839
XSIZE (ramsmp-3.5.0.tar.gz) = 79481
7511ed4eb953da9b5b916470123083d7
echo c - ramspeed/files
mkdir -p ramspeed/files > /dev/null 2>&1
echo x - ramspeed/files/patch-build.sh
sed 's/^X//' >ramspeed/files/patch-build.sh << '68f5e07a89d1df315483fabfe68c219b'
X--- build.sh.orig	2007-11-01 22:00:00.000000000 +0100
X+++ build.sh	2014-01-25 19:53:28.000000000 +0100
X@@ -15,6 +15,16 @@
X if [ "$1" ]; then OS=$1; fi
X if [ "$2" ]; then ARCH=$2; fi
X 
X+# respect the user's options patch here
X+echo " "
X+echo "=== this is RAMspeed's build script ===================================="
X+echo " "
X+if [ -n "$CC" -a \( -n "$LD" -o -n "$AS" -o -n "$CFLAGS" -o -n "$LDFLAGS" \) ]
X+then
X+    _CC=$CC;_LD=$LD;_AS=$AS;_CFLAGS=$CFLAGS;_LDFLAGS=$LDFLAGS;_respect=yes
X+fi
X+# end of patch
X+
X case $OS in
X 
X     FreeBSD)
X@@ -127,10 +137,20 @@
X esac
X 
X echo "building for $OS $RELEASE $ARCH"
X-echo "compiler is $CC, linker is $LD, assembler is $AS"
X-echo "compiler's flags are $CFLAGS"
X-echo "linker's flags are $LFLAGS"
X+echo "compiler is '$CC', linker is '$LD', assembler is '$AS'"
X+echo "compiler's flags are '$CFLAGS'"
X+echo "linker's flags are '$LFLAGS'"
X echo " "
X+# respect the user's options patch here
X+if [ X"$_respect" = Xyes ] ; then
X+    CC=$_CC;LD=$_CC;AS=${_AS:-$AS};CFLAGS=$_CFLAGS;LFLAGS=$_LDFLAGS
X+    echo "OVERRIDING build script defaults with your system's defaults:"
X+    echo "compiler is '$CC', linker is '$LD', assembler is '$AS'"
X+    echo "compiler's flags are '$CFLAGS'"
X+    echo "linker's flags are '$LFLAGS'"
X+    echo " "
X+fi
X+# end of patch
X 
X if [ $TARGET = "GENERIC" ]
X then echo "WARNING! BUILDING FOR AN UNSUPPORTED OPERATING SYSTEM AND\OR ARCHITECTURE!"
X@@ -139,8 +159,10 @@
X      echo " "
X fi
X 
X-echo "press Enter to continue or Control-C to abort"
X-read ANS
X+if [ X"$_respect" != Xyes -a -t 0 -a -t 1 ] ; then
X+    echo "press Enter to continue or Control-C to abort"
X+    read ANS
X+fi
X 
X case $TARGET in
X 
68f5e07a89d1df315483fabfe68c219b
exit



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


More information about the freebsd-ports-bugs mailing list