pub struct Limits {Show 16 fields
pub max_cpu_time: Limit<Duration>,
pub max_file_size: Limit<u64>,
pub max_data_size: Limit<usize>,
pub max_stack_size: Limit<usize>,
pub max_core_file_size: Limit<usize>,
pub max_resident_set: Limit<usize>,
pub max_processes: Limit<usize>,
pub max_open_files: Limit<usize>,
pub max_locked_memory: Limit<usize>,
pub max_address_space: Limit<usize>,
pub max_file_locks: Limit<usize>,
pub max_pending_signals: Limit<usize>,
pub max_msgqueue_size: Limit<usize>,
pub max_nice_priority: Limit<usize>,
pub max_realtime_priority: Limit<usize>,
pub max_realtime_timeout: Limit<Duration>,
}
Expand description
Process limits information
See man 2 getrlimit
.
Fields§
§max_cpu_time: Limit<Duration>
The maximum CPU time a process can use.
max_file_size: Limit<u64>
The maximum size of files that the process may create in bytes.
max_data_size: Limit<usize>
The maximum size of the process’s data segment in bytes.
max_stack_size: Limit<usize>
The maximum size of the process stack in bytes.
max_core_file_size: Limit<usize>
Maximum size of a core file in bytes.
max_resident_set: Limit<usize>
Specifies the limit of the process’s resident set in bytes.
max_processes: Limit<usize>
The maximum number of processes (or, more precisely on Linux, threads) that can be created for the real user ID of the calling process.
max_open_files: Limit<usize>
Specifies a value one greater than the maximum file descriptor number that can be opened by this process.
max_locked_memory: Limit<usize>
The maximum number of bytes of memory that may be locked into RAM.
max_address_space: Limit<usize>
The maximum size of the process’s virtual memory (address space) in bytes.
max_file_locks: Limit<usize>
A limit on the combined number of locks and leases that this process may establish.
max_pending_signals: Limit<usize>
Specifies the limit on the number of signals that may be queued for the real user ID of the calling process.
max_msgqueue_size: Limit<usize>
Specifies the limit on the number of bytes that can be allocated for POSIX message queues for the real user ID of the calling process.
max_nice_priority: Limit<usize>
Specifies a ceiling to which the process’s nice value can be raised.
max_realtime_priority: Limit<usize>
Specifies a limit on the amount of CPU time that a process scheduled under a real-time scheduling policy may consume without making a blocking system call.
max_realtime_timeout: Limit<Duration>
Specifies a ceiling on the real-time priority that may be set for this process.