@@ -63,12 +63,12 @@ this module for those platforms.
63
63
64
64
Sets new limits of consumption of *resource *. The *limits * argument must be a
65
65
tuple ``(soft, hard) `` of two integers describing the new limits. A value of
66
- :data : `~resource.RLIM_INFINITY ` can be used to request a limit that is
66
+ :const : `~resource.RLIM_INFINITY ` can be used to request a limit that is
67
67
unlimited.
68
68
69
69
Raises :exc: `ValueError ` if an invalid resource is specified, if the new soft
70
70
limit exceeds the hard limit, or if a process tries to raise its hard limit.
71
- Specifying a limit of :data : `~resource.RLIM_INFINITY ` when the hard or
71
+ Specifying a limit of :const : `~resource.RLIM_INFINITY ` when the hard or
72
72
system limit for that resource is not unlimited will result in a
73
73
:exc: `ValueError `. A process with the effective UID of super-user can
74
74
request any valid limit value, including unlimited, but :exc: `ValueError `
@@ -78,7 +78,7 @@ this module for those platforms.
78
78
``setrlimit `` may also raise :exc: `error ` if the underlying system call
79
79
fails.
80
80
81
- VxWorks only supports setting :data : `RLIMIT_NOFILE `.
81
+ VxWorks only supports setting :const : `RLIMIT_NOFILE `.
82
82
83
83
.. audit-event :: resource.setrlimit resource,limits resource.setrlimit
84
84
@@ -176,8 +176,9 @@ platform.
176
176
.. data :: RLIMIT_VMEM
177
177
178
178
The largest area of mapped memory which the process may occupy.
179
+ Usually an alias of :const: `RLIMIT_AS `.
179
180
180
- .. availability :: FreeBSD >= 11 .
181
+ .. availability :: Solaris, FreeBSD, NetBSD .
181
182
182
183
183
184
.. data :: RLIMIT_AS
@@ -230,16 +231,18 @@ platform.
230
231
231
232
.. versionadded :: 3.4
232
233
234
+
233
235
.. data :: RLIMIT_SBSIZE
234
236
235
237
The maximum size (in bytes) of socket buffer usage for this user.
236
238
This limits the amount of network memory, and hence the amount of mbufs,
237
239
that this user may hold at any time.
238
240
239
- .. availability :: FreeBSD.
241
+ .. availability :: FreeBSD, NetBSD .
240
242
241
243
.. versionadded :: 3.4
242
244
245
+
243
246
.. data :: RLIMIT_SWAP
244
247
245
248
The maximum size (in bytes) of the swap space that may be reserved or
@@ -249,18 +252,20 @@ platform.
249
252
`tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7 >`__
250
253
for a complete description of this sysctl.
251
254
252
- .. availability :: FreeBSD.
255
+ .. availability :: FreeBSD >= 8 .
253
256
254
257
.. versionadded :: 3.4
255
258
259
+
256
260
.. data :: RLIMIT_NPTS
257
261
258
262
The maximum number of pseudo-terminals created by this user id.
259
263
260
- .. availability :: FreeBSD.
264
+ .. availability :: FreeBSD >= 8 .
261
265
262
266
.. versionadded :: 3.4
263
267
268
+
264
269
.. data :: RLIMIT_KQUEUES
265
270
266
271
The maximum number of kqueues this user id is allowed to create.
@@ -269,6 +274,7 @@ platform.
269
274
270
275
.. versionadded :: 3.10
271
276
277
+
272
278
Resource Usage
273
279
--------------
274
280
0 commit comments