2021-10-11 05:18:37 +01:00
|
|
|
# runlim
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Sample and limit time and memory usage of a program and its child processes using the proc file system on Linux.
|
2021-10-11 05:18:37 +01:00
|
|
|
> More information: <http://fmv.jku.at/runlim>.
|
|
|
|
|
|
|
|
- Print the time and memory usage of a command:
|
|
|
|
|
|
|
|
`runlim {{command}} {{command_arguments}}`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Log statistics to a file instead of `stdout`:
|
2021-10-11 05:18:37 +01:00
|
|
|
|
|
|
|
`runlim --output-file={{path/to/file}} {{command}} {{command_arguments}}`
|
|
|
|
|
|
|
|
- Limit time to an upper bound (in seconds):
|
|
|
|
|
|
|
|
`runlim --time-limit={{number}} {{command}} {{command_arguments}}`
|
|
|
|
|
|
|
|
- Limit real-time to an upper bound (in seconds):
|
|
|
|
|
|
|
|
`runlim --real-time-limit={{number}} {{command}} {{command_arguments}}`
|
|
|
|
|
|
|
|
- Limit space to an upper bound (in MB):
|
|
|
|
|
|
|
|
`runlim --space-limit={{number}} {{command}} {{command_arguments}}`
|