← 返回命令列表

Linux command

runlim 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

runlim command arguments

Example

runlim -o path/to/file command arguments

Example

runlim -t 60 command arguments

Example

runlim -r 120 command arguments

Example

runlim -s 1024 command arguments

Example

runlim -t 300 -s 2048 -o path/to/log command arguments

说明

runlim executes a command while sampling and limiting its time and memory usage, including all child processes. It samples resource consumption every 100 milliseconds via the /proc filesystem and logs status information to stderr every second. The tool is useful for benchmarking, automated testing, and preventing runaway processes from consuming excessive resources.

参数

-o _FILE_, --output-file=_FILE_
Overwrite or create FILE for output logging
-t _NUM_, --time-limit=_NUM_
Set CPU time limit to NUM seconds
-r _NUM_, --real-time-limit=_NUM_
Set real (wall clock) time limit to NUM seconds
-s _NUM_, --space-limit=_NUM_
Set memory limit to NUM megabytes
-k, --kill
Propagate signals to child processes
-h, --help
Show summary of options
--version
Show version of program

FAQ

What is the runlim command used for?

runlim executes a command while sampling and limiting its time and memory usage, including all child processes. It samples resource consumption every 100 milliseconds via the /proc filesystem and logs status information to stderr every second. The tool is useful for benchmarking, automated testing, and preventing runaway processes from consuming excessive resources.

How do I run a basic runlim example?

Run `runlim command arguments` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _FILE_, --output-file=_FILE_ do in runlim?

Overwrite or create FILE for output logging