ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/ulimit.htm

120 lines
3.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>ulimit - Set or display resource limits</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>ulimit - Set or display resource limits</h2>
<strong>Synopsis</strong>
<p>
<strong>ulimit [ -HS ] [ -acdfmnst ] [</strong> <em>limit</em> <strong>]</strong>
</p>
<p><strong>Description</strong></p>
<p>The <strong>ulimit</strong> utility sets or displays resource limits. The
resource limits apply to the current process and to any processes that are started
after the resource limit is set.</p>
<p>For each resource, there is a hard or maximum limit and a soft or current limit.
The soft limit can be changed to any value that is less than or equal to the hard
limit. The hard limit can be changed to any value that is greater than or equal to
the soft limit. The hard limit can only be increased by a user with *JOBCTL special
authority.</p>
<p>On i5/OS<SUP>(TM)</SUP>, only the file size (<strong>-f</strong>) and number of descriptors
(<strong>-n</strong>) resource limits can be set. All of the resource
limits can be displayed.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-a</strong></dt>
<dd>Display all of the resource limits.</dd>
<dt><strong>-c</strong></dt>
<dd>Display the resource limit for the maximum size of a core file in kilobytes.</dd>
<dt><strong>-d</strong></dt>
<dd>Display the resource limit for the maximum size of a process' data segment in kilobytes.</dd>
<dt><strong>-f</strong></dt>
<dd>Set or display the resource limit for the maximum size of a file in kilobytes.</dd>
<dt><strong>-H</strong></dt>
<dd>Set or display the hard limit for the resource.</dd>
<dt><strong>-m</strong></dt>
<dd>Display the resource limit for the maximum size of a process' total available storage.</dd>
<dt><strong>-n</strong></dt>
<dd>Set or display the resource limit for the maximum number of file descriptors that
can be opened by the process.</dd>
<dt><strong>-s</strong></dt>
<dd>Display the resource limit for the maximum size of the process' stack in kilobytes.</dd>
<dt><strong>-S</strong></dt>
<dd>Set or display the soft limit for the resource.</dd>
<dt><strong>-t</strong></dt>
<dd>Display the resource limit for the maximum amount of CPU time in seconds.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>When <em>limit</em> is not specified, the value of the resource limit is displayed.
When the <strong>-H</strong> option is specified, the hard limit is displayed.
Otherwise, the soft limit is displayed.</p>
<p>When <em>limit</em> is specified, the value of the resource limit is set. The <em>limit</em>
can be an <a href="arithexp.htm">arithmetic expression</a> or the
string "unlimited" for no limit. If neither
the <strong>-H</strong> or <strong>-S</strong> options are specified, both the hard
and soft limits are set.</p>
<p>If no resource is specified, the default is the file size (<strong>-f</strong>)
resource limit.</p>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful</li>
<li>&gt;0 when unsuccessful</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="umask.htm">umask - Get or set the file mode creation mask</a></li>
</ul>
</body>
</html>