⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1144-1144.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=05 //-->

<!-- PAGES=1103-1208 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="1141-1143.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1145-1147.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1144"><P>Page 1144</P></A>





<!-- CODE SNIP //-->

<PRE>

!load!load hiload!loadavg!lt!5!go!

:hiload:+ load:loadavg:gt:8:throttle:loadav

/load/+/loadavg/ge/6/pause/loadav

</PRE>

<!-- END CODE SNIP //-->



<P>The final line causes the server to be paused if

innwatch is in the run state and the load average rises to, or above, six.

The state is set to load when this happens. The previous line causes the server to be throttled when

innwatch is in the run or load state, and the load average rises above eight. The state is set to

hiload when this happens. Note that innwatch can switch

the server from paused to throttled if the load average rises from below six to between six and seven and then to above eight.

The first line causes the server to be sent a go command if

innwatch is in the load or hiload state and the load average drops

below five.

</P>



<P>Note that all three lines assume a mythical command

loadavg that is assumed to print the current load average as an

integer. In more practical circumstances, a pipe of

uptime into awk is more likely to be useful.

</P>



<P><B>

BUGS

</B></P>



<P>This file must be tailored for each individual site; the sample supplied is truly no more than a sample. The file should

be ordered so that the more common problems are tested first.

</P>



<P>The run state is not actually identified by the label with that three letter name, and using it will not work as expected.

</P>



<P>Using an &quot;unusual&quot; character for the delimiter such as

(, *, &amp;, &quot;&quot;, and the like is likely to lead to obscure and

hard-to-locate bugs.

</P>



<P><B>

HISTORY

</B></P>



<P>Written by (kre@munnari.oz.au) for InterNetNews.

</P>



<P><B>

SEE ALSO

</B></P>



<P>innd(8), ctlinnd(8), news.daily(8)

</P>



<H3><A NAME="ch05_ 27">

ipc

</A></H3>



<P>ipc&#151;System V interprocess communication mechanisms.

</P>



<P><B>

SYNOPSIS

</B></P>



<!-- CODE SNIP //-->

<PRE>

# include &lt;sys/types.h&gt;

# include &lt;sys/ipc.h&gt;

# include &lt;sys/msg.h&gt;

# include &lt;sys/sem.h&gt;

# include &lt;sys/shm.h&gt;

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B></P>

<P>The manual page refers to the Linux implementation of the System V interprocess communication mechanisms:

message queues, semaphore sets, and shared memory segments. In the following, the word

resource means an instantiation of one among such mechanisms.

</P>



<P><B>

Resource Access Permissions

</B></P>



<P>For each resource, the system uses a common structure of type

struct ipc_perm to store information needed in

determining permissions to perform an ipc operation. The

ipc_perm structure, defined by the

&lt;sys/ipc.h&gt; system header file, includes the following members:

</P>



<!-- CODE SNIP //-->

<PRE>

ushort cuid; /* creator user id */

ushort cgid; /* creator group id */

ushort uid; /* owner user id */

ushort gid; /* owner group id */

ushort mode; /* r/w permissions */

</PRE>

<!-- END CODE SNIP //-->





<P><CENTER>

<a href="1141-1143.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1145-1147.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -