home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 May / Gamestar_62_2004-05_dvd.iso / Programy / apache_2.0.48-win32-x86-no_ssl.msi / Data.Cab / F252846_perfhp.xml < prev    next >
Extensible Markup Language  |  2003-04-15  |  4KB  |  96 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
  3. <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
  4.  
  5. <manualpage metafile="perf-hp.xml.meta">
  6.   <parentdocument href="./">Platform Specific Notes</parentdocument>
  7.  
  8.   <title>Running a High-Performance Web Server on HPUX</title>
  9.  
  10.   <summary>
  11.  
  12. <pre>
  13. Date: Wed, 05 Nov 1997 16:59:34 -0800
  14. From: Rick Jones <<a
  15. href="mailto:raj@cup.hp.com">raj@cup.hp.com</a>>
  16. Reply-To: <a href="mailto:raj@cup.hp.com"
  17. >raj@cup.hp.com</a>
  18. Organization: Network Performance
  19. Subject: HP-UX tuning tips
  20. </pre>
  21.  
  22.     <p>Here are some tuning tips for HP-UX to add to the tuning page.</p>
  23.  
  24.     <p>For HP-UX 9.X: Upgrade to 10.20<br />
  25.     For HP-UX 10.[00|01|10]: Upgrade to 10.20</p>
  26.  
  27.     <p>For HP-UX 10.20:</p>
  28.  
  29.     <p>Install the latest cumulative ARPA Transport Patch. This
  30.     will allow you to configure the size of the TCP connection
  31.     lookup hash table. The default is 256 buckets and must be set
  32.     to a power of two. This is accomplished with adb against the
  33.     *disc* image of the kernel. The variable name is <code>tcp_hash_size</code>.
  34.     Notice that it's critically important that you use "<code>W</code>"
  35.     to write a 32 bit quantity, not "<code>w</code>" to write a 16 bit
  36.     value when patching the disc image because the <code>tcp_hash_size</code>
  37.     variable is a 32 bit quantity.</p>
  38.  
  39.     <p>How to pick the value? Examine the output of <a
  40.     href="ftp://ftp.cup.hp.com/dist/networking/tools/connhist"
  41.     >ftp://ftp.cup.hp.com/dist/networking/tools/connhist</a>
  42.     and see how many total TCP connections exist on the system. You
  43.     probably want that number divided by the hash table size to be
  44.     reasonably small, say less than 10. Folks can look at HP's
  45.     SPECweb96 disclosures for some common settings. These can be
  46.     found at <a
  47.     href="http://www.specbench.org/">http://www.specbench.org/</a>.
  48.     If an HP-UX system was performing at 1000 SPECweb96 connections
  49.     per second, the <code>TIME_WAIT</code> time of 60 seconds would mean
  50.     60,000 TCP "connections" being tracked.</p>
  51.  
  52.     <p>Folks can check their listen queue depths with <a
  53.     href="ftp://ftp.cup.hp.com/dist/networking/misc/listenq"
  54.     >ftp://ftp.cup.hp.com/dist/networking/misc/listenq</a>.</p>
  55.  
  56.     <p>If folks are running Apache on a PA-8000 based system, they
  57.     should consider "chatr'ing" the Apache executable to have a
  58.     large page size. This would be "<code>chatr +pi L <BINARY></code>".
  59.     The GID of the running executable must have <code>MLOCK</code> privileges.
  60.     <code>Setprivgrp(1m)</code> should be consulted for assigning
  61.     <code>MLOCK</code>. The change can be validated by running Glance
  62.     and examining the memory regions of the server(s) to make sure that
  63.     they show a non-trivial fraction of the text segment being locked.</p>
  64.  
  65.     <p>If folks are running Apache on MP systems, they might
  66.     consider writing a small program that uses <code>mpctl()</code>
  67.     to bind processes to processors. A simple <code>pid % numcpu</code>
  68.     algorithm is probably sufficient. This might even go into the
  69.     source code.</p>
  70.  
  71.     <p>If folks are concerned about the number of <code>FIN_WAIT_2</code>
  72.     connections, they can use nettune to shrink the value of
  73.     <code>tcp_keepstart</code>. However, they should be careful there -
  74.     certainly do not make it less than oh two to four minutes. If
  75.     <code>tcp_hash_size</code> has been set well, it is probably OK to
  76.     let the <code>FIN_WAIT_2</code>'s take longer to timeout (perhaps
  77.     even the default two hours) - they will not on average have a big
  78.     impact on performance.</p>
  79.  
  80.     <p>There are other things that could go into the code base, but
  81.     that might be left for another email. Feel free to drop me a
  82.     message if you or others are interested.</p>
  83.  
  84.     <p>sincerely,</p>
  85.  
  86.     <p>rick jones</p>
  87.  
  88.     <p><a href="http://www.cup.hp.com/netperf/NetperfPage.html"
  89.     >http://www.cup.hp.com/netperf/NetperfPage.html</a></p>
  90.  
  91.   </summary>
  92.  
  93. </manualpage>
  94.  
  95.  
  96.