Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/getrlimit.2
| Show All 19 Lines | |||||
| .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||||
| .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||||
| .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
| .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
| .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
| .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| .\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
| .\" | .\" | ||||
| .Dd July 25, 2024 | .Dd May 26, 2026 | ||||
| .Dt GETRLIMIT 2 | .Dt GETRLIMIT 2 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm getrlimit , | .Nm getrlimit , | ||||
| .Nm setrlimit | .Nm setrlimit | ||||
| .Nd control maximum system resource consumption | .Nd control maximum system resource consumption | ||||
| .Sh LIBRARY | .Sh LIBRARY | ||||
| .Lb libc | .Lb libc | ||||
| ▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
| .Xr tuning 7 | .Xr tuning 7 | ||||
| for a complete description of this sysctl. | for a complete description of this sysctl. | ||||
| .It Dv RLIMIT_UMTXP | .It Dv RLIMIT_UMTXP | ||||
| The limit of the number of process-shared posix thread library objects | The limit of the number of process-shared posix thread library objects | ||||
| allocated by user id. | allocated by user id. | ||||
| .It Dv RLIMIT_VMEM | .It Dv RLIMIT_VMEM | ||||
| An alias for | An alias for | ||||
| .Dv RLIMIT_AS . | .Dv RLIMIT_AS . | ||||
| .It Dv RLIMIT_VMM | |||||
| The maximum number of virtual machines a user can have running | |||||
| simultaneously. | |||||
| .El | .El | ||||
| .Pp | .Pp | ||||
| A resource limit is specified as a soft limit and a hard limit. | A resource limit is specified as a soft limit and a hard limit. | ||||
| When a soft limit is exceeded, a process might or might not receive a signal. | When a soft limit is exceeded, a process might or might not receive a signal. | ||||
| For example, signals are generated when the cpu time or file size is exceeded, | For example, signals are generated when the cpu time or file size is exceeded, | ||||
| but not if the address space or RSS limit is exceeded. | but not if the address space or RSS limit is exceeded. | ||||
| A program that exceeds the soft limit is allowed to continue execution until it | A program that exceeds the soft limit is allowed to continue execution until it | ||||
| reaches the hard limit, or modifies its own resource limit. | reaches the hard limit, or modifies its own resource limit. | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||