Skip to main content

Module limits

Module limits 

Source
Expand description

Process resource-limit utilities.

The helpers query soft and hard limits and raise selected soft limits when supported. Platform-specific implementations provide neutral fallbacks when an interface is unavailable.

Functions§

max_file_descriptors
Returns the soft and hard file-descriptor limits.
max_memory_locked
Returns the soft and hard locked-memory limits.
max_stack_size
Returns the soft and hard process stack-size limits.
max_threads
Returns the soft and hard per-user process-count limits.
maximize_fd_limit
Raises the soft file descriptor limit to the current hard limit.
maximize_thread_limit
Raises the soft thread limit to the current hard limit.
page_size
Get the system’s page size in bytes.