1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1992 Drew Eckhardt, March 28, 1992
4 .\" and Copyright (c) 2002, 2004, 2005, 2008 Michael Kerrisk
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date. The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein. The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
26 .\" Modified by Michael Haardt <michael@moria.de>
27 .\" Modified 1993-07-23 by Rik Faith <faith@cs.unc.edu>
28 .\" Modified 1996-01-13 by Arnt Gulbrandsen <agulbra@troll.no>
29 .\" Modified 1996-01-22 by aeb, following a remark by
30 .\" Tigran Aivazian <tigran@sco.com>
31 .\" Modified 1996-04-14 by aeb, following a remark by
32 .\" Robert Bihlmeyer <robbe@orcus.ping.at>
33 .\" Modified 1996-10-22 by Eric S. Raymond <esr@thyrsus.com>
34 .\" Modified 2001-05-04 by aeb, following a remark by
35 .\" Havard Lygre <hklygre@online.no>
36 .\" Modified 2001-04-17 by Michael Kerrisk <mtk.manpages@gmail.com>
37 .\" Modified 2002-06-13 by Michael Kerrisk <mtk.manpages@gmail.com>
38 .\" Added note on nonstandard behavior when SIGCHLD is ignored.
39 .\" Modified 2002-07-09 by Michael Kerrisk <mtk.manpages@gmail.com>
40 .\" Enhanced descriptions of 'resource' values for [gs]etrlimit()
41 .\" Modified 2003-11-28 by aeb, added RLIMIT_CORE
42 .\" Modified 2004-03-26 by aeb, added RLIMIT_AS
43 .\" Modified 2004-06-16 by Michael Kerrisk <mtk.manpages@gmail.com>
44 .\" Added notes on CAP_SYS_RESOURCE
46 .\" 2004-11-16 -- mtk: the getrlimit.2 page, which formally included
47 .\" coverage of getrusage(2), has been split, so that the latter
48 .\" is now covered in its own getrusage.2.
50 .\" Modified 2004-11-16, mtk: A few other minor changes
51 .\" Modified 2004-11-23, mtk
52 .\" Added notes on RLIMIT_MEMLOCK, RLIMIT_NPROC, and RLIMIT_RSS
53 .\" to "CONFORMING TO"
54 .\" Modified 2004-11-25, mtk
55 .\" Rewrote discussion on RLIMIT_MEMLOCK to incorporate kernel
57 .\" Added note on RLIMIT_CPU error in older kernels
58 .\" 2004-11-03, mtk, Added RLIMIT_SIGPENDING
59 .\" 2005-07-13, mtk, documented RLIMIT_MSGQUEUE limit.
60 .\" 2005-07-28, mtk, Added descriptions of RLIMIT_NICE and RLIMIT_RTPRIO
61 .\" 2008-05-07, mtk / Peter Zijlstra, Added description of RLIMIT_RTTIME
63 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
64 .\" all rights reserved.
65 .\" Translated 1997-02-22, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
66 .\" Updated and Modified 2001-06-02, Yuichi SATO <ysato444@yahoo.co.jp>
67 .\" Updated and Modified 2001-08-18, Yuichi SATO
68 .\" Updated and Modified 2002-08-25, Yuichi SATO
69 .\" Updated and Modified 2004-01-17, Yuichi SATO
70 .\" Updated and Modified 2004-12-30, Yuichi SATO
71 .\" Updated and Modified 2005-09-10, Yuichi SATO
72 .\" Updated and Modified 2005-10-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
73 .\" Updated and Modified 2005-10-27, Akihiro MOTOKI
74 .\" Updated and Modified 2006-04-15, Akihiro MOTOKI, Catch up to LDP v2.29
75 .\" Updated 2008-08-08, Akihiro MOTOKI, LDP v3.05
76 .\" Updated 2008-10-13, Akihiro MOTOKI, LDP v3.11
81 .TH GETRLIMIT 2 2010-09-26 "Linux" "Linux Programmer's Manual"
84 .\"O getrlimit, setrlimit \- get/set resource limits
85 getrlimit, setrlimit \- 資源の制限を取得/設定する
88 .B #include <sys/time.h>
90 .B #include <sys/resource.h>
92 .BI "int getrlimit(int " resource ", struct rlimit *" rlim );
94 .BI "int setrlimit(int " resource ", const struct rlimit *" rlim );
100 .\"O get and set resource limits respectively.
104 はそれぞれ資源 (resource) の制限 (limit) の設定と取得を行う。
105 .\"O Each resource has an associated soft and hard limit, as defined by the
109 .\"O argument to both
110 .\"O .BR getrlimit ()
112 .\"O .BR setrlimit ()):
113 各リソースには、それに対応するソフト・リミットとハード・リミットがある。
127 .\"O rlim_t rlim_cur; /* Soft limit */
128 .\"O rlim_t rlim_max; /* Hard limit (ceiling for rlim_cur) */
129 rlim_t rlim_cur; /* ソフト・リミット */
130 rlim_t rlim_max; /* ハード・リミット
131 (rlim_cur より小さくない) */
136 .\"O The soft limit is the value that the kernel enforces for the
137 .\"O corresponding resource.
138 ソフト・リミットは、カーネルが対応するリソースに対して課す制限値である。
139 .\"O The hard limit acts as a ceiling for the soft limit:
140 ハード・リミットはソフト・リミットの上限として働く。
141 .\"O an unprivileged process may only set its soft limit to a value in the
142 .\"O range from 0 up to the hard limit, and (irreversibly) lower its hard limit.
143 特権を持たないプロセスは、ソフト・リミットの値を
144 0 からハード・リミットの範囲に設定することと、
146 (一度下げたハードリミットは上げられない)。
147 .\"O A privileged process (under Linux: one with the
148 .\"O .B CAP_SYS_RESOURCE
149 .\"O capability) may make arbitrary changes to either limit value.
152 ケーパビリティ (capability) を持つプロセス) は
153 ソフト・リミットとハード・リミットを自由に変更できる。
156 .\"O .B RLIM_INFINITY
157 .\"O denotes no limit on a resource (both in the structure returned by
158 .\"O .BR getrlimit ()
159 .\"O and in the structure passed to
160 .\"O .BR setrlimit ()).
176 .\"O The maximum size of the process's virtual memory (address space) in bytes.
177 プロセスの仮想メモリ (アドレス空間) の最大サイズ (バイト単位)。
178 .\"O .\" since 2.0.27 / 2.1.12
179 .\" 2.0.27 / 2.1.12 以降。
180 .\"O This limit affects calls to
185 .\"O which fail with the error
187 .\"O upon exceeding this limit.
188 .\"O Also automatic stack expansion will fail
191 .\"O that kills the process if no alternate stack
192 .\"O has been made available via
193 .\"O .BR sigaltstack (2)).
198 の呼び出しに影響し、この制限を超えた場合は
205 を使った代替スタックを利用可能にしていなかった場合には、
207 を生成してそのプロセスを kill する)。
208 .\"O Since the value is a \fIlong\fP, on machines with a 32-bit \fIlong\fP
209 .\"O either this limit is at most 2 GiB, or this resource is unlimited.
210 この値は \fIlong\fP 型なので、32 ビットの \fIlong\fP 型を持つマシンでは、
211 この制限は最大で 2 GiB になるか、この資源が無制限になる。
217 .\"O When 0 no core dump files are created.
220 0 の場合、core ファイルは生成されない。
221 .\"O When nonzero, larger dumps are truncated to this size.
222 0 以外の場合、このサイズより大きいダンプは切り詰められる。
225 .\"O CPU time limit in seconds.
227 .\"O When the process reaches the soft limit, it is sent a
230 プロセスがソフト・リミットに達した場合に、
233 .\"O The default action for this signal is to terminate the process.
234 このシグナルに対するデフォルトの動作は、プロセスの終了である。
235 .\"O However, the signal can be caught, and the handler can return control to
236 .\"O the main program.
237 ただしシグナルをキャッチして、ハンドラがメインプログラムに
239 .\"O If the process continues to consume CPU time, it will be sent
241 .\"O once per second until the hard limit is reached, at which time
244 プロセスが CPU 時間を使い続けた場合は、
245 ハードリミットに達するまで 1 秒毎にプロセスに
251 .\"O (This latter point describes Linux 2.2 through 2.6 behavior.
253 Linux 2.2 から 2.6 のものである。
254 .\"O Implementations vary in how they treat processes which continue to
255 .\"O consume CPU time after reaching the soft limit.
256 ソフト・リミットを超えて CPU 時間を使い続けるプロセスの
258 .\"O Portable applications that need to catch this signal should
259 .\"O perform an orderly termination upon first receipt of
265 を受け取った時点で正しく終了すべきである。
268 .\"O The maximum size of the process's data segment (initialized data,
269 .\"O uninitialized data, and heap).
271 (初期化されたデータ・初期化されていないデータ・ヒープ) の最大値。
272 .\"O This limit affects calls to
276 .\"O which fail with the error
278 .\"O upon encountering the soft limit of this resource.
284 これらの関数は、このリソースのソフト・リミットに達すると、
290 .\"O The maximum size of files that the process may create.
291 プロセスが作成できるファイルサイズの最大値。
292 .\"O Attempts to extend a file beyond this limit result in delivery of a
298 .\"O By default, this signal terminates a process, but a process can
299 .\"O catch this signal instead, in which case the relevant system call (e.g.,
301 .\"O .BR truncate (2))
302 .\"O fails with the error
304 デフォルトでは、このシグナルはプロセスを終了する。
313 .\"O .BR RLIMIT_LOCKS " (Early Linux 2.4 only)"
314 .BR RLIMIT_LOCKS " (初期の Linux 2.4 のみ)"
315 .\"O .\" to be precise: Linux 2.4.0-test9; no longer in 2.4.25 / 2.5.65
316 .\" 正確には Linux 2.4.0-test9 のみ。2.4.25 / 2.5.65 ではなくなっている。
317 .\"O A limit on the combined number of
321 .\"O leases that this process may establish.
329 .\"O The maximum number of bytes of memory that may be locked
331 RAM 内にロックできるメモリの最大バイト数。
332 .\"O In effect this limit is rounded down to the nearest multiple
333 .\"O of the system page size.
334 実際には、この制限はシステムページサイズの最も近い倍数に
336 .\"O This limit affects
339 .\"O .BR mlockall (2)
351 .\"O Since Linux 2.6.9 it also affects the
354 .\"O operation, where it sets a maximum on the total bytes in
355 .\"O shared memory segments (see
357 .\"O that may be locked by the real user ID of the calling process.
362 この操作は呼び出し元プロセスの実 (real) ユーザー ID にロックされる
365 を参照) の合計バイト数の最大値を設定する。
369 .\"O locks are accounted for separately from the per-process memory
370 .\"O locks established by
372 .\"O .BR mlockall (2),
375 .\"O .BR MAP_LOCKED ;
376 .\"O a process can lock bytes up to this limit in each of these
386 によって確立されるプロセス毎のメモリロックとは分けて数える。
387 1 つのプロセスはこの制限までのバイトをロックできる。
389 .\"O In Linux kernels before 2.6.9, this limit controlled the amount of
390 .\"O memory that could be locked by a privileged process.
391 2.6.9 より前の Linux カーネル では、
392 この制限は特権プロセスによってロックされるメモリの合計を制御していた。
393 .\"O Since Linux 2.6.9, no limits are placed on the amount of memory
394 .\"O that a privileged process may lock, and this limit instead governs
395 .\"O the amount of memory that an unprivileged process may lock.
396 Linux 2.6.9 以降では、特権プロセスがロックするメモリの合計に制限はなく、
397 代わりにこの制限は非特権プロセスがロックするメモリの合計に
400 .\"O .BR RLIMIT_MSGQUEUE " (Since Linux 2.6.8)"
401 .BR RLIMIT_MSGQUEUE " (Linux 2.6.8 以降)"
402 .\"O Specifies the limit on the number of bytes that can be allocated
403 .\"O for POSIX message queues for the real user ID of the calling process.
404 .\"O This limit is enforced for
405 .\"O .BR mq_open (3).
406 呼び出し元プロセスの実ユーザー ID に対して、
407 POSIX メッセージキューのために確保できるバイト数の制限を指定する。
411 .\"O Each message queue that the user creates counts (until it is removed)
412 .\"O against this limit according to the formula:
413 ユーザが作成した各々のメッセージキューのバイト数は
414 以下の式により計算され、(そのキューが削除されるまでの間)
418 bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) +
419 attr.mq_maxmsg * attr.mq_msgsize
426 .\"O structure specified as the fourth argument to
427 .\"O .BR mq_open (3).
436 .\"O The first addend in the formula, which includes
437 .\"O .I "sizeof(struct msg_msg *)"
438 .\"O (4 bytes on Linux/i386), ensures that the user cannot
439 .\"O create an unlimited number of zero-length messages (such messages
440 .\"O nevertheless each consume some system memory for bookkeeping overhead).
441 .I "sizeof(struct msg_msg *)"
442 (Linux/i386 では 4 バイト) を含む最初の加数は、
443 ユーザーが長さ 0 のメッセージを無制限に作れないこと保証している
445 記録のためのオーバーヘッドでシステムメモリを消費する)。
447 .\"O .BR RLIMIT_NICE " (since Linux 2.6.12, but see BUGS below)"
448 .BR RLIMIT_NICE " (Linux 2.6.12 以降, 下記の「バグ」の節も参照)"
449 .\"O Specifies a ceiling to which the process's nice value can be raised using
450 .\"O .BR setpriority (2)
453 .\"O The actual ceiling for the nice value is calculated as
454 .\"O .IR "20\ \-\ rlim_cur" .
455 .\"O (This strangeness occurs because negative numbers cannot be specified
456 .\"O as resource limit values, since they typically have special meanings.
458 .\"O .B RLIM_INFINITY
459 .\"O typically is the same as \-1.)
463 を使って引き上げられるプロセスの nice 値の上限を指定する。
465 .I "20\ \-\ rlim_cur"
467 (このような変な状況は、リソース制限値として負の数を指定できないため
468 発生する。通常、負の値は特別な意味を持っているからである。
474 .\"O Specifies a value one greater than the maximum file descriptor number
475 .\"O that can be opened by this process.
476 このプロセスがオープンできるファイルディスクリプタ数の最大値より
483 .\"O to exceed this limit yield the error
485 .\"O (Historically, this limit was named
491 などにより) この上限を超えようとした場合、エラー
499 .\"O The maximum number of processes (or, more precisely on Linux, threads)
500 .\"O that can be created for the real user ID of the calling process.
501 .\"O Upon encountering this limit,
503 .\"O fails with the error
505 呼び出したプロセスの実ユーザー ID で作成できる最大プロセス数
506 (より正確には Linux ではスレッド数)。
514 .\"O Specifies the limit (in pages) of the process's resident set
515 .\"O (the number of virtual pages resident in RAM).
516 プロセスの resident set (RAM 上に存在する仮想ページの数) の
518 .\"O This limit only has effect in Linux 2.4.x, x < 30, and there only
519 .\"O affects calls to
522 .\"O .BR MADV_WILLNEED .
523 この制限は 2.4.30 より前でしか影響がなく、
528 .\"O .\" As at kernel 2.6.12, this limit still does nothing in 2.6 though
529 .\"O .\" talk of making it do something has surfaced from time to time in LKML
530 .\" カーネル 2.6.12 の時点では、
531 .\" この制限はカーネル 2.6 ではまだ何も行わない。
532 .\" しかし、何をさせるかについては LKML で時々話題になっている。
535 .\"O .BR RLIMIT_RTPRIO " (Since Linux 2.6.12, but see BUGS)"
536 .BR RLIMIT_RTPRIO " (Linux 2.6.12 以降, バグの節も参照)"
537 .\"O Specifies a ceiling on the real-time priority that may be set for
538 .\"O this process using
539 .\"O .BR sched_setscheduler (2)
541 .\"O .BR sched_setparam (2).
542 .BR sched_setscheduler (2)
544 .BR sched_setparam (2)
545 を使って設定できる、そのプロセスのリアルタイム優先度の上限を指定する。
547 .\"O .BR RLIMIT_RTTIME " (Since Linux 2.6.25)"
548 .BR RLIMIT_RTTIME " (Linux 2.6.25 以降)"
549 .\"O Specifies a limit (in microseconds)
550 .\"O on the amount of CPU time that a process scheduled
551 .\"O under a real-time scheduling policy may consume without making a blocking
553 .\"O For the purpose of this limit,
554 .\"O each time a process makes a blocking system call,
555 .\"O the count of its consumed CPU time is reset to zero.
556 .\"O The CPU time count is not reset if the process continues trying to
557 .\"O use the CPU but is preempted, its time slice expires, or it calls
558 .\"O .BR sched_yield (2).
559 リアルタイム・スケジューリング方針でスケジューリングされるプロセスが
560 ブロッキング型のシステムコールを呼び出さずに消費することのできる
561 CPU 時間の合計についての上限を (マイクロ秒単位で) 指定する。
562 この上限の目的のため、プロセスがブロッキング型のシステムコールを
563 呼び出す度に、消費された CPU 時間のカウントは 0 にリセットされる。
564 プロセスが CPU を使い続けようとしたが他のプロセスに置き換えられた
565 (preempted) 場合や、そのプロセスのタイムスライスが満了した場合、
568 を呼び出した場合は、CPU 時間のカウントはリセットされない。
570 .\"O Upon reaching the soft limit, the process is sent a
573 .\"O If the process catches or ignores this signal and
574 .\"O continues consuming CPU time, then
576 .\"O will be generated once each second until the hard limit is reached,
577 .\"O at which point the process is sent a
580 ソフト・リミットに達すると、そのプロセスに
582 シグナルが送られる。そのプロセスがこのシグナルを捕捉するか
583 無視して、CPU 時間を消費し続けた場合には、
584 ハード・リミットに達するまで 1 秒に 1 回
587 ハード・リミットに達した時点で、そのプロセスには
591 .\"O The intended use of this limit is to stop a runaway
592 .\"O real-time process from locking up the system.
593 この上限を意図的に使用するのは、暴走したリアルタイム・プロセスを
594 停止して、システムが動かなくなるのを避ける場合である。
596 .\"O .BR RLIMIT_SIGPENDING " (Since Linux 2.6.8)"
597 .BR RLIMIT_SIGPENDING " (Linux 2.6.8 以降)"
598 .\"O Specifies the limit on the number of signals
599 .\"O that may be queued for the real user ID of the calling process.
600 呼び出し元プロセスの実ユーザー ID に対して
601 キューに入れられるシグナルの数の制限を指定する。
602 .\"O Both standard and real-time signals are counted for the purpose of
603 .\"O checking this limit.
605 標準シグナルとリアルタイム・シグナルの両方がカウントされる。
606 .\"O However, the limit is only enforced for
607 .\"O .BR sigqueue (2);
608 .\"O it is always possible to use
610 .\"O to queue one instance of any of the signals that are not already
611 .\"O queued to the process.
616 使うことで、そのプロセスに対してまだキューに入れられていない
617 シグナルのインスタンスをキューに入れることができる。
618 .\"O .\" This replaces the /proc/sys/kernel/rtsig-max system-wide limit
619 .\"O .\" that was present in kernels <= 2.6.7. MTK Dec 04
620 .\" これはカーネル 2.6.7 以前に存在するシステム全体の制限
621 .\" /proc/sys/kernel/rtsig-max を置き換える。MTK Dec 04
624 .\"O The maximum size of the process stack, in bytes.
625 プロセス・スタックの最大サイズをバイト単位で指定する。
626 .\"O Upon reaching this limit, a
628 .\"O signal is generated.
632 .\"O To handle this signal, a process must employ an alternate signal stack
633 .\"O .RB ( sigaltstack (2)).
636 .RB ( sigaltstack (2))
639 .\"O Since Linux 2.6.23,
640 .\"O this limit also determines the amount of space used for the process's
641 .\"O command-line arguments and environment variables; for details, see
643 Linux 2.6.23 以降では、この制限はプロセスのコマンドライン引き数と環境変数
644 に使用される空間の合計サイズの上限の決定にも使用される。詳細については
647 .\"O .SH "RETURN VALUE"
649 .\"O On success, zero is returned.
650 .\"O On error, \-1 is returned, and
652 .\"O is set appropriately.
653 成功した場合は 0 が返される。エラーの場合は \-1 が返され、
661 .\"O points outside the accessible address space.
663 がアクセス可能なアドレス空間の外を指している。
669 .\"O .BR setrlimit ():
670 .\"O .I rlim\->rlim_cur
671 .\"O was greater than
672 .\"O .IR rlim\->rlim_max .
684 .\"O An unprivileged process tried to use
685 .\"O .BR setrlimit ()
687 .\"O increase a soft or hard limit above the current hard limit; the
688 .\"O .B CAP_SYS_RESOURCE
689 .\"O capability is required to do this.
694 現在のハード・リミットより大きくしようと試みた。
698 .\"O Or, the process tried to use
699 .\"O .BR setrlimit ()
701 .\"O the soft or hard
702 .\"O .B RLIMIT_NOFILE
703 .\"O limit above the current kernel
705 .\"O .RB ( NR_OPEN ).
714 .\"O .SH CONFORMING TO
716 SVr4, 4.3BSD, POSIX.1-2001.
717 .\"O .B RLIMIT_MEMLOCK
720 .\"O derive from BSD and are not specified in POSIX.1-2001;
721 .\"O they are present on the BSDs and Linux, but on few other implementations.
725 は BSD から派生し、POSIX.1-2001 には指定されていない。
726 これらは BSD 系と Linux に存在するが、他の実装は少ない。
728 .\"O derives from BSD and is not specified in POSIX.1-2001;
729 .\"O it is nevertheless present on most implementations.
731 は BSD から派生し、POSIX.1-2001 には指定されていない。
733 .\"O .BR RLIMIT_MSGQUEUE ,
734 .\"O .BR RLIMIT_NICE ,
735 .\"O .BR RLIMIT_RTPRIO ,
736 .\"O .BR RLIMIT_RTTIME ,
738 .\"O .B RLIMIT_SIGPENDING
739 .\"O are Linux-specific.
740 .BR RLIMIT_MSGQUEUE ,
748 .\"O A child process created via
750 .\"O inherits its parent's resource limits.
751 .\"O Resource limits are preserved across
759 .\"O One can set the resource limits of the shell using the built-in
765 .\"O The shell's resource limits are inherited by the processes that
766 .\"O it creates to execute commands.
767 シェルのリソース制限は、シェルの組み込みコマンドである
773 このシェルのリソース制限は、コマンドを実行してシェルが生成するプロセス
776 .\"O Ancient systems provided a
778 .\"O function with a similar purpose to
779 .\"O .BR setrlimit ().
780 .\"O For backward compatibility, glibc also provides
782 .\"O All new applications should be written using
783 .\"O .BR setrlimit ().
797 .\"O In older Linux kernels, the
801 .\"O signals delivered when a process encountered the soft and hard
803 .\"O limits were delivered one (CPU) second later than they should have been.
804 以前の Linux カーネルでは、プロセスがソフトまたはハード
810 シグナルが、本来送られるべき時点の 1 (CPU) 秒後に送られてしまう。
811 .\"O This was fixed in kernel 2.6.8.
812 これはカーネル 2.6.8 で修正された。
814 .\"O In 2.6.x kernels before 2.6.17, a
816 .\"O limit of 0 is wrongly treated as "no limit" (like
817 .\"O .BR RLIM_INFINITY ).
818 .\"O Since Linux 2.6.17, setting a limit of 0 does have an effect,
819 .\"O but is actually treated as a limit of 1 second.
820 2.6.17 より前の 2.6.x カーネルでは、
824 と同じように) 「制限なし」と間違って解釈されていた。
825 Linux 2.6.17 以降では、リミットを 0 に設定した場合にも
826 効果を持つようになっているが、実際にはリミットの値は 1 秒となる。
827 .\" see http://marc.theaimsgroup.com/?l=linux-kernel&m=114008066530167&w=2
829 .\"O A kernel bug means that
830 .\"O .B RLIMIT_RTPRIO
831 .\"O does not work in kernel 2.6.12; the problem is fixed in kernel 2.6.13.
834 が動作しないというバグがある。この問題はカーネル 2.6.13 で修正されている。
836 .\"O In kernel 2.6.12, there was an off-by-one mismatch
837 .\"O between the priority ranges returned by
838 .\"O .BR getpriority (2)
840 .\"O .BR RLIMIT_NICE .
841 .\"O This had the effect that actual ceiling for the nice value
842 .\"O was calculated as
843 .\"O .IR "19\ \-\ rlim_cur" .
844 .\"O This was fixed in kernel 2.6.13.
845 .\"O .\" see http://marc.theaimsgroup.com/?l=linux-kernel&m=112256338703880&w=2
850 が返す優先度の範囲が一つずれていた。このため、nice 値の実際の上限が
851 .I "19\ \-\ rlim_cur"
852 になってしまうという影響があった。これはカーネル 2.6.13 で修正された。
853 .\" 参考: http://marc.theaimsgroup.com/?l=linux-kernel&m=112256338703880&w=2
855 .\"O Kernels before 2.4.22 did not diagnose the error
858 .\"O .BR setrlimit ()
860 .\"O .I rlim\->rlim_cur
861 .\"O was greater than
862 .\"O .IR rlim\->rlim_max .
888 .BR capabilities (7),