Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Idle periods #2

Merged
merged 1 commit into from Aug 24, 2019

Conversation

@shortbloke
Copy link
Owner

commented Aug 24, 2019

Make duration, the duration of the stress test element. Rather than the stress duration being 50% of the overall duration.
Make idle time at start and end of test configurable via command line, rather than being 25% of the duration each.

These changes are helpful when running long stress tests, where 25% idle team at each end of the test is excessive.

Defaults used give the same timings and overall test duration as before.

@shortbloke shortbloke merged commit 57e26c6 into master Aug 24, 2019
shortbloke added a commit that referenced this pull request Aug 27, 2019
* Add ability to adjust idle time. Make stress duration more specific (#2)
shortbloke added a commit that referenced this pull request Sep 7, 2019
* Add support for varrying the number of CPU cores being stressed. Defauly will be ALL, prevously was fixed at 4

* Remove f string formatting, to maintain Python 3.0 support

* Idle durations configurable (#3)

* Add ability to adjust idle time. Make stress duration more specific (#2)

* Don't wrap simple call for cpu core count

* remove :

* add gh-actions config

* gh-actions fix

* Trigger tests

* Apply black fixes

* Fix merge issues

* Address PR feedback:
* Use vcgencmd as default for for temperature and frequency measurement. Able to be overriden by passing file source as argument.
* Remove default file locations for frequency and temp. User would need to know and specify this now.
* If vcgencmd is not found, will now throw an exception not fall back to default file method.
* Always measure frequency.
* Format printing of temperature and frequency measurements.
* Simplication of setting a solid background colour for plot.

* Fix test failures:
* Change measure_core_frequency to return a float. Print messages used to format to zero decimal places.
* Update test to provide frequency file. As frequency is recorded by default.

* black fix

* Increase code coverage by covering plot of frequency.

* make cooldown poll interval configurable (to speed up unit test)

* Add additional tests. Improve code coverage.

* rename transparent plot argument to make it more logical

* Remove test which would call vcgencmd as this needs to be mocked.
Package isn't available to be installed on circleci test system.

* black fixes

* provide example file locations in help text for temperature and frequency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.