Skip to content

DOCS-10721 Document locked memory ulimit #3251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions source/reference/ulimit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ system limits, as in the following example:
-m: resident set size (kbytes) unlimited
-u: processes 192276
-n: file descriptors 21000
-l: locked-in-memory size (kb) 40000
-l: locked-in-memory size (kb) unlimited
-v: address space (kb) unlimited
-x: file locks unlimited
-i: pending signals 192276
Expand Down Expand Up @@ -158,7 +158,7 @@ process.

Depending on your system's configuration, and default settings, any
change to system limits made using ``ulimit`` may revert following
system a system restart. Check your distribution and operating
a system restart. Check your distribution and operating
system documentation for more information.

.. include:: /includes/note-suse-ulimit.rst
Expand All @@ -175,6 +175,7 @@ the following thresholds and settings are particularly important for
- ``-f`` (file size): ``unlimited``
- ``-t`` (cpu time): ``unlimited``
- ``-v`` (virtual memory): ``unlimited`` [#memory-size]_
- ``-l`` (locked-in-memory size): ``unlimited``
- ``-n`` (open files): ``64000``
- ``-m`` (memory size): ``unlimited`` [#memory-size]_ [#rss-linux]_
- ``-u`` (processes/threads): ``64000``
Expand All @@ -196,11 +197,12 @@ example:

.. code-block:: sh

limit fsize unlimited unlimited # (file size)
limit cpu unlimited unlimited # (cpu time)
limit as unlimited unlimited # (virtual memory size)
limit nofile 64000 64000 # (open files)
limit nproc 64000 64000 # (processes/threads)
limit fsize unlimited unlimited # (file size)
limit cpu unlimited unlimited # (cpu time)
limit as unlimited unlimited # (virtual memory size)
limit memlock unlimited unlimited # (locked-in-memory size)
limit nofile 64000 64000 # (open files)
limit nproc 64000 64000 # (processes/threads)

Each ``limit`` stanza sets the "soft" limit to the first value specified and the "hard"
limit to the second.
Expand Down Expand Up @@ -236,6 +238,8 @@ example:
LimitCPU=infinity
# (virtual memory size)
LimitAS=infinity
# (locked-in-memory size)
LimitMEMLOCK=infinity
# (open files)
LimitNOFILE=64000
# (processes/threads)
Expand Down