• Home
  • Raw
  • Download

Lines Matching +full:in +full:- +full:process

1 :mod:`resource` --- Resource usage information
6 :synopsis: An interface to provide resource usage information on the current process.
11 --------------
16 .. include:: ../includes/wasm-notavail.rst
19 request usage information about either the current process or its children.
33 ---------------
38 process over time. The soft limit can never exceed the hard limit. The hard
40 (Only processes with the effective UID of the super-user can raise a hard
44 described in the :manpage:`getrlimit(2)` man page. The resources listed below
46 which cannot be checked or controlled by the operating system are not defined in
70 limit exceeds the hard limit, or if a process tries to raise its hard limit.
72 system limit for that resource is not unlimited will result in a
73 :exc:`ValueError`. A process with the effective UID of super-user can
83 .. audit-event:: resource.setrlimit resource,limits resource.setrlimit
88 Combines :func:`setrlimit` and :func:`getrlimit` in one function and
89 supports to get and set the resources limits of an arbitrary process. If
90 *pid* is 0, then the call applies to the current process. *resource* and
91 *limits* have the same meaning as in :func:`setrlimit`, except that
95 process *pid*. When *limits* is given the *resource* limit of the process is
100 the process.
102 .. audit-event:: resource.prlimit pid,resource,limits resource.prlimit
115 resource. This module does not attempt to mask platform differences --- symbols
122 The maximum size (in bytes) of a core file that the current process can create.
123 This may result in the creation of a partial core file if a larger core would be
124 required to contain the entire process image.
129 The maximum amount of processor time (in seconds) that a process can use. If
130 this limit is exceeded, a :const:`SIGXCPU` signal is sent to the process. (See
137 The maximum size of a file which the process may create.
142 The maximum size (in bytes) of the process's heap.
147 The maximum size (in bytes) of the call stack for the current process. This only
148 affects the stack of the main thread in a multi-threaded process.
153 The maximum resident set size that should be made available to the process.
158 The maximum number of processes the current process may create.
163 The maximum number of open file descriptors for the current process.
173 The maximum address space which may be locked in memory.
178 The largest area of mapped memory which the process may occupy.
183 The maximum area (in bytes) of address space which may be taken by the process.
197 The ceiling for the process's nice level (calculated as 20 - rlim_cur).
206 The ceiling of the real-time priority.
215 The time limit (in microseconds) on CPU time that a process can spend
216 under real-time scheduling without making a blocking syscall.
225 The number of signals which the process may queue.
233 The maximum size (in bytes) of socket buffer usage for this user.
243 The maximum size (in bytes) of the swap space that may be reserved or
256 The maximum number of pseudo-terminals created by this user id.
271 --------------
279 the current process or its children, as specified by the *who* parameter. The
288 # a non CPU-bound task
292 # a CPU-bound task
293 for i in range(10 ** 8):
299 the process was swapped out of main memory. Some values are dependent on the
300 clock tick internal, e.g. the amount of memory the process is using.
306 floating point values representing the amount of time spent executing in user
307 mode and the amount of time spent executing in system mode, respectively. The
311 +--------+---------------------+---------------------------------------+
314 | ``0`` | :attr:`ru_utime` | time in user mode (float seconds) |
315 +--------+---------------------+---------------------------------------+
316 | ``1`` | :attr:`ru_stime` | time in system mode (float seconds) |
317 +--------+---------------------+---------------------------------------+
319 +--------+---------------------+---------------------------------------+
321 +--------+---------------------+---------------------------------------+
323 +--------+---------------------+---------------------------------------+
325 +--------+---------------------+---------------------------------------+
327 +--------+---------------------+---------------------------------------+
329 +--------+---------------------+---------------------------------------+
331 +--------+---------------------+---------------------------------------+
333 +--------+---------------------+---------------------------------------+
335 +--------+---------------------+---------------------------------------+
337 +--------+---------------------+---------------------------------------+
339 +--------+---------------------+---------------------------------------+
341 +--------+---------------------+---------------------------------------+
343 +--------+---------------------+---------------------------------------+
345 +--------+---------------------+---------------------------------------+
348 specified. It may also raise :exc:`error` exception in unusual circumstances.
353 Returns the number of bytes in a system page. (This need not be the same as the
363 process, which is the sum of resources used by all threads in the process.
369 of the calling process which have been terminated and waited for.
375 process and child processes. May not be available on all systems.