From owner-svn-ports-all@freebsd.org Wed May 29 12:48:01 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E04115C2389; Wed, 29 May 2019 12:48:01 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F12B66ACD2; Wed, 29 May 2019 12:48:00 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B406A1D6D; Wed, 29 May 2019 12:48:00 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4TCm0wQ081604; Wed, 29 May 2019 12:48:00 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4TCm0hg081601; Wed, 29 May 2019 12:48:00 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201905291248.x4TCm0hg081601@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Wed, 29 May 2019 12:48:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502956 - in head/benchmarks/raidtest: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/benchmarks/raidtest: . files X-SVN-Commit-Revision: 502956 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F12B66ACD2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.952,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2019 12:48:01 -0000 Author: danfe Date: Wed May 29 12:47:59 2019 New Revision: 502956 URL: https://svnweb.freebsd.org/changeset/ports/502956 Log: - Drop empty `do-fetch' target: this is the default when both DISTFILES and PATCHFILES are empty - Define LICENSE (BSD2CLAUSE) - Convert 42-line pkg-descr into README file, fix a typo and give it better formatting Added: head/benchmarks/raidtest/files/README - copied, changed from r502944, head/benchmarks/raidtest/pkg-descr Modified: head/benchmarks/raidtest/Makefile head/benchmarks/raidtest/pkg-descr Modified: head/benchmarks/raidtest/Makefile ============================================================================== --- head/benchmarks/raidtest/Makefile Wed May 29 12:37:14 2019 (r502955) +++ head/benchmarks/raidtest/Makefile Wed May 29 12:47:59 2019 (r502956) @@ -10,14 +10,21 @@ DISTFILES= # none MAINTAINER= pjd@FreeBSD.org COMMENT= Test performance of storage devices +LICENSE= BSD2CLAUSE + NO_WRKSUBDIR= yes USES= uidfix PLIST_FILES= bin/raidtest +PORTDOCS= README -do-fetch: +OPTIONS_DEFINE= DOCS do-extract: - ${MKDIR} ${WRKSRC} + @${MKDIR} ${WRKSRC} ${LN} -sf ${FILESDIR}/${PORTNAME}.c ${FILESDIR}/Makefile ${WRKSRC} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${FILESDIR}/README ${STAGEDIR}${DOCSDIR} .include Copied and modified: head/benchmarks/raidtest/files/README (from r502944, head/benchmarks/raidtest/pkg-descr) ============================================================================== --- head/benchmarks/raidtest/pkg-descr Wed May 29 08:55:07 2019 (r502944, copy source) +++ head/benchmarks/raidtest/files/README Wed May 29 12:47:59 2019 (r502956) @@ -6,24 +6,24 @@ First, one need to generate file with I/O operations: # raidtest genfile -s $mediasize -S $sectorsize -n 50000 It will generate test which contains 50000 I/O requests with random -size and random offset. Size is a multiple of sectorsize, but less than or -equal to 128kB (maxium size of I/O request). I/O request type (READ or WRITE) -is random as well. -All test data are stored in 'raidtest.data' file in current working directory. +size and random offset. Size is a multiple of sectorsize, but less +than or equal to 128kB (maximum size of I/O request). I/O request +type (READ or WRITE) is random as well. -To run test, one should type: +All test data are stored in 'raidtest.data' file in current working +directory. To run test, one should type: # raidtest test -d /dev/ -n 10 -This command will read test data from 'raidtest.data' file, run 10 processes -which will be used to send requests to the given device in parallel. -When test is finished you will see statistics: +This command will read test data from 'raidtest.data' file, run 10 +processes which will be used to send requests to the given device +in parallel. When test is finished you will see statistics: Bytes per second: Requests per second: -If you compare performance of two storage devices, use the same data file! - +If you want to compare performance of two storage devices, use the +same data file! usage: raidtest genfile [-frw] <-s mediasize> [-S sectorsize] <-n nrequests> [file] raidtest test [-Rrw] <-d device> [-n processes] [file] Modified: head/benchmarks/raidtest/pkg-descr ============================================================================== --- head/benchmarks/raidtest/pkg-descr Wed May 29 12:37:14 2019 (r502955) +++ head/benchmarks/raidtest/pkg-descr Wed May 29 12:47:59 2019 (r502956) @@ -1,42 +1,5 @@ This utility can be used to test performance of storage devices. -First, one need to generate file with I/O operations: - # set mediasize=`diskinfo /dev/ | awk '{print $3}'` - # set sectorsize=`diskinfo /dev/ | awk '{print $2}'` - # raidtest genfile -s $mediasize -S $sectorsize -n 50000 - -It will generate test which contains 50000 I/O requests with random -size and random offset. Size is a multiple of sectorsize, but less than or -equal to 128kB (maxium size of I/O request). I/O request type (READ or WRITE) -is random as well. -All test data are stored in 'raidtest.data' file in current working directory. - -To run test, one should type: - - # raidtest test -d /dev/ -n 10 - -This command will read test data from 'raidtest.data' file, run 10 processes -which will be used to send requests to the given device in parallel. -When test is finished you will see statistics: - - Bytes per second: - Requests per second: - -If you compare performance of two storage devices, use the same data file! - - -usage: raidtest genfile [-frw] <-s mediasize> [-S sectorsize] <-n nrequests> [file] - raidtest test [-Rrw] <-d device> [-n processes] [file] - -where: - -d device path to tested device - -f if raidtest.data file or specified file already exists, - remove it and create new one - -n nrequests number of requests to generate - -n processes number of processes to run - -r generate/run only READ requests - -R generate random data for write requests - -s size of destination device - -S sector size of destination device - -w generate/run only WRITE requests - file path to the data file instead of default 'raidtest.data' +It works by generating a test file which contains I/O requests with +random size and random offset. It then spawns parallel processes +which send requests to the given device based on the test file data.