Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 297
- Log:
Updated to AWStats 7.0.
- Author:
- rool
- Date:
- Fri Mar 18 13:33:29 +0000 2011
- Size:
- 12590 Bytes
- Properties:
- Property svn:executable is set
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.58 $ - $Author: eldy $ - $Date: 2010/06/22 21:35:24 $ --> |
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 | <br> |
23 | <font style="font: 16pt arial,helvetica,sans-serif" color=#EEEEFF><b>AWStats logfile analyzer 7.0 Documentation</b></font><br> |
24 | <br> |
25 | </td> |
26 | <td bgcolor=#9999cc align=center> |
27 | |
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 | <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 | 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 | <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 a good choice for such web sites only if you use a dedicated server with a large amount of memory. Try a tool with less features but faster like "row counter log analyzers" like <a href="http://www.analog.cx">Analog</a> if not.</td></tr> |
92 | </table> |
93 | * You should set <a href="awstats_config.html#DNSLookup">DNSLookup</a> parameter to 0 (or 2) if<br> |
94 | - reverse DNS lookup is already done in your log file,<br> |
95 | - 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 | <!-- |
104 | Configuration used for tests: |
105 | |
106 | # cat /proc/cpuinfo |
107 | processor : 0 |
108 | vendor_id : GenuineIntel |
109 | cpu family : 15 |
110 | model : 4 |
111 | model name : Intel(R) Celeron(R) CPU 2.66GHz |
112 | stepping : 1 |
113 | cpu MHz : 2672.884 |
114 | cache size : 256 KB |
115 | fdiv_bug : no |
116 | hlt_bug : no |
117 | f00f_bug : no |
118 | coma_bug : no |
119 | fpu : yes |
120 | fpu_exception : yes |
121 | cpuid level : 5 |
122 | wp : yes |
123 | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid |
124 | bogomips : 5334.63 |
125 | |
126 | # free |
127 | mémoire : 524Mo |
128 | Mem: 505680k total, 492548k used, 13132k free, 18244k buffers |
129 | Swap: 522104k total, 12752k used, 509352k free, 188820k cached |
130 | --> |
131 | <br> |
132 | <br> |
133 | <a name="ADVICES"></a><b><u>SOME IMPORTANT ADVICES FOR A GOOD USE OF AWSTATS:</u></b><br> |
134 | <br> |
135 | <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png"> |
136 | - Check that <a href="awstats_config.html#DNSLookup">DNSLookup</a> is disabled in AWStats (DNSLookup should not |
137 | be set to 1). If you need a 'Country' report, you should prefer <b>using the 'geoip' plugin |
138 | using <a href="http://www.maxmind.com/app/perl?rId=awstats">Maxmind database</a> instead of a DNS lookup</b>. Those plugins allow you to have more accurate results, faster with no network queries (With |
139 | DNSLookup enabled, log analyze speed is decreased by 40 to 100 times, so use it only if required). |
140 | Note that without DNS lookup and without the 'geoip' plugins, 'Country' report might work but results will be |
141 | less accurate than the 'geoip' usage and it works only if hosts addresses in your log file are already resolved |
142 | (need to setup your web server to do so, your web server will be slowed).<br> |
143 | <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png"> |
144 | - 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> |
145 | (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>. |
146 | If you really need to use <a href="awstats_config.html#URLWithQuery">URLWithQuery</a>=1, check that |
147 | <a href="awstats_config.html#URLWithQueryWithOnlyFollowingParameters">URLWithQueryWithOnlyFollowingParameters</a> or |
148 | <a href="awstats_config.html#URLWithQueryWithoutFollowingParameters">URLWithQueryWithoutFollowingParameters</a> |
149 | are set properly.<br> |
150 | <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"><img src="images/star.png"> |
151 | - 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, |
152 | use standard Perl distribution instead of ActiveState</b>. This is because ActiveState 5.006 (and may be also |
153 | other versions), has very important memory hole problem making speed of analysis slower and slower |
154 | reaching 0 lines/seconds and using all your memory. You can see the decrease by adding the -showsteps option |
155 | on command line. The speed should be constant to value given in top of this page, even for |
156 | several Gigabytes log files !<br> |
157 | <img src="images/star.png"><img src="images/star.png"><img src="images/star.png"> |
158 | - <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>). |
159 | The more often you launch AWStats, the less AWStats has new lines in log to process. |
160 | This can also solve the ActiveState memory problem (see next advice).<br> |
161 | <img src="images/star.png"><img src="images/star.png"> |
162 | - Be sure that your <a href="awstats_config.html#HostAliases">HostAliases</a> parameter list is complete.<br> |
163 | <img src="images/star.png"><img src="images/star.png"> |
164 | - Use <b>last AWStats version</b> (For example AWStats 6.0 is 15% faster than 5.9).<br> |
165 | <img src="images/star.png"><img src="images/star.png"> |
166 | - For geeks users, you can also recompile your Perl with differents options. |
167 | For example, it seems that the "use64bitint=define usemymalloc=y" can increase speed by 10%. |
168 | <br> |
169 | |
170 | <hr> |
171 | |
172 | <script language=javascript> |
173 | var date='$Date: 2010/06/22 21:35:24 $'; |
174 | document.writeln("Last revision: "+date); |
175 | </script> |
176 | |
177 | </body> |
178 | </html> |