Commit Graph

997 Commits

Author SHA1 Message Date
David Sommerseth 1bb501caeb hackbench, man page: Added another contributor and a brief history of hackbench 2010-02-24 16:04:47 +01:00
David Sommerseth fb278a79b5 man page, hackbench - Corrected wrong spelling 2010-02-24 14:42:24 +01:00
David Sommerseth 0ece6f784b Updated man page for hackbench 2010-02-24 13:50:46 +01:00
Clark Williams 61482066d5 Merge remote branch 'davids/master' into work 2010-02-23 13:48:05 -06:00
David Sommerseth eba5ee5e69 Merge remote branch 'origin/work' 2010-02-23 17:40:26 +01:00
David Sommerseth 4b563630e6 Merge remote branch 'dsommers/master'
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:38:25 +01:00
David Sommerseth 4e37a2b689 Added signal handling in hackbench
When receiving SIGINT or SIGTERM, it will now reap all worker
threads/processes and properly stop them.
2010-02-23 17:30:43 +01:00
David Sommerseth f273b4bd85 hackbench: Implemented getopt
Improved argument/option handling by using getopt_long().  Made more of the
parameters tunable as well.  Hackbench now accepts the following arguments:
       -P | --pipe          Use pipe
       -s | --datasize      Number of bytes to pass from sender to receiver
                               (default 100 bytes)
       -l | --loops         Number of messages each sender will send
                               (default 100 rounds)
       -g | --groups        Number of groups with sender/receivers
                               (default 10 groups)
       -f | --fds           Number of file descriptors each group will use
                               (default 20*2)
       -T | --threads       Run using pthreads
       -P | --process           Run using fork()

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:43 +01:00
David Sommerseth faa1f165c4 (code cleanup) Tabified lines which was not tabbed
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:42 +01:00
David Sommerseth 5fd7c301eb Simplified and improved error logging, clarified some messages
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:42 +01:00
David Sommerseth ba166b6415 Fixed a memory leak, receiver contexts not getting freed upon exit
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:42 +01:00
David Sommerseth ad27df7b94 Reimplement better child tracking and improve error handling
This does much what earlier commits did before hackbench got updated
to the latest version in the previous commit.

Consider the following commits being "forward ported", feature wise:
4c39eff213
0a72fcaade
fbd80c495b
bd588c92b8

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:42 +01:00
David Sommerseth 310dd41438 Updated hackbench to lastest version available
Downloaded from http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c
February 19 2010.

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 17:30:42 +01:00
Clark Williams 2359346741 added hackbench.8 manpage framework
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-23 10:27:08 -06:00
Clark Williams 98a082ca9f Merge remote branch 'davids/master' into work 2010-02-23 09:56:57 -06:00
David Sommerseth b0aad1d13c hackbench: Implemented getopt
Improved argument/option handling by using getopt_long().  Made more of the
parameters tunable as well.  Hackbench now accepts the following arguments:
       -P | --pipe          Use pipe
       -s | --datasize      Number of bytes to pass from sender to receiver
                               (default 100 bytes)
       -l | --loops         Number of messages each sender will send
                               (default 100 rounds)
       -g | --groups        Number of groups with sender/receivers
                               (default 10 groups)
       -f | --fds           Number of file descriptors each group will use
                               (default 20*2)
       -T | --threads       Run using pthreads
       -P | --process           Run using fork()

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 11:34:14 +01:00
David Sommerseth 92c53f9db3 (code cleanup) Tabified lines which was not tabbed
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 10:49:29 +01:00
David Sommerseth 51a6e57359 Simplified and improved error logging, clarified some messages
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 10:47:13 +01:00
David Sommerseth d5ae77c4af Fixed a memory leak, receiver contexts not getting freed upon exit
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 10:39:59 +01:00
David Sommerseth 2ff7b647b2 Reimplement better child tracking and improve error handling
This does much what earlier commits did before hackbench got updated
to the latest version in the previous commit.

Consider the following commits being "forward ported", feature wise:
4c39eff213
0a72fcaade
fbd80c495b
bd588c92b8

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 10:38:01 +01:00
David Sommerseth a0e5fa847d Updated hackbench to lastest version available
Downloaded from http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c
February 19 2010.

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23 10:23:47 +01:00
Uwe Kleine-König bd4cd378a2 trivial: s/specifed/specified/
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-02-22 21:56:49 +01:00
Clark Williams fae4312eb2 added hackbench to specfile
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-19 09:52:50 -06:00
Clark Williams 69ef7d4835 added hackbench target
added makefile targets for hackbench scheduler benchmark

Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-18 14:36:44 -06:00
David Sommerseth bd588c92b8 Fixed a few compiler and valgrind warnings
Valgrind complained about usage of non-initialised data.  The compiler
complained about the out_fds argument being unsigned int when calling
sender().

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-18 15:51:10 +01:00
David Sommerseth fbd80c495b Re-implement WIFEXITED() check on all children
Instead of just exiting immediately the original version did, we now
count how many children who failed to exit properly and report it.

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-18 15:45:27 +01:00
David Sommerseth 0a72fcaade Fix waitpid() implementation
In commit 4c39eff213 a new approach for tracking
each child was implemented.  But this implementation ignored the fact that each
group() call creates 2*num_fds children.

This patch refactors the previous attempt and will now track absolutely all
children.  If fork() fails when called in group(), all spawned children will
now also be killed explicitly.

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-18 15:36:01 +01:00
David Sommerseth 4c39eff213 hackbench: Wait for each child explicitly by using waitpid()
Quite often it's experienced in rteval that hackbench leaves some children
as zombies during closure.  This is an attempt to keep an overview of the
status of each child separately.  It's solved by having an array with all
sender and reciever children's pids and calling waitpid() on each of these
children pairs.

Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-17 19:09:46 +01:00
David Sommerseth f79ca322df Imported hackbench from rteval-1.18 (rteval-loads-1.0.1)
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-17 19:08:44 +01:00
Clark Williams 73d48f4e04 version bump to 0.66
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-15 13:10:58 -06:00
Clark Williams 527835d963 Fix incorrect usage of sched_setscheduler() in check_privs()
Fix code in check_privs() that passes NULL as parameter
to sched_setscheduler().

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-15 12:58:32 -06:00
Clark Williams 398445bc37 version bump to 0.65
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-08 15:37:41 -06:00
Clark Williams 1e781f5634 [hwlatdetect] workaround for borken smi_detector.ko module
Add a workaround to hwlatdetect to deal with a broken block of
code in drivers/misc/smi_detector.ko, where whenever you enable
the module (write a 1 to debugfs/smi_detector/enable) the stats
initialization routine resets the threshold from whatever it was
set to to 1us. This workaround checks the threshold after enabling
the module and resets it to what we want.

Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-08 15:31:57 -06:00
Clark Williams 7635870be8 version bump to 0.64
Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-29 15:22:52 -06:00
John Kacur 0dea069418 rt-tests: Ignore dependency files *.d in git
Ignore dependency files *.d ing git.

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-29 22:06:05 +01:00
John Kacur 88449adc30 rt-tests: Automatically generate dependencies.
Automatically generate dependencies. This will tell the make file that
cyclictest is dependent on rt_numa.h for example, and that if a change
is made there, then cyclictest needs to be remade.

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-27 21:12:06 +01:00
John Kacur db54b6152a rt-tests: Fix some style problems, such as spaces instead of tabs.
Fix some style problems, such as spaces instead of tabs, trailing spaces,
spaces required before }

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-27 20:17:15 +01:00
John Kacur 522560b82f rt-tests: Remove the ret variable, the end label and the goto.
Remove the ret variable, the end lable and the goto. We already have
inconsistent exit points for the function, and the end lable wasn't strictly
for errors. Directly returning simplifies and shortens the code.

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-27 19:47:03 +01:00
John Kacur 51dfab754a rt-tests: Separate the #ifdef LIBNUMA_API_VERSION functions.
Separate the #ifdef LIBNUMA_API_VERSION of function rt_numa_numa_node_of_cpu,
it is slightly cleaner this way.

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-27 19:42:50 +01:00
John Kacur 29c4f544fb rt-tests: Add header including copyright notice to rt_numa.h
Add a header which includes a copyright notice to rt_numa.h for cyclictest.

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-27 19:38:15 +01:00
Clark Williams 94839e793e fix missing BuildRequires for numactl-devel
Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-27 10:11:22 -06:00
Clark Williams 9306dab499 version bump to 0.63
Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-27 09:51:02 -06:00
Clark Williams fedb3c7bc5 added libnuma v1 API support
Modified NUMA code to handle version 1 API (for RHEL5)

Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 22:31:58 -06:00
Clark Williams 5384bcd747 version bump to 0.62
Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 13:46:14 -06:00
Clark Williams 20ece7f8a1 fixed numa compile and added numa option to usage printout
Added NUMA=1 to specfile build command line to enable NUMA
options. Added description of --numa option to usage output.

Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 12:24:54 -06:00
Uwe Kleine-König 1bb1e65265 Add copyright statements to files in src/lib
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: John Kacur <jkacur@redhat.com>
Cc: Carsten Emde <carsten.emde@osadl.org>
2010-01-26 12:24:44 -06:00
Clark Williams a1a0609561 moved hwlatdetect to python site-library
Moved the hwlatdetect script to the python site-library directory
so that it can be imported by other scripts

Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 12:23:49 -06:00
GeunSik Lim 8947c646fe rt-tests: Support static linking by reordering the link flags in LIBS
Some embedded developers cross-compile the tests with the -static link flag.
Reordering the link flags in LIBS to put -lrt before -lpthread is necessary,
else you get undefined references to pthread calls.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 12:14:30 -06:00
Clark Williams 582be2a52c simplify equal priority logic for cyclictest
use a variable to indicate that priorities should be equal
on all cpus when smp, numa or histogram options are specified.

Signed-off-by: Clark Williams <williams@redhat.com>
2010-01-26 12:14:21 -06:00
John Kacur 761911503c rt-tests: Make cyclic test compilable for non-numa systems.
Runtime tests are not sufficient, cyclic tests needs to be compilable
on non-numa systems.

This separates numa functionality into rt_numa.h

Signed-off-by: John Kacur <jkacur@redhat.com>
2010-01-26 12:14:02 -06:00