(file) Return to awstats_benchmark.html CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / awstats-6.3 / docs

  1 rizwank 1.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2             <html>
  3             <head>
  4             <meta name="description" content="AWStats Documentation - Benchmark page">
  5             <meta name="keywords" content="awstats, awstat, benchmark, speed, dns, lookup, time">
  6             <meta name="robots" content="index,follow">
  7             <meta name="title" content="AWStats Documentation - Benchmark page">
  8             <title>AWStats Documentation - Benchmark page</title>
  9             <link rel="stylesheet" href="styles.css" type="text/css">
 10             <!-- $Revision: 1.47 $ - $Author: eldy $ - $Date: 2004/12/18 22:04:20 $ -->
 11             </head>
 12             
 13             <body topmargin=10 leftmargin=5>
 14             
 15             
 16             <table style="font: 10pt arial,helvetica,verdana" cellpadding=0 cellspacing=0 border=0 bgcolor=#FFFFFF width=100%>
 17             
 18             <!-- Large -->
 19             <tr style="font: 10pt arial,helvetica,verdana">
 20             <td bgcolor=#9999cc align=center><a href="/"><img src="images/awstats_logo4.png" border=0></a></td>
 21             <td bgcolor=#9999cc align=center>
 22 rizwank 1.1 <br>
 23             <font style="font: 16pt arial,helvetica,sans-serif" color=#EEEEFF><b>AWStats logfile analyzer 6.3 Documentation</b></font><br>
 24             <br>
 25             </td>
 26             <td bgcolor=#9999cc align=center>
 27             &nbsp;
 28             </td>
 29             </tr>
 30             
 31             </table>
 32             
 33             
 34             <br><br><H1 style="font: 26px arial,helvetica,sans-serif">Benchmarks</H1>
 35             
 36             <br>
 37             AWStats update process must be ran frequently, so it's important to know what is AWStats
 38             speed to choose an optimum delay between each update process according to AWStats speed and
 39             the refresh rate you need to have.<br>
 40             AWStats speed depends on AWStats version and options/setup you use in configuration file.<br>
 41             
 42             <br>
 43 rizwank 1.1 <br>
 44             <b><u>This is benchmark results with AWStats version 6.0 and a common configuration:</u></b><br>
 45             <br>
 46             HARDWARE: Athlon 1 GHz / 256MB<br>
 47             SOFTWARE: Windows 2000 / Perl 5.8 (Cygwin Perl)<br>
 48             CONFIG OPTIONS: Default values were used: <a href="awstats_config.html#LogFormat">LogFormat</a>=1, <a href="awstats_config.html#DNSLookup">DNSLookup</a>=0, <a href="awstats_config.html#URLWithQuery">URLWithQuery</a>=0, <a href="awstats_config.html#URLReferrerWithQuery">URLReferrerWithQuery</a>=0, <a href="awstats_config.html#URLWithAnchor">URLWithAnchor</a>=0, No plugins<br>
 49             AVERAGE SPEED: <b>5200</b> lines by seconds<br>
 50             Other times for different kind of web sites sizes are shown later in this page...<br>
 51             
 52             <br>
 53             <br>
 54             <b><u>This is other important information to know:</u></b><br>
 55             <br>
 56             - A log file size is about <b>150</b> (NCSA common/CLF log files) to <b>320 times</b> (NCSA extended/XLF/ELF log files) its number of lines,<br>
 57             - <b>1,000 visits</b> = <b>8,000 pages</b> (with 8 pages/visits) = <b>64,000 lines</b> (with 8 hits/page) = <b>20 MB file</b> => <b>15 seconds</b> (Athlon 1GHz, Standard Perl 5.8)<br>
 58             - History files (AWStats database, resuming the log analysis) has the following size (one file a month) :
 59             <b>15000+90*x+100*y bytes</b> (where x is number of unique visitors a month and y is number of different pages on web sites).
 60             If you use option <a href="awstats_config.html#BuildHistoryFormat">BuildHistoryFormat</a>=xml, you must 
 61             multiplie this value by 3.<br>
 62             <br>
 63             WARNING ! All those data are average values for a common public site with default configuration.
 64 rizwank 1.1 Calculation rule can be seriously changed according to web server or AWStats configuration and web site content.<br>
 65             
 66             <br>
 67             Don't forget that benchmarks of log analyzers are made without reverse DNS lookup because DNS
 68             lookup is so slow (depending on Internet network and your system), that if enabled in AWStats
 69             configuration file, it would take more than <b>99%</b> of the time of a log analysis !
 70             Take a look at the following chart to:<br>
 71             - Get more real ideas on benchmarks results<br>
 72             - Get more information and advice on a good setup for your site.<br>
 73             
 74             <br>
 75             <br>
 76             <b><u>This is examples of frequency/parameters you should use to have a good use of AWStats:</u></b><br>
 77             <br>
 78             <table border=1 cellspacing=0 cellpadding=2 style="font: 12px; arial,verdana">
 79             <tr bgcolor=#EEEEEE><td rowspan=2>Your Web site traffic</td><td rowspan=2>Perl distrib</td><td colspan=3>Values for parameters</td><td rowspan=2>Recommended update frequency<br>(Rotate log delay)</td><td rowspan=2>Memory required**</td><td rowspan=2>Update process duration***</td></tr>
 80             <tr bgcolor=#EEEEEE><td>DNSLookup*</td><td>URLWithQuery</td><td>URLReferrerWithQuery</td></tr>
 81             <tr><td rowspan=2>     0 -     1,000 visits/month</td><td rowspan=2>Your choice</td><td>0 (or 2)</td><td>0 or 1</td><td>0 or 1</td><td>Once a day<br>Log files are 0-1 MB<br>2000 lines to process</td><td>4 MB free</td><td>1s</td></tr>
 82             <tr>                                                                                <td>1</td><td>0 or 1</td><td>0 or 1</td><td>Once a day<br>Log files are 0-1 MB<br>2000 lines to process</td><td>4 MB free</td><td>2mn</td></tr>
 83             <tr><td rowspan=2> 1,000 -    10,000 visits/month</td><td rowspan=2>Your choice</td><td>0 (or 2)</td><td>0 or 1</td><td>0 or 1</td><td>Once a day<br>Log files are 1-10 MB<br>2000-20000 lines</td><td>4-8 MB free</td><td>1s-10s</td></tr>
 84             <tr>                                                                                <td>1</td><td>0 or 1</td><td>0 or 1</td><td>Once a day<br>Log files are 1-10 MB<br>2000-20000 lines</td><td>4-8 MB free</td><td>2mn-10mn</td></tr>
 85 rizwank 1.1 <tr><td rowspan=2>10,000 -    100,000 visits/month</td><td rowspan=2>Your choice</td><td>0 (or 2)</td><td>0 or 1</td><td>0 or 1</td><td>One a day<br>Log Files are 10-100 MB<br>20000-200000 lines</td><td>8-32 MB free</td><td>10s-120s</td></tr>
 86             <tr>                                                                                 <td>1</td><td>0 or 1</td><td>0 or 1</td><td>Once a day<br>Log files are 10-100 MB<br>20000-200000 lines</td><td>8-32 MB free</td><td>10mn-50mn</td></tr>
 87             <tr><td rowspan=2>100,000 -   500,000 visits/month</td><td rowspan=2>Your choice</td><td>0 (or 2)</td><td>0</td><td>0 or 1</td><td>Every 6 hours<br>Log Files are 24-96 MB<br>50000-300000 lines</td><td>16-92 MB free</td><td>30s-3mn</td></tr>
 88             <tr>                                                                                 <td>1</td><td>0</td><td>0 or 1</td><td>Every 6 hours<br>Log Files are 24-96 MB<br>50000-300000 lines</td><td>16-92 MB free</td><td>15mn-60mn</td></tr>
 89             <tr><td>         500,000 - 2,000,000 visits/month</td><td>See next section on pb with ActiveState</td><td>0 (or 2)</td><td>0</td><td>0</td><td>Every 6 hours<br>Log Files are 96-384 MB<br>300000-1200000 lines</td><td>64-256 MB free</td><td>3mn-12mn</td></tr>
 90             <tr><td>       2,000,000 - 4,000,000 visits/month</td><td>See next section on pb with ActiveState</td><td>0 (or 2)</td><td>0</td><td>0</td><td>Every 6 hours<br>Log Files are 384-768 MB<br>1200000-2400000 lines</td><td>256-512 MB free</td><td>12mn-24mn</td></tr>
 91             <tr><td>      +4,000,000 visits/month</td><td>See next section on pb with ActiveState</td><td colspan=6>AWStats is not a good choice for such web sites. Try a tool with less features but faster like "row counter log analyzers" like <a href="http://www.analog.cx">Analog</a> (Can try also <a href="http://www.mrunix.net/webalizer/">Webalizer</a>)</td></tr>
 92             </table>
 93             * You should set <a href="awstats_config.html#DNSLookup">DNSLookup</a> parameter to 0 (or 2) if<br>
 94             &nbsp;&nbsp; &nbsp;&nbsp; - reverse DNS lookup is already done in your log file,<br>
 95             &nbsp;&nbsp; &nbsp;&nbsp; - or if your web site has more than 250,000 visits a month.<br>
 96             Note: Country report can works without reverse DNS lookup if plugin 'geoip' is enabled (faster and more accurate than reverse DNS lookup).<br>
 97             ** This is free memory required for update process (in MB), this is not hardware memory installed !<br>
 98             Warning: If you use the <a href="awstats_config.html#URLWithQuery">URLWithQuery</a> or <a href="awstats_config.html#URLReferrerWithQuery">URLReferrerWithQuery</a> option, or forget
 99             to complete correctly <a href="awstats_config.html#URLQuerySeparators">URLQuerySeparators</a> for some sites, this value can be dramatically increased.<br>
100             *** Duration with DNSLookup set to 1 is very long because of DNS lookup whatever is speed of your computer.
101             Duration with DNSLookup set to 0 (or 2) is with Athlon 1GHz/256MB, Cygwin Perl 5.8 and LogFormat=1.<br>
102             
103             <br>
104             <br>
105             <a name="ADVICES"></a><b><u>SOME IMPORTANT ADVICES FOR A GOOD USE OF AWSTATS:</u></b><br>
106 rizwank 1.1 <br>
107             <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png">
108             - Check that <a href="awstats_config.html#DNSLookup">DNSLookup</a> is disabled in AWStats (DNSLookup should not
109             be set to 1). <b>If you need a 'Country' report, you should prefer using the 'geoip' or 'geoipfree' plugin
110             instead of DNS lookup</b>. Those plugins allow you to have more accurate results, faster with no network queries (With
111             DNSLookup enabled, log analyze speed is decreased by 40 to 100 times, so use it only if required).
112             Note that without DNS lookup and without the 'geoip' plugins, 'Country' report might work but results will be
113             less accurate than the 'geoip' usage and it works only if hosts addresses in your log file are already resolved
114             (need to setup your web server to do so, your web server will be slowed).<br>
115             <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png">
116             - Use carefully parameters <a href="awstats_config.html#URLWithQuery">URLWithQuery</a>, <a href="awstats_config.html#URLReferrerWithQuery">URLReferrerWithQuery</a> and <a href="awstats_config.html#URLWithAnchor">URLWithAnchor</a>
117             (Let them set to 0 if you don't know what they means) and check your web site URLs' syntax to know if you don't need to complete the parameter <a href="awstats_config.html#URLQuerySeparators">URLQuerySeparators</a>.
118             If you really need to use <a href="awstats_config.html#URLWithQuery">URLWithQuery</a>=1, check that
119             <a href="awstats_config.html#URLWithQueryWithOnlyFollowingParameters">URLWithQueryWithOnlyFollowingParameters</a> or
120             <a href="awstats_config.html#URLWithQueryWithoutFollowingParameters">URLWithQueryWithoutFollowingParameters</a>
121             are set properly.<br>
122             <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png">
123             - Use <b>last Perl version</b> (For example Perl 5.8 is 5% faster than 5.6) and, more important, <b>for large log files,
124             use standard Perl distribution instead of ActiveState</b>. This is because ActiveState 5.006 (and may be also
125             other versions), has very important memory hole problem making speed of analysis slower and slower
126             reaching 0 lines/seconds and using all your memory. You can see the decrease by adding the -showsteps option
127 rizwank 1.1 on command line. The speed should be constant to value given in top of this page, even for
128             several Gigabytes log files !<br>
129             <img src="images/star.png"><img src="images/star.png"><img src="images/star.png">
130             - <b>Rotate your log</b> (See <a href="awstats_faq.html#ROTATE">FAQ-SET500</a>) and launch AWStats more often (from crontab or a scheduler, See <a href="awstats_faq.html#CRONTAB">FAQ-SET550</a>).
131             The more often you launch AWStats, the less AWStats has new lines in log to process.
132             This can also solve the ActiveState memory problem (see next advice).<br>
133             <img src="images/star.png"><img src="images/star.png">
134             - Be sure that your <a href="awstats_config.html#HostAliases">HostAliases</a> parameter list is complete.<br>
135             <img src="images/star.png"><img src="images/star.png">
136             - Use <b>last AWStats version</b> (For example AWStats 6.0 is 15% faster than 5.9).<br>
137             <img src="images/star.png"><img src="images/star.png">
138             - For geeks users, you can also recompile your Perl with differents options.
139             For example, it seems that the "use64bitint=define usemymalloc=y" can increase speed by 10%.
140             <br>
141             
142             <hr>
143             
144             <script language=javascript>
145             	var date='$Date: 2004/12/18 22:04:20 $';
146             	document.writeln("Last revision: "+date);
147             </script>
148 rizwank 1.1 
149             </body>
150             </html>

Rizwan Kassim
Powered by
ViewCVS 0.9.2