<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>TechniTip.Net &#187; tuning</title> <atom:link href="http://technitip.net/tag/tuning/feed" rel="self" type="application/rss+xml" /><link>http://technitip.net</link> <description>TechniTip.Net - Useful tips regarding technical stuff for things like Linux, MySQL, Apache, PHP, Linux Server, iPhone and more.</description> <lastBuildDate>Sun, 05 Sep 2010 09:32:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <image><link>http://technitip.net</link> <url>http://technitip.net/wp-content/plugins/maxblogpress-favicon/icons/favicon-66.ico</url><title>TechniTip.Net</title> </image> <item><title>Windows 7 Performance Tuning</title><link>http://technitip.net/windows-7-performance-tuning</link> <comments>http://technitip.net/windows-7-performance-tuning#comments</comments> <pubDate>Sat, 12 Sep 2009 20:50:20 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[tuning]]></category> <category><![CDATA[Windows 7]]></category><guid isPermaLink="false">http://technitip.net/?p=1202</guid> <description><![CDATA[Found a few tips on support.microsoft.com how to improve the performance of Windows Vista. Checking my Windows 7 installation it seems that these tips seem also apply to Windows 7. Unfortunately I could not found the English version of this support entry (KB954980), only in German language, but I think it should be understandable because [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/mysql-performance-tips' rel='bookmark' title='Permanent Link: MySQL Performance Tips'>MySQL Performance Tips</a></li><li><a href='http://technitip.net/dell-d820-4gb-memory-upgrade-problem' rel='bookmark' title='Permanent Link: Dell D820 4GB Memory Upgrade Problem'>Dell D820 4GB Memory Upgrade Problem</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>Found a few tips on<a title="support.microsoft.com" href="http://support.microsoft.com" target="_blank"> support.microsoft.com</a> how to improve the performance of Windows Vista. Checking my Windows 7 installation it seems that these tips seem also apply to Windows 7. Unfortunately I could not found the English version of this support entry (KB954980), only in German language, but I think it should be understandable because of the many pictures:</p><ul><li><a title="Improve Windows Vista Performance" href="http://support.microsoft.com/kb/954980/de" target="_blank">Improve Windows Vista Performance</a></li></ul><p>Basically the article describes 4 things which help to improve the performance:</p><ol><li>Part 2: Improve boot time using Windows ReadyBoost</li><li>Part 3: Disable Windows Aero</li><li>Part 4: Use extended hard disc write cache</li><li>Part 5: Disable unused hardware</li></ol><p>On my Windows 7 installation I followed item 1. and 3. Think I have to make further checks how much it improves performance.</p><p>Especially item 1. ReadyBoost sounds interesting: Windows uses a USB stick or flash memory card to as additional cache. But I don&#8217;t want to use a USB stick, I want to use a PCI Express flash card adapter with a very fast memory card. Guess this should bring best performance.</p><p>After first checks my Windows 7 installation boots in about 1:45 minutes (completely). Looks not so bad, since I&#8217;ve already installed software like Photoshop, Office, iTunes, etc. The real boot time of Windows 7 is slightly lower than BIOS start up also needs time, approx. 7 seconds.</p><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fwindows-7-performance-tuning&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/mysql-performance-tips' rel='bookmark' title='Permanent Link: MySQL Performance Tips'>MySQL Performance Tips</a></li><li><a href='http://technitip.net/dell-d820-4gb-memory-upgrade-problem' rel='bookmark' title='Permanent Link: Dell D820 4GB Memory Upgrade Problem'>Dell D820 4GB Memory Upgrade Problem</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/windows-7-performance-tuning/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>MySQL Performance Tips</title><link>http://technitip.net/mysql-performance-tips</link> <comments>http://technitip.net/mysql-performance-tips#comments</comments> <pubDate>Sun, 11 Jan 2009 11:20:05 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[PHP/MySQL]]></category> <category><![CDATA[my.cnf]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tuning]]></category><guid isPermaLink="false">http://technitip.net/?p=336</guid> <description><![CDATA[Optimizing a MySQL server is probably not very easy. It depends on your database structure, how many users are accessing your server and so on. Basics But there are a few things which could help to improve your performance. On my configuration I&#8217;ve added skip-name-resolve in my.cnf: [mysqld] skip-name-resolve Now the MySQL server will not [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/windows-7-performance-tuning' rel='bookmark' title='Permanent Link: Windows 7 Performance Tuning'>Windows 7 Performance Tuning</a></li><li><a href='http://technitip.net/mysql-optimize-script' rel='bookmark' title='Permanent Link: MySQL Optimize Script'>MySQL Optimize Script</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>Optimizing a MySQL server is probably not very easy. It depends on your database structure, how many users are accessing your server and so on.</p><p><strong>Basics</strong></p><p>But there are a few things which could help to improve your performance. On my configuration I&#8217;ve added skip-name-resolve in my.cnf:</p><pre>[mysqld]
skip-name-resolve</pre><p>Now the MySQL server will not do any DNS name resolves. Please note that permissions based on hostnames will no longer work!</p><p>For security reasons I would also recommend binding only to the localhost address. Using this the MySQL server is not reachable on the Ethernet interface. In earlier version of MySQL this was usually done with the skip-networking parameter.</p><pre>[mysqld]
bind-address    = 127.0.0.1</pre><p>And I&#8217;ve added skip-external-locking and skip-locking:</p><pre>[mysqld]

skip-external-locking
skip-locking</pre><p>This could also improve your performance.</p><p><strong>Search Length</strong></p><p>For text search queries with a allowed length of 2 characters add this line:</p><pre>ft_min_word_len="2"</pre><p>Otherwise default minimum length is 3 characters, which means that a search query &#8220;select * like &#8216;%AB%&#8217;&#8221; will never return any data.</p><p><strong>Cache Settings</strong></p><p>Caching seems to be a very important thing when optimizing your server. My feeling is that the standard configuration of a MySQL server is not really designed for machines with 1 GByte memory or above.</p><p>Below is my configuration, with a few cache settings increased.</p><pre>[mysqld]
query_cache_limit    =  1M
query_cache_size     = 32M
thread_cache_size    =  8
join_buffer          =  1M
table_cache          = 16M
sort_buffer_size     =  2M
read_buffer_size     =  2M
read_rnd_buffer_size =  2M
tmp_table_size       = 48M
max_allowed_packet   = 16M
thread_stack         = 128K
key_buffer_size      = 32M</pre><p>This configuration works on a machine with 1 GByte RAM and several databases running. Basically I recommend to increase the cache size settings. And memory helps almost always.</p><p>Applies to MySQL version: 5.0.32</p><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fmysql-performance-tips&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/windows-7-performance-tuning' rel='bookmark' title='Permanent Link: Windows 7 Performance Tuning'>Windows 7 Performance Tuning</a></li><li><a href='http://technitip.net/mysql-optimize-script' rel='bookmark' title='Permanent Link: MySQL Optimize Script'>MySQL Optimize Script</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/mysql-performance-tips/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Apache Tuning Part 3</title><link>http://technitip.net/apache-tuning-part-3</link> <comments>http://technitip.net/apache-tuning-part-3#comments</comments> <pubDate>Tue, 30 Dec 2008 11:18:38 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[tuning]]></category><guid isPermaLink="false">http://planlos.org/~harry/php/?p=50</guid> <description><![CDATA[Some further settings which worked well for a server (1GB RAM, single CPU) with max. 120 users simultaneously and doing some video streaming. Settings are found in /etc/apache2/apache.conf Timeout 30 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 5 &#60;IfModule mpm_prefork_module&#62; StartServers         16 ServerLimit         512 MinSpareServers      16 MaxSpareServers      128 MaxClients          256 MaxRequestsPerChild 55555 &#60;/IfModule&#62; HostnameLookups Off ServerTokens Prodme [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/apache-tuning-part-2' rel='bookmark' title='Permanent Link: Apache Tuning Part 2'>Apache Tuning Part 2</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>Some further settings which worked well for a server (1GB RAM, single CPU) with max. 120 users simultaneously and doing some video streaming. Settings are found in /etc/apache2/apache.conf</p><pre>Timeout 30

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5

&lt;IfModule mpm_prefork_module&gt;
StartServers         16
ServerLimit         512
MinSpareServers      16
MaxSpareServers      128
MaxClients          256
MaxRequestsPerChild 55555
&lt;/IfModule&gt;

HostnameLookups Off

ServerTokens Prodme
ServerSignature Off
UseCanonicalName Off
TraceEnable Off</pre><p>HostNameLookups Off are recommended in any case.</p><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fapache-tuning-part-3&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/apache-tuning-part-2' rel='bookmark' title='Permanent Link: Apache Tuning Part 2'>Apache Tuning Part 2</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/apache-tuning-part-3/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Apache Tuning Part 2</title><link>http://technitip.net/apache-tuning-part-2</link> <comments>http://technitip.net/apache-tuning-part-2#comments</comments> <pubDate>Tue, 30 Dec 2008 11:12:57 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[tuning]]></category><guid isPermaLink="false">http://planlos.org/~harry/php/?p=43</guid> <description><![CDATA[Let&#8217;s assume your web server has high disc IO. Every access to a .PHP, .HTML, .JPG, .GIF, etc wil cause a log entry which will be stored on hard disc. In such a case it helps to disable all apache loggings. You can check the opened log file from apache using the command: lsof &#124;grep [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li><li><a href='http://technitip.net/apache-tuning-part-3' rel='bookmark' title='Permanent Link: Apache Tuning Part 3'>Apache Tuning Part 3</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>Let&#8217;s assume your web server has high disc IO. Every access to a .PHP, .HTML, .JPG, .GIF, etc wil cause a log entry which will be stored on hard disc. In such a case it helps to <strong>disable all apache loggings</strong>.</p><p>You can check the opened log file from apache using the command:</p><pre>lsof |grep apache|grep log</pre><p>Oh yes, if you serve lot&#8217;s of domains on your server this list will be quite long. To disable logging just uncomment the corresponding lines e.g. in your virtual host definition:</p><pre>#ErrorLog /var/log/apachd2/mydonain.de-error_log

#CustomLog /var/log/apache2/mydomain.de-access_log combined</pre><p>Afterwards check your apace configuration for errors:</p><pre>apache2ctl -t</pre><p>In case of syntax OK just restart your apache server:</p><pre>apache2ctl -k graceful</pre><p>This command is qute because it does a &#8220;graceful&#8221; restart without anoying users accesing your server right now.</p><p><strong>Hint</strong></p><p>How to check if my disc IO is high?</p><p>Use the command &#8220;vmstat 1&#8243; and check the section &#8220;IO&#8221; (what else&#8230;). You will see bi and bo which means blocks received and blocks sent. In case the numbers are high, you will have high disc IO.</p><pre>procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
0  0 659476  41604   8732 347304    3    3    37    41   20   14 19  7 58 16
3  0 659476  41604   8732 347336    0    0     0     0  410  314  7  0 93  0
0  0 659476  41464   8740 347328    0    0     0   424  522  321 11  1 86  2</pre><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fapache-tuning-part-2&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li><li><a href='http://technitip.net/apache-tuning-part-1' rel='bookmark' title='Permanent Link: Apache Tuning Part 1'>Apache Tuning Part 1</a></li><li><a href='http://technitip.net/apache-tuning-part-3' rel='bookmark' title='Permanent Link: Apache Tuning Part 3'>Apache Tuning Part 3</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/apache-tuning-part-2/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Apache Tuning Part 1</title><link>http://technitip.net/apache-tuning-part-1</link> <comments>http://technitip.net/apache-tuning-part-1#comments</comments> <pubDate>Tue, 30 Dec 2008 10:44:04 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[tuning]]></category><guid isPermaLink="false">http://planlos.org/~harry/php/?p=32</guid> <description><![CDATA[This article applies to apache version 2.2.3 also it will work for other versions. Apache needs a lot of memory, this will decrease performance on a machine with e.g. 1 GByte memory and about 60 users accessing the server simultaneously a lot. There is a simply method to save memory: disable all unused modules. Yes, [...]<div style="clear: both;"> <strong>Related posts:</strong><ol><li><a href='http://technitip.net/apache-tuning-part-2' rel='bookmark' title='Permanent Link: Apache Tuning Part 2'>Apache Tuning Part 2</a></li><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li><li><a href='http://technitip.net/apache-tuning-part-3' rel='bookmark' title='Permanent Link: Apache Tuning Part 3'>Apache Tuning Part 3</a></li></ol></div>]]></description> <content:encoded><![CDATA[<p>This article applies to apache version 2.2.3 also it will work for other versions.</p><p>Apache needs a lot of memory, this will decrease performance on a machine with e.g. 1 GByte memory and about 60 users accessing the server simultaneously a lot. There is a simply method to save memory: <strong>disable all unused modules</strong>. Yes, it really helps!</p><p>Why does it help? Because every apache process started &#8211; and a lot will be started when several users are accessing the server &#8211; will load all enabled modules.</p><p>To get an overview how much memory is consumed by the modules use the command</p><pre>lsof | grep apache | grep modules</pre><p>Using this command you will also see which modules consumes much memory.</p><p>In my case only the following modules are used:</p><ul><li>actions.load</li><li>authz_default.load</li><li>authn_file.load</li><li>auth_basic.load</li><li>authz_user.load</li><li>env.load</li><li>mime.load</li><li>rewrite.load</li><li>userdir.load</li><li>alias.load</li><li>authz_host.load</li><li>deflate.load</li><li>expires.load</li><li>negotiation.load</li><li>setenvif.load</li><li>headers.load</li><li>speling.load</li><li>cgi.load</li><li>dir.load</li><li>include.load</li><li>php5.load</li></ul><p>Modules which are not needed are disabled using the command</p><pre>a2dismod &lt;module_name&gt;</pre><div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechnitip.net%2Fapache-tuning-part-1&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 50px;"></iframe></div><div style="clear: both;"><p><strong>Related posts:</strong><ol><li><a href='http://technitip.net/apache-tuning-part-2' rel='bookmark' title='Permanent Link: Apache Tuning Part 2'>Apache Tuning Part 2</a></li><li><a href='http://technitip.net/howto-restart-apache-graceful' rel='bookmark' title='Permanent Link: Howto Restart Apache Graceful'>Howto Restart Apache Graceful</a></li><li><a href='http://technitip.net/apache-tuning-part-3' rel='bookmark' title='Permanent Link: Apache Tuning Part 3'>Apache Tuning Part 3</a></li></ol></p></div>]]></content:encoded> <wfw:commentRss>http://technitip.net/apache-tuning-part-1/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>