Stressor plugin that adds memory, cpu, and hardware testing functionality.
Note:
This extension is currently mainly a proof of concept and example for
a stressor plugin.
Only a simple PsAlloc
activity is implemented.
See also
Writing Plugins
for details.
This plugin adds new activities and macros that can be used in the same way as the the standard activities and macros.
Allocate and hold some memory in order to simulate RAM usage and shortage.
sequences:
main:
# Allocate 1 GiB of RAM per running session
- activity: PsAlloc
allocate_mb: 1024
per_session: true
- allocate_mb (float, mandatory)
- Number of megabytes (1024^2 bytes) that should be allocated.
- per_session (bool, default: false)
- If true, every session will alloacate the block of memory. Otherwise (by default), only one session will allocate.
This extension does not yet implement new macros.