summaryrefslogtreecommitdiffstats
path: root/rteval
Commit message (Collapse)AuthorAgeFilesLines
* clean up rteval/rteval_text.xsl to handle old reportsClark Williams2010-08-231-1/+1
| | | | | | | Don't depend on the 'run' attribute for a load section since it was just added and old reports do not contain it. Signed-off-by: Clark Williams <williams@redhat.com>
* clean up text portion of 'command_line' tag in XMLClark Williams2010-08-231-1/+2
| | | | | | | Return None if there were no jobs, otherwise return the command line used to start hackbench Signed-off-by: Clark Williams <williams@redhat.com>
* clean up XML generationClark Williams2010-08-233-6/+8
| | | | | | | Add the 'run' attribute for load summary so that appropriate text can be generated if a load doesn't run Signed-off-by: Clark Williams <williams@redhat.com>
* modified hackbench to not run in low memory conditionsClark Williams2010-08-231-7/+14
| | | | | | | If hackbench determines the ratio of available memory to active cpucores is less than 1GB/core, it will not be run. Signed-off-by: Clark Williams <williams@redhat.com>
* default base-class members of Load to internal testing valuesClark Williams2010-08-231-2/+2
| | | | | | | default the sourcedir and buildir values of the load base class to the internal "../loadsource" and "../build" directories. Signed-off-by: Clark Williams <williams@redhat.com>
* remove refactored methods and add proper defaults to RTEval membersClark Williams2010-08-231-59/+8
| | | | | | | | Remove system parameter access methods that were moved to the util.py module and replace callsites with calls into the util versions. Signed-off-by: Clark Williams <williams@redhat.com>
* create utility module with common system tasksClark Williams2010-08-231-0/+96
| | | | | | | refactor some methods from rteval into a commmon utility module for use by loads and cyclictest. Signed-off-by: Clark Williams <williams@redhat.com>
* add "__main__" section to run hackbench for testingClark Williams2010-08-231-0/+5
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* rteval: check if the core id really existsClark Williams2010-08-211-0/+2
| | | | | | | | | | | In SMT systems like Power PC, while we turn off or control multithreading, the processor id in cpu info need not be in sequence, for the available cores. This patch adds a minor check that if the core id we range, is really found in cpu info. Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com> Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com> Signed-off-by: Clark Williams <williams@redhat.com>
* Don't create log directories before it is neededDavid Sommerseth2010-08-111-8/+8
| | | | | | | | | The directory called 'rteval-YYYYMMDD-#' and the 'logs' sub-directory was created in the RtEval constructor. Moved this directory creation to before the RtEval::measure() function was called to avoid creating empty directories when using --summarize or --raw-histogram. Signed-off-by: David Sommerseth <davids@redhat.com>
* Improved CPU socket countingDavid Sommerseth2010-08-101-3/+15
| | | | | | | | | | Some computers start with physical_package_id=1, which would return two CPU sockets with the former CPU socket counting method. This is fixed by using a more failsafe method, by counting unique physical_package_id references. Signed-off-by: David Sommerseth <davids@redhat.com>
* version bump to v1.31Clark Williams2010-07-261-1/+1
|
* Updated hackbench implementation to avoid overusing resourcesDavid Sommerseth2010-07-262-10/+4
| | | | | | | | | | | | | | | - Removed support for setting 'thread' workunit This implementation needs to be re-implemented better, as it will easily use more than 1024 file descriptors. - Changed dynmic hackbench loops to a static value To make the load more comparable no matter how many CPU cores available. Using 100 as the default value. - Reduced data size from 128 to 100 This is to match the old hackbench value. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't show NUMA node information if it's missing in the summary.xmlDavid Sommerseth2010-07-261-3/+5
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Show CPU cores properlyDavid Sommerseth2010-07-261-1/+12
| | | | | | | | This is is a feature regression going back to commit e5d01f24e6fb6883 where CPU topology was introduced. The displaying itself was never updated. Signed-off-by: David Sommerseth <davids@redhat.com>
* version bump to v1.30Clark Williams2010-07-211-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* cap hackbench backoff time at 60 secondsClark Williams2010-07-211-0/+2
| | | | | | | detect when out-of-memory sleep time exceeds 60 seconds and cap it at that value. Signed-off-by: Clark Williams <williams@redhat.com>
* add code to ease memory pressure from hackbenchClark Williams2010-07-211-4/+17
| | | | | | | | Catch out-of-memory errors and sleep for an increasing number of seconds (capped at 60 seconds) to let the system recover before kicking off another hackbench. Signed-off-by: Clark Williams <williams@redhat.com>
* version bump to v1.29Clark Williams2010-07-161-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* fixed incorrect type value in kcompileClark Williams2010-07-161-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* version bump to v1.28Clark Williams2010-07-161-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* added load logic to adjust load based on memory/core ratioClark Williams2010-07-163-5/+28
| | | | | | | | | Added logic to loads.py, hackbench.py and kcompile.py that adjusts the number of jobs run based on the gigabytes per core ratio. If the ratio is less than 1, then only do one job per core, else do two jobs per core. Signed-off-by: Clark Williams <williams@redhat.com>
* version update to v1.27Clark Williams2010-07-141-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* add memsize, numanodes and duration parametersClark Williams2010-07-141-2/+3
| | | | | | | Add the memory size, number of numa nodes and the run duration to the parameter array passed to loads and cyclictest. Signed-off-by: Clark Williams <williams@redhat.com>
* change default unit of work for hackbench to be threadsClark Williams2010-07-142-3/+2
| | | | | | | Go back to using threads rather than processes to save some memory. Signed-off-by: Clark Williams <williams@redhat.com>
* version update to v1.26Clark Williams2010-07-131-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* modified hackbench parameters to reduce workloadClark Williams2010-07-132-4/+3
| | | | | | | Changed message size from 1024 to 128 (to reduce memory usage) and changed work unit from threads to processes. Signed-off-by: Clark Williams <williams@redhat.com>
* version bump to 1.25Clark Williams2010-07-121-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* updated source file copyright dates to 2010Clark Williams2010-07-1211-13/+14
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* fixed incorrect assignment of number-of-cores in cyclictest.pyClark Williams2010-07-121-1/+1
| | | | | | | | In the previous rework of passing in parameters via a dictionary, I presumed that numcores was passed in as part of the parameter dictionary. That was incorrect. Signed-off-by: Clark Williams <williams@redhat.com>
* version bump to v1.24Clark Williams2010-07-091-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* modified hackbench arguments to deal with new hackbenchClark Williams2010-07-092-10/+17
| | | | | | | | Added parameters to rteval.conf and changed logic in hackbench.py to deal with the behavior and new capabilities of the new hackbench executable we're using. Signed-off-by: Clark Williams <williams@redhat.com>
* vesion bump to v1.23Clark Williams2010-07-081-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* version update to v1.22Clark Williams2010-07-081-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* add logging for loadsClark Williams2010-07-084-10/+39
| | | | | | | Added an option (-L/--logging) to rteval that will turn on logging of load output to a file in the report directory. Signed-off-by: Clark Williams <williams@redhat.com>
* convert loads and cyclictest to use parameter section for all parametersClark Williams2010-07-086-51/+62
| | | | | | | | Put all relevant data for the run in the params section passed to the loads and to cyclictest. This simplifies argument lists and centralizes where information may be found. Signed-off-by: Clark Williams <williams@redhat.com>
* Updated rteval to use hackbench from rt-testsDavid Sommerseth2010-07-081-46/+8
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Check if we have dmidecode.get_warnings() availableDavid Sommerseth2010-05-251-0/+3
| | | | | If rteval is used against an older python-dmidecode, it will raise an Exception() due to dmidecode.get_warnings() not being available.
* Added unit-testsDavid Sommerseth2010-05-144-70/+139
| | | | | | | | | | Added a generic unit-test framework and rewritten the self-test parts in some rteval modules where this was appropriate. The unit-test contains a list of modules to load and test. It will run a function named unit_test() in the imported modules. It is expected that the unit_test() function will return 0 on success, otherwise it is logged as an error.
* version bump to 1.21Clark Williams2010-05-131-1/+1
|
* Merge remote branch 'davids/master_ipv4' into workClark Williams2010-05-134-18/+92
|\ | | | | | | | | | | Conflicts: rteval/cyclictest.py rteval/rteval.py
| * rteval: remove unnecessary wait() callLuis Claudio R. Goncalves2010-05-131-1/+0
| | | | | | | | | | | | | | | | As cyclictest handles SIGTERM and SIGINT, after sending these signals rteval can proceed to extract the data from the pipe. A wait() there would cause rteval to sit and wait forever. Signed-off-by: Luis Claudio R. Gonçalves <lgoncalv@redhat.com>
| * rteval: code cleanup and fixesLuis Claudio R. Gonçalves2010-05-073-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: * Closed /dev/null after use on each function opening it. * Make use of subprocess.wait() calls where appropriate. * Imported the missing SIGKILL symbol in hackbench.py * Removed the code snippet below from hackbench.py:runload(): count = 30 while count > 0 and p.poll() == None: time.sleep(1.0) count -= 1 if p.poll() == None: os.kill(p.pid, SIGKILL) Signed-off-by: Luis Claudio R. Gonçalves <lgoncalv@redhat.com>
| * Added SIGINT handlerDavid Sommerseth2010-04-291-2/+13
| | | | | | | | | | | | If SIGINT is received during the measurement phase, it will stop the load and measurement threads and complete the report, with a shortened run time.
| * Handle situations better when no warnings are found in dmi.ProcessWarnings()David Sommerseth2010-04-291-1/+5
| |
| * Also process DMI warnings before parsing command line argumentsDavid Sommerseth2010-04-291-0/+3
| | | | | | | | | | | | | | This is to avoid DMI decode warnings popping up when calling rteval --help. The other dmi.ProcessWarnings() call as the RtEval object may be used from another module as well - as v7 does.
| * Get rid of expected DMI decode warnings when running as non-rootDavid Sommerseth2010-04-292-0/+18
| |
| * Allow non-root users to really start rtevalDavid Sommerseth2010-04-291-3/+1
| | | | | | | | | | This will allow non-root users to use the --summary and --raw-ristogram features.
| * Added -P/--xmlrpc-no-abort to avoid exiting if XML-RPC ping failsDavid Sommerseth2010-04-121-1/+8
| | | | | | | | | | | | | | This is to make automated tests using rteval behave better, where rteval runs might go for several hours - and the XML-RPC server might become available during that time. In addition, rteval will try several times to send the report as well.
| * Added retry logic for ping testDavid Sommerseth2010-04-121-11/+34
| | | | | | | | | | | | This logic will try up to 5 times to get contact with the given XML-RPC server before exiting. It will wait attempts * 15 seconds for each attempt.