Accepting request 745342 from benchmark

- Do not use download url anymore

- Remove obsolete Groups tag (fate#326485)

- bonnie-fix-o_direct.diff: Don't use O_DIRECT for character input,
  as newer kernels don't allow this.

- Update to bonnie-1.6:
  * Use 16 threads by default
  * Smaller 4k reads (seeking)
  * Larger blocks in intelligent read/write
  * Smaller I/O size for char in/out
  * More digits for formatting.

OBS-URL: https://build.opensuse.org/request/show/745342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bonnie?expand=0&rev=22
This commit is contained in:
Dominique Leuenberger 2019-11-06 13:05:20 +00:00 committed by Git OBS Bridge
commit e353226bd0
5 changed files with 65 additions and 13 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eae780a2025cda86809537d5be75988f082b99b55da7cec9342060ed4f2a9f5a
size 19689

BIN
bonnie-1.6.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

27
bonnie-fix-o_direct.diff Normal file
View File

@ -0,0 +1,27 @@
? bonnie2
Index: Bonnie.c
===================================================================
RCS file: /share/MD0_DATA/cvsroot/C/bonnie/Bonnie.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- Bonnie.c 17 Feb 2016 13:09:47 -0000 1.5
+++ Bonnie.c 23 Nov 2018 09:45:08 -0000 1.6
@@ -64,7 +64,7 @@
* or consequential damage, loss, costs or fees or expenses of any
* nature or kind.
*/
-/* $Id: Bonnie.c,v 1.5 2016/02/17 13:09:47 garloff Exp $ */
+/* $Id: Bonnie.c,v 1.6 2018/11/23 09:45:08 garloff Exp $ */
#include <unistd.h>
#include <stdio.h>
@@ -449,7 +449,7 @@ int main(
/* read them all back with getc() */
for(volcnt = 0; volcnt < volumes; volcnt++)
- newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, o_direct);
+ newfile(name, &fd[volcnt], &stream[volcnt], 0, volcnt, 0/*+o_direct*/);
for (words = 0; words < 256; words++)
chars[words] = 0;
off_t gsz = size/8;

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Nov 5 08:10:10 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Do not use download url anymore
-------------------------------------------------------------------
Thu Oct 17 14:50:53 UTC 2019 - Richard Brown <rbrown@suse.com>
- Remove obsolete Groups tag (fate#326485)
-------------------------------------------------------------------
Fri Jan 11 11:17:49 CET 2019 - kurt@garloff.de
- bonnie-fix-o_direct.diff: Don't use O_DIRECT for character input,
as newer kernels don't allow this.
-------------------------------------------------------------------
Fri Jan 11 11:17:02 CET 2019 - kurt@garloff.de
- Update to bonnie-1.6:
* Use 16 threads by default
* Smaller 4k reads (seeking)
* Larger blocks in intelligent read/write
* Smaller I/O size for char in/out
* More digits for formatting.
-------------------------------------------------------------------
Thu Jun 30 13:21:33 UTC 2016 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package bonnie
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,19 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bonnie
Version: 1.5
Version: 1.6
Release: 0
Summary: File System Benchmark
License: GPL-2.0+
Group: System/Benchmark
Url: https://code.google.com/p/bonnie-64/
Source0: https://fossies.org/linux/privat/old/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: GPL-2.0-or-later
URL: https://code.google.com/p/bonnie-64/
Source0: %{name}-%{version}.tar.bz2
Patch0: bonnie-fix-o_direct.diff
%description
Bonnie is a popular performance benchmark that targets various aspects
@ -32,6 +31,7 @@ of Unix file systems.
%prep
%setup -q -n %{name}
%patch0
%build
make SYSFLAGS="%{optflags}" %{?_smp_mflags}
@ -40,9 +40,8 @@ make SYSFLAGS="%{optflags}" %{?_smp_mflags}
%make_install
%files
%defattr(-, root, root)
%doc bonnie.doc README
%{_bindir}/bonnie
%{_mandir}/man1/bonnie.1%{ext_man}
%{_mandir}/man1/bonnie.1%{?ext_man}
%changelog