aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/ulimit.txt
diff options
context:
space:
mode:
authorGravatar Mark Griffiths <mark@thebespokepixel.com>2014-08-19 13:41:23 +0100
committerGravatar Mark Griffiths <mark@thebespokepixel.com>2014-09-03 14:43:26 +0100
commit137abd0cfaa8959224f88a4ebe9584a51468cc88 (patch)
treec396f760a1e309b5a837359e65c57c4555534d49 /doc_src/ulimit.txt
parentd7308fecbe573aad91fc6f1377c1ed2df735f6fd (diff)
Make line length, wrapping and spacing consistent
Diffstat (limited to 'doc_src/ulimit.txt')
-rw-r--r--doc_src/ulimit.txt42
1 files changed, 20 insertions, 22 deletions
diff --git a/doc_src/ulimit.txt b/doc_src/ulimit.txt
index 7ce12dcd..c6c40a07 100644
--- a/doc_src/ulimit.txt
+++ b/doc_src/ulimit.txt
@@ -7,61 +7,59 @@ ulimit [OPTIONS] [LIMIT]
\subsection ulimit-description Description
-`ulimit` builtin sets or outputs the resource usage limits of the
-shell and any processes spawned by it. If a new limit value is
-omitted, the current value of the limit of the resource is printed; otherwise,
-the specified limit is set to the new value.
+`ulimit` builtin sets or outputs the resource usage limits of the shell and any processes spawned by it. If a new limit value is omitted, the current value of the limit of the resource is printed; otherwise, the specified limit is set to the new value.
Use one of the following switches to specify which resource limit to set or report:
- `-c` or `--core-size`: the maximum size of core files created. By setting this limit to zero, core dumps can be disabled.
+
- `-d` or `--data-size`: the maximum size of a process' data segment.
+
- `-f` or `--file-size`: the maximum size of files created by the shell.
+
- `-l` or `--lock-size`: the maximum size that may be locked into memory.
+
- `-m` or `--resident-set-size`: the maximum resident set size.
+
- `-n` or `--file-descriptor-count`: the maximum number of open file descriptors (most systems do not allow this value to be set).
+
- `-s` or `--stack-size`: the maximum stack size.
+
- `-t` or `--cpu-time`: the maximum amount of CPU time in seconds.
+
- `-u` or `--process-count`: the maximum number of processes available to a single user.
+
- `-v` or `--virtual-memory-size` The maximum amount of virtual memory available to the shell.
Note that not all these limits are available in all operating systems.
-The value of limit can be a number in the unit specified for
-the resource or one of the special values `hard`, `soft`, or `unlimited`,
-which stand for the current hard limit, the current soft limit, and no
-limit, respectively.
+The value of limit can be a number in the unit specified for the resource or one of the special values `hard`, `soft`, or `unlimited`, which stand for the current hard limit, the current soft limit, and no limit, respectively.
-If limit is given, it is the new value of the specified resource. If
-no option is given, then `-f` is assumed. Values are in kilobytes,
-except for `-t`, which is in seconds and `-n` and `-u`, which are unscaled
-values. The return status is 0 unless an invalid option or argument is
-supplied, or an error occurs while setting a new limit.
+If limit is given, it is the new value of the specified resource. If no option is given, then `-f` is assumed. Values are in kilobytes, except for `-t`, which is in seconds and `-n` and `-u`, which are unscaled values. The return status is 0 unless an invalid option or argument is supplied, or an error occurs while setting a new limit.
-`ulimit` also accepts the following switches that determine what type of
-limit to set:
+`ulimit` also accepts the following switches that determine what type of limit to set:
- `-H` or `--hard` sets hard resource limit
+
- `-S` or `--soft` sets soft resource limit
-A hard limit can only be decreased. Once it is set it cannot be
-increased; a soft limit may be increased up to the value of the hard
-limit. If neither -H nor -S is specified, both the soft and hard
-limits are updated when assigning a new limit value, and the soft
-limit is used when reporting the current value.
+A hard limit can only be decreased. Once it is set it cannot be increased; a soft limit may be increased up to the value of the hard limit. If neither -H nor -S is specified, both the soft and hard limits are updated when assigning a new limit value, and the soft limit is used when reporting the current value.
The following additional options are also understood by `ulimit`:
- `-a` or `--all` prints all current limits
+
- `-h` or `--help` displays help and exits.
-The `fish` implementation of `ulimit` should behave identically to the
-implementation in bash, except for these differences:
+The `fish` implementation of `ulimit` should behave identically to the implementation in bash, except for these differences:
- Fish `ulimit` supports GNU-style long options for all switches
+
- Fish `ulimit` does not support the `-p` option for getting the pipe size. The bash implementation consists of a compile-time check that empirically guesses this number by writing to a pipe and waiting for SIGPIPE. Fish does not do this because it this method of determining pipe size is unreliable. Depending on bash version, there may also be further additional limits to set in bash that do not exist in fish.
+
- Fish `ulimit` does not support getting or setting multiple limits in one command, except reporting all values using the -a switch
+
\subsection ulimit-example Example
`ulimit -Hs 64` sets the hard stack size limit to 64 kB.