Return-Path: Received: from mx-3.enea.com (unknown [192.36.1.252]) by mail.openembedded.org (Postfix) with SMTP id A03C672307 for ; Wed, 26 Nov 2014 09:54:48 +0000 (UTC) Received: from sestofb10.enea.se (172.21.3.145) by smtp.enea.com (172.21.1.208) with Microsoft SMTP Server id 14.3.158.1; Wed, 26 Nov 2014 10:54:46 +0100 Received: by sestofb10.enea.se (Postfix, from userid 4454) id 0298B2800C8; Wed, 26 Nov 2014 10:54:46 +0100 (CET) From: "Maxin B. John" To: Date: Wed, 26 Nov 2014 10:54:27 +0100 Message-ID: <1416995667-1286-3-git-send-email-maxin.john@enea.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416995667-1286-1-git-send-email-maxin.john@enea.com> References: <1416995667-1286-1-git-send-email-maxin.john@enea.com> MIME-Version: 1.0 Received-SPF: None (SESTOEX08.enea.se: maxin.john@enea.com does not designate permitted sender hosts) Cc: thomas.lundstrom@enea.com, "Maxin B. John" Subject: [PATCH 2/2] stress: Add new package X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 09:54:50 -0000 Content-Type: text/plain Deliberately simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. Signed-off-by: Maxin B. John --- meta/recipes-extended/stress/files/texinfo.patch | 79 ++++++++++++++++++++++++ meta/recipes-extended/stress/stress_1.0.4.bb | 14 +++++ 2 files changed, 93 insertions(+) create mode 100644 meta/recipes-extended/stress/files/texinfo.patch create mode 100644 meta/recipes-extended/stress/stress_1.0.4.bb diff --git a/meta/recipes-extended/stress/files/texinfo.patch b/meta/recipes-extended/stress/files/texinfo.patch new file mode 100644 index 0000000..5ac5951 --- /dev/null +++ b/meta/recipes-extended/stress/files/texinfo.patch @@ -0,0 +1,79 @@ +--- a/doc/stress.texi ++++ b/doc/stress.texi +@@ -62,47 +62,47 @@ + + @table @samp + @item -? +-@itemx --help ++@item --help + Show help information. + +-@itemx --version ++@item --version + Show version information. + + @item -v +-@itemx --verbose ++@item --verbose + Turn up verbosity. + + @item -q +-@itemx --quiet ++@item --quiet + Turn down verbosity. + + @item -n +-@itemx --dry-run ++@item --dry-run + Show what would have been done. + + @item -t @var{secs} +-@itemx --timeout @var{secs} ++@item --timeout @var{secs} + Time out after @var{secs} seconds. + +-@itemx --backoff @var{usecs} ++@item --backoff @var{usecs} + Wait for factor of @var{usecs} microseconds before starting work. + + @item -c @var{forks} +-@itemx --cpu @var{forks} ++@item --cpu @var{forks} + Spawn @var{forks} processes each spinning on @samp{sqrt()}. + + @item -i @var{forks} +-@itemx --io @var{forks} ++@item --io @var{forks} + Spawn @var{forks} processes each spinning on @samp{sync()}. + + @item -m @var{forks} +-@itemx --vm @var{forks} ++@item --vm @var{forks} + Spawn @var{forks} processes each spinning on @samp{malloc()}. + +-@itemx --vm-bytes @var{bytes} ++@item --vm-bytes @var{bytes} + Allocate @var{bytes} number of bytes. The default is 1. + +-@itemx --vm-hang ++@item --vm-hang + Instruct each vm hog process to go to sleep after allocating memory. This + contrasts with their normal behavior, which is to free the memory and + reallocate @emph{ad infinitum}. This is useful for simulating low memory +@@ -114,13 +114,13 @@ + @end example + + @item -d @var{forks} +-@itemx --hdd @var{forks} ++@item --hdd @var{forks} + Spawn @var{forks} processes each spinning on @samp{write()}. + +-@itemx --hdd-bytes @var{bytes} ++@item --hdd-bytes @var{bytes} + Write @var{bytes} number of bytes. The default is 1GB. + +-@itemx --hdd-noclean ++@item --hdd-noclean + Do not unlink file(s) to which random ASCII data is written. + + @end table diff --git a/meta/recipes-extended/stress/stress_1.0.4.bb b/meta/recipes-extended/stress/stress_1.0.4.bb new file mode 100644 index 0000000..44f2fc6 --- /dev/null +++ b/meta/recipes-extended/stress/stress_1.0.4.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "Deliberately simple workload generator for POSIX systems. It \ +imposes a configurable amount of CPU, memory, I/O, and disk stress on the system." +HOMEPAGE = "http://people.seas.harvard.edu/~apw/stress/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/stress/stress-${PV}.tar.gz/a607afa695a511765b40993a64c6e2f4/stress-${PV}.tar.gz \ + file://texinfo.patch \ + " + +SRC_URI[md5sum] = "a607afa695a511765b40993a64c6e2f4" +SRC_URI[sha256sum] = "369c997f65e8426ae8b318d4fdc8e6f07a311cfa77cc4b25dace465c582163c0" + +inherit autotools -- 1.9.1