Constants Related to Resource Limits in python














































Constants Related to Resource Limits in python




CONSTANTS RELATED TO RESOURCE LIMITS

There are some constants related to resource limits :

1)RLIM_INFINITY

Limit for an Unlimited resource

2)RLIMIT_CORE

Max size of a core file created by current
process.

3)RLIMIT_CPU

The Maximum processor time of a processor.
When the limit exceeds, a SIGXCCPU signal is sent to the process.

4)RLIMIT_DATA

The maximum size of the processor%u2019s heap

5)RLIMIT_STACK

The maximum size of call stack. It uses the
stack of the main thread for a multithreaded process.

6)RLIMIT_NOFILE

Maximum number of Open file descriptor for
the current process.

7)RLIMIT_MEMLOCK

The maximum address space for a locked
memory

8)RLIMIT_NICE

The ceiling of the nice level of a process

9)RLIMIT_SWAP

The maximum size of the swap space

10)RLIMIT_NTPS

Maximum number of pseudo terminals in the
system

next, we will learn about resource usage


Comments