📄 ch2_tun.htm
字号:
<tr align="left" valign="top">
<th id="r1c1" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Tool
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Description
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>fdpr</code>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">Optimizes an executable program for a particular workload
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>filemon</code>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">Uses the trace facility to monitor and report the activity of the file system
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>fileplace</code>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">Displays the placement of a file's blocks within logical or physical volumes
</td>
</tr>
<tr align="left" valign="top">
<td id="r5c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>lockstat</code>
</td>
<td headers="r5c1 r1c2" align="left" colspan="1" rowspan="1">Displays statistics about contention for kernel locks
</td>
</tr>
<tr align="left" valign="top">
<td id="r6c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>lvedit</code>
</td>
<td headers="r6c1 r1c2" align="left" colspan="1" rowspan="1">Facilitates interactive placement of logical volumes within a volume group
</td>
</tr>
<tr align="left" valign="top">
<td id="r7c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>netpmon</code>
</td>
<td headers="r7c1 r1c2" align="left" colspan="1" rowspan="1">Uses the trace facility to report on network I/O and network-related CPU usage
</td>
</tr>
<tr align="left" valign="top">
<td id="r8c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>rmss</code>
</td>
<td headers="r8c1 r1c2" align="left" colspan="1" rowspan="1">Simulates systems with various sizes of memory for performance testing
</td>
</tr>
<tr align="left" valign="top">
<td id="r9c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>svmon</code>
</td>
<td headers="r9c1 r1c2" align="left" colspan="1" rowspan="1">Captures and analyzes information about virtual-memory usage
</td>
</tr>
<tr align="left" valign="top">
<td id="r10c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>syscalls</code>
</td>
<td headers="r10c1 r1c2" align="left" colspan="1" rowspan="1">Records and counts system calls
</td>
</tr>
<tr align="left" valign="top">
<td id="r11c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>tprof</code>
</td>
<td headers="r11c1 r1c2" align="left" colspan="1" rowspan="1">Uses the trace facility to report CPU usage at module and source-code-statement levels
</td>
</tr>
<tr align="left" valign="top">
<td id="r12c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>BigFoot</code>
</td>
<td headers="r12c1 r1c2" align="left" colspan="1" rowspan="1">Reports the memory access patterns of processes
</td>
</tr>
<tr align="left" valign="top">
<td id="r13c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>stem</code>
</td>
<td headers="r13c1 r1c2" align="left" colspan="1" rowspan="1">Permits subroutine-level entry and exit instrumentation of existing executables
</td>
</tr></tbody>
</table>
<div align="center">
<br /><table summary="This is a layout table to format a tip" title="This is a layout table to format a tip" dir="ltr" border="1" width="80%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"><tbody>
<tr>
<td align="left" colspan="1" rowspan="1">
<p>
<font face="arial, helvetica, sans-serif">
<strong>See Also:</strong>
</font>
</p><em>Performance Toolbox for AIX; Guide and Reference 1.2 and 2 </em>for more information on PTX, and the <em>AIX Performance Tuning Guide Version 3.2 and 4</em> and the <em>AIX5L Performance Management Guide</em> for information on the syntax of some of these tools.
</td>
</tr></tbody>
</table><br />
</div>
</div class="sect3">
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref313" name="sthref313"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
HP Tools
</font>
</h3>
<p>The following sections list tools available on HP systems.
</p>
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref314" name="sthref314"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Performance Tuning Tools
</font>
</h4>
<p>The following table lists the tools that you can use for additional performance tuning on HP:
</p>
<div align="center">
<br /><table summary="This is a layout table to format a tip" title="This is a layout table to format a tip" dir="ltr" border="1" width="80%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"><tbody>
<tr>
<td align="left" colspan="1" rowspan="1">
<p>
<font face="arial, helvetica, sans-serif">
<strong>See Also:</strong>
</font>
</p>The HP-UX operating system documentation and man pages for more information on PTX.
</td>
</tr></tbody>
</table><br />
</div>
<table title="HP Performance Tuning Tools" summary="This table describes the HP performance tuning tools." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<thead>
<tr align="left" valign="top">
<th id="r1c1" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Tools
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong> Description
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>gprof</code>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">Creates an execution profile for programs
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>monitor</code>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">Monitors the program counter and calls to certain functions
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>netfmt</code>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">Monitors the network
</td>
</tr>
<tr align="left" valign="top">
<td id="r5c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>netstat</code>
</td>
<td headers="r5c1 r1c2" align="left" colspan="1" rowspan="1">Reports statistics on network performance
</td>
</tr>
<tr align="left" valign="top">
<td id="r6c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>nfsstat</code>
</td>
<td headers="r6c1 r1c2" align="left" colspan="1" rowspan="1">Reports statistics for each processor
</td>
</tr>
<tr align="left" valign="top">
<td id="r7c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>nettl</code>
</td>
<td headers="r7c1 r1c2" align="left" colspan="1" rowspan="1">Captures network events or packets by logging and tracing
</td>
</tr>
<tr align="left" valign="top">
<td id="r8c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>prof</code>
</td>
<td headers="r8c1 r1c2" align="left" colspan="1" rowspan="1">Creates an execution profile of C programs and displays performance statistics for your program, showing where your program is spending most of its execution time
</td>
</tr>
<tr align="left" valign="top">
<td id="r9c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>profil</code>
</td>
<td headers="r9c1 r1c2" align="left" colspan="1" rowspan="1">Copies program counter information into a buffer
</td>
</tr>
<tr align="left" valign="top">
<td id="r10c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>top</code>
</td>
<td headers="r10c1 r1c2" align="left" colspan="1" rowspan="1">Displays the top processes on the system and periodically updates the information
</td>
</tr></tbody>
</table>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref315" name="sthref315"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
HP Performance Analysis Tools
</font>
</h4>
<p>The following HP-UX performance analysis tools are available:
</p>
<ul>
<li type="disc">
<p><a href="#i24418">GlancePlus/UX</a>
</p>
</li>
<li type="disc">
<p><a href="#i24422">HP PAK</a>
</p>
</li>
</ul><a id="i24418" name="i24418"></a>
<dl>
<dt>
<font size="-1" face="arial, helvetica, sans-serif">
<strong>G<a id="sthref316" name="sthref316"></a><a id="sthref317" name="sthref317"></a><a id="sthref318" name="sthref318"></a>lancePlus/UX
</strong>
</font>
</dt>
<p>This HP-UX utility is an online diagnostic tool that measures the system's activities. GlancePlus displays how system resources are being used. It displays dynamic information about the system's I/O, CPU, and memory usage in a series of screens. You can also use the utility to monitor how individual processes are using resources.
</p><a id="i24422" name="i24422"></a>
<dt>
<font size="-1" face="arial, helvetica, sans-serif">
<strong>HP PAK<a id="sthref319" name="sthref319"></a><a id="sthref320" name="sthref320"></a><a id="sthref321" name="sthref321"></a>
</strong>
</font>
</dt>
<p>HP Programmer's Analysis Kit (HP PAK) currently consists of two tools, Puma and Thread Trace Visualizer (TTV):
</p>
</dl>
<ul>
<li type="disc">
<p>Puma collects performance statistics during a program run. It provides several graphical displays for viewing and analyzing the collected statistics.
</p>
</li>
<li type="disc">
<p>TTV displays trace files produced by the instrumented thread library, <code>libpthread_tr.sl</code>, in a graphical format. It allows you to view how threads are interacting and to find where threads are blocked waiting for resources.
</p>
</li>
</ul>
<p>HP PAK is bundled with the HP FORTRAN 77, HP FORTRAN90, HP C, HP C++, HP ANSI C++, and HP Pascal compilers.
</p>
</div class="sect3">
</div class="sect2">
</div class="sect1"><a id="i19293" name="i19293"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref322" name="sthref322"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Tuning Memory Management <a id="sthref323" name="sthref323"></a><a id="sthref324" name="sthref324"></a>
</font>
</h2>
<p>Start the memory tuning process by measuring paging and swapping space to determine how much memory is available.<a id="sthref325" name="sthref325"></a><a id="sthref326" name="sthref326"></a><a id="sthref327" name="sthref327"></a><a id="sthref328" name="sthref328"></a><a id="sthref329" name="sthref329"></a><a id="sthref330" name="sthref330"></a><a id="sthref331" name="sthref331"></a> After you have determined your system's memory usage, tune the Oracle buffer cache.
</p>
<p><a id="sthref332" name="sthref332"></a>The Oracle buffer manager ensures that the more frequently accessed data is cached longer. If you monitor the buffer manager and tune the buffer cache, you can have a significant influence on Oracle9<em>i</em> performance. The optimal Oracle9<em>i</em> buffer size for your system depends on the overall system load and the relative priority of Oracle over other applications.<a id="sthref333" name="sthref333"></a>
</p>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref334" name="sthref334"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Allocate Sufficient Swap Space <a id="sthref335" name="sthref335"></a>
</font>
</h3>
<p>Try to minimize swapping because it causes significant UNIX overhead. To check for swapping, enter the <code>sar</code> or <code>vmstat</code> commands. For information on the appropriate options to use with the <code>sar</code> or <code>vmstat</code> commands, see the man pages.
</p>
<p>If your system is swapping and you must conserve memory:
</p>
<ul>
<li type="disc">
<p>Avoid running unnecessary system daemon<strong> </strong>processes or application processes.
</p>
</li>
<li type="disc">
<p>Decrease the number of database buffers to free some memory.
</p>
</li>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -