<?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"
	>

<channel>
	<title>UnixGuys</title>
	<atom:link href="http://unixguys.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://unixguys.org</link>
	<description>Got a little geek in you?</description>
	<pubDate>Sun, 22 Feb 2009 03:40:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Part 3: Tuning a 1&#38;1 VPS to improve a vBulletin board.</title>
		<link>http://unixguys.org/?p=9</link>
		<comments>http://unixguys.org/?p=9#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:35:19 +0000</pubDate>
		<dc:creator>HKP30</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[key_buffer]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Performance]]></category>

		<category><![CDATA[Read_buffer]]></category>

		<category><![CDATA[Sort_buffer]]></category>

		<category><![CDATA[Table_Cache]]></category>

		<category><![CDATA[Tuning]]></category>

		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://unixguys.org/?p=9</guid>
		<description><![CDATA[The tuning step taken to improve the performance of our vBulletin site hosted at 1&#38;1 on a VPS was tuning.  I simply adjusted the following cache and buffer sizes to match the list below.

 key_buffer=64M
 table_cache=256
 sort_buffer=4M
read_buffer_size=1M

This is up from an 8M Key_buffer, 128 table_cache, 2M sort_buffer, and 512k read_buffer_size.  The command issued to make [...]]]></description>
			<content:encoded><![CDATA[<p>The tuning step taken to improve the performance of our vBulletin site hosted at 1&amp;1 on a VPS was tuning.  I simply adjusted the following cache and buffer sizes to match the list below.</p>
<ul>
<li> key_buffer=64M</li>
<li> table_cache=256</li>
<li> sort_buffer=4M</li>
<li>read_buffer_size=1M</li>
</ul>
<p>This is up from an 8M Key_buffer, 128 table_cache, 2M sort_buffer, and 512k read_buffer_size.  The command issued to make these changes looks similar to this.</p>
<blockquote><p>mysqld_safe -O key_buffer=64M -O table_cache=256 -O sort_buffer=4M -O read_buffer_size=1M -u admin -p &amp;</p></blockquote>
<p>I don&#8217;t have any concrete benchmarks saved that show the performance gained by making this change, however using the page load timer in YSlow I have noticed that the time it takes for the &#8220;New Posts&#8221; search button to render page 1 has dropped from a rough average of  3.5 seconds down to an average of 2.5 seconds.  Any page that doesn&#8217;t have a lot of images hosted off site feels much faster now while browsing around.</p>
<p>If you have any questions about the tuning I&#8217;ve done please feel free to comment.  I will be sure to respond.  If you would like help tuning your vBulletin board I might be available to help with that as well.  The tuning techniques I&#8217;ve outlined in these three posts don&#8217;t just affect vBulletin users.  WordPress, Drupal, Joomla, and any other PHP, and MySQL based site will benefit from them.</p>
<p>With three fairly easy tuning techniques our vBulletin site is dramatically faster.  Next steps if deemed necessary will include adjusting table indexes in MySQL, and adjusting queries in vBulletin itself to make use of the indexes.  Be sure to check back for updates.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>BookMarkMe</div><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://unixguys.org/?p=9&amp;title=Part 3: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] '  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://unixguys.org/?p=9&amp;title=Part 3: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] '  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://unixguys.org/?p=9&amp;title=Part 3: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] '  /></a> <a href='http://technorati.com/faves?add=http://unixguys.org/?p=9' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] '  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://unixguys.org/?p=9&amp;t=Part 3: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!] '  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Part 3: Tuning a 1&amp;1 VPS to improve a vBulletin board.&amp;uri=http://unixguys.org/?p=9&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] '  /></a>  <a title='See more bookmark and sharing options...' href='http://unixguys.org/?p=9#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://unixguys.org/?feed=rss2&amp;p=9</wfw:commentRss>
		</item>
		<item>
		<title>Part 2: Tuning a 1&#38;1 VPS to improve a vBulletin board.</title>
		<link>http://unixguys.org/?p=8</link>
		<comments>http://unixguys.org/?p=8#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:35:13 +0000</pubDate>
		<dc:creator>HKP30</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[APC]]></category>

		<category><![CDATA[Op-Code Cache]]></category>

		<category><![CDATA[Performance]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tuning]]></category>

		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://unixguys.org/?p=8</guid>
		<description><![CDATA[In part 2 of tuning a 1&#38;1 VPS to improve vBulletin I installed an Op-Code Cache utility. Because PHP is an interpreted language using simply mod_php requires the code to be read, interpreted, and compiled on the fly each time a page loads. This doesn&#8217;t take very long on modern computers. However the more traffic [...]]]></description>
			<content:encoded><![CDATA[<p>In part 2 of tuning a 1&amp;1 VPS to improve vBulletin I installed an Op-Code Cache utility. Because PHP is an interpreted language using simply mod_php requires the code to be read, interpreted, and compiled on the fly each time a page loads. This doesn&#8217;t take very long on modern computers. However the more traffic your site gets obviously the more even milliseconds add up.</p>
<p>I looked at several Op-Code Cache utilities, and after some discussion with another tech decided not to use <a href="http://eaccelerator.net/">eAccelerator</a> but rather <a href="http://pecl.php.net/package/APC">APC</a>. In part because of the simplicity of installation, and because it&#8217;s going to be included as a core part of PHP 6. I would like to thank <a href="http://twitter.com/floris">@floris</a> for this post on <a href="http://mrfloris.com/vbulletin/installing-apc-on-centos-5-server/">installing APC on CentOS</a></p>
<p>Below are benchmarks run using Apache Bench: <em><strong>ingo # ab -c 100 -t 5000 website.com/forums</strong></em></p>
<p>APC disabled Performance:</p>
<blockquote><p>Concurrency Level:      100<br />
Time taken for tests:   53.368813 seconds<br />
Complete requests:      50000<br />
Failed requests:        0<br />
Write errors:           0<br />
Non-2xx responses:      50000<br />
Total transferred:      28500000 bytes<br />
HTML transferred:       15900000 bytes<br />
Requests per second:    936.88 [#/sec] (mean)<br />
Time per request:       106.738 [ms] (mean)<br />
Time per request:       1.067 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          521.50 [Kbytes/sec] received</p></blockquote>
<p>APC Enabled Performance:</p>
<blockquote><p>Concurrency Level:      100<br />
Time taken for tests:   33.140479 seconds<br />
Complete requests:      50000<br />
Failed requests:        0<br />
Write errors:           0<br />
Non-2xx responses:      50000<br />
Total transferred:      28500000 bytes<br />
HTML transferred:       15900000 bytes<br />
Requests per second:    1508.73 [#/sec] (mean)<br />
Time per request:       66.281 [ms] (mean)<br />
Time per request:       0.663 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          839.82 [Kbytes/sec] received</p></blockquote>
<p>As you can see our requests per second went up by 61% which is a pretty big deal. Also our mean time per request dropped. All in all for a fairly simple installation this was a worth while improvement.</p>
<p>In Part 3, we&#8217;ll discuss some extremely minor MySQL tuning I did which made quite possibly the biggest difference of them all as far as performance.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>BookMarkMe</div><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://unixguys.org/?p=8&amp;title=Part 2: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] '  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://unixguys.org/?p=8&amp;title=Part 2: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] '  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://unixguys.org/?p=8&amp;title=Part 2: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] '  /></a> <a href='http://technorati.com/faves?add=http://unixguys.org/?p=8' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] '  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://unixguys.org/?p=8&amp;t=Part 2: Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!] '  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Part 2: Tuning a 1&amp;1 VPS to improve a vBulletin board.&amp;uri=http://unixguys.org/?p=8&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] '  /></a>  <a title='See more bookmark and sharing options...' href='http://unixguys.org/?p=8#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://unixguys.org/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>Part 1:  Tuning a 1&#38;1 VPS to improve a vBulletin board.</title>
		<link>http://unixguys.org/?p=7</link>
		<comments>http://unixguys.org/?p=7#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:35:07 +0000</pubDate>
		<dc:creator>HKP30</dc:creator>
		
		<category><![CDATA[LAMP]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Expires]]></category>

		<category><![CDATA[Headers]]></category>

		<category><![CDATA[mod_deflatem]]></category>

		<category><![CDATA[Performance]]></category>

		<category><![CDATA[Tuning]]></category>

		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://unixguys.org/?p=7</guid>
		<description><![CDATA[A friend of mine runs a moderate sized vBulletin web forum. By moderate sized I mean in 12 months of being online he has 2,851 members, 18,257 threads, 206,904 posts, and an average number of online users that floats between 50 in the middle of the night, and 200 during peak hours, transmitting a daily [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine runs a moderate sized vBulletin web forum. By moderate sized I mean in 12 months of being online he has 2,851 members, 18,257 threads, 206,904 posts, and an average number of online users that floats between 50 in the middle of the night, and 200 during peak hours, transmitting a daily average of 7gb of data.</p>
<p>About six months ago another forum member and I helped move the site off of &#8220;A Small Orange&#8221; shared hosting and on to a 1&amp;1 Virtual Private Server. The performance boost was immediately apparent. Of course like any web forum we grew from just over 1000 members to 2000 members in 4 months, two months later another 800 members. Performance is still better than it was on ASO, but it was starting to suffer.</p>
<p>I fired up YSlow and determined that there were a fair number of efficiencies that could be gained by tuning some settings in Apache. Specifically by using mod_deflate &amp; expires headers. The settings I added to /etc/httpd/conf/httpd.conf are as follows.</p>
<blockquote><p>#Mod_Deflate Rules<br />
# Netscape 4.x or IE 5.5/6.0<br />
BrowserMatch ^Mozilla/4 no-gzip<br />
# IE 5.5 and IE 6.0 have bugs! Ignore them until IE 7.0+<br />
BrowserMatch \bMSIE\s7 !no-gzip<br />
# IE 6.0 after SP2 has no gzip bugs!<br />
BrowserMatch \bMSIE.*SV !no-gzip<br />
# Sometimes Opera pretends to be IE with &#8220;Mozila/4.0&#8243;<br />
BrowserMatch \bOpera !no-gzip</p>
<p>AddOutputFilterByType DEFLATE text/plain<br />
AddOutputFilterByType DEFLATE text/xml<br />
AddOutputFilterByType DEFLATE application/xhtml+xml<br />
AddOutputFilterByType DEFLATE text/css<br />
AddOutputFilterByType DEFLATE text/javascript<br />
AddOutputFilterByType DEFLATE application/xml<br />
AddOutputFilterByType DEFLATE image/svg+xml<br />
AddOutputFilterByType DEFLATE application/rss+xml<br />
AddOutputFilterByType DEFLATE application/atom_xml<br />
AddOutputFilterByType DEFLATE application/x-javascript<br />
AddOutputFilterByType DEFLATE application/x-httpd-php<br />
AddOutputFilterByType DEFLATE application/x-httpd-fastphp<br />
AddOutputFilterByType DEFLATE application/x-httpd-eruby<br />
AddOutputFilterByType DEFLATE text/html<br />
Header append Vary User-Agent</p></blockquote>
<p>These settings alone lowered the daily average from 7gb down to 3gb! Mod_Deflate uses gzip to compress data by filter type. Older browsers aren&#8217;t able to read gzipped data. The first few rules at the top actually tell apache not to use gzip if the browser matches.</p>
<p>Next we turn on Header Expires. These add a header for all jpg, jpeg, gif, js, css, and png files that say the content expires and should be refreshed in April of 2010. This will hopefully tell browsers like IE, Firefox, and Safari to cache the files in their local store. Things like logos, navigation images, etc. don&#8217;t change often. Downloading them every time a page loads is wasteful.</p>
<blockquote><p>&lt;FilesMatch &#8220;(jpg|jpeg|gif|js|css|png)&#8221;&gt;</p>
<p>Header set Expires &#8220;Thu, 15 Apr 2010 20:00:00 GMT&#8221;</p>
<p>&lt;/FilesMatch&gt;</p></blockquote>
<p>These are just two of the steps I&#8217;ve taken to improve performance of this vBulletin site. I will detail some of the additional changes in upcoming posts. If you have any questions feel free to comment. If you have suggestions on how I could improve these settings even further I&#8217;d love to hear from you as well.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>BookMarkMe</div><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://unixguys.org/?p=7&amp;title=Part 1:  Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] '  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://unixguys.org/?p=7&amp;title=Part 1:  Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] '  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://unixguys.org/?p=7&amp;title=Part 1:  Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] '  /></a> <a href='http://technorati.com/faves?add=http://unixguys.org/?p=7' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] '  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://unixguys.org/?p=7&amp;t=Part 1:  Tuning a 1&amp;1 VPS to improve a vBulletin board.' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!] '  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Part 1:  Tuning a 1&amp;1 VPS to improve a vBulletin board.&amp;uri=http://unixguys.org/?p=7&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] '  /></a>  <a title='See more bookmark and sharing options...' href='http://unixguys.org/?p=7#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://unixguys.org/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>Configuring CentOS to use NTP</title>
		<link>http://unixguys.org/?p=6</link>
		<comments>http://unixguys.org/?p=6#comments</comments>
		<pubDate>Thu, 11 Sep 2008 16:57:01 +0000</pubDate>
		<dc:creator>HKP30</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[Configuration]]></category>

		<category><![CDATA[HowTo]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[NTP]]></category>

		<guid isPermaLink="false">http://unixguys.org/?p=6</guid>
		<description><![CDATA[There are a number of reasons you might want a server to use NTP not the least of which is a desire to synchronize the clocks on multiple systems so that times/dates in logs line up.  I finally got around to configuring NTP on our H-Sphere server.  The process is pretty simple on CentOS.
First Install [...]]]></description>
			<content:encoded><![CDATA[<p>There are a number of reasons you might want a server to use NTP not the least of which is a desire to synchronize the clocks on multiple systems so that times/dates in logs line up.  I finally got around to configuring NTP on our H-Sphere server.  The process is pretty simple on CentOS.</p>
<p>First Install the NTP Package on your server as root.</p>
<blockquote><p>[root@cp ~]# yum install ntp</p>
<p>Loading &#8220;fastestmirror&#8221; plugin<br />
Loading mirror speeds from cached hostfile<br />
* base: mirror.steadfast.net<br />
* updates: mirrors.liquidweb.com<br />
* addons: pubmirrors.reflected.net<br />
* extras: pubmirrors.reflected.net<br />
Setting up Install Process<br />
Parsing package install arguments<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package ntp.i386 0:4.2.2p1-8.el5.centos.1 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>=================================================================<br />
Package                 Arch       Version          Repository        Size<br />
=================================================================<br />
Installing:<br />
ntp                     i386       4.2.2p1-8.el5.centos.1  base              1.3 M</p>
<p>Transaction Summary<br />
=================================================================<br />
Install      1 Package(s)<br />
Update       0 Package(s)<br />
Remove       0 Package(s)</p>
<p>Total download size: 1.3 M<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/1): ntp-4.2.2p1-8.el5. 100% |=========================| 1.3 MB    00:19<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing: ntp                          ######################### [1/1]</p>
<p>Installed: ntp.i386 0:4.2.2p1-8.el5.centos.1<br />
Complete!</p></blockquote>
<p>Next set it to start automatically on a reboot</p>
<blockquote><p>[root@cp ~]# chkconfig ntpd on</p></blockquote>
<p>Tell it which NTP server it should update it&#8217;s time from</p>
<blockquote><p>[root@cp ~]# ntpdate pool.ntp.org<br />
4 Aug 12:32:43 ntpdate[9540]: step time server 64.202.112.75 offset 1256.453048 sec</p></blockquote>
<p>Verify that the Time &amp; Date are correct</p>
<blockquote><p>[root@cp ~]# date<br />
Mon Aug  4 12:33:04 EDT 2008</p></blockquote>
<p>Finally start the service</p>
<blockquote><p>[root@cp ~]# service ntpd start<br />
Starting ntpd:                                             [  OK  ]</p></blockquote>
<p>Easy as could be.  If you set all of your servers to update their time from the same pool server your time will be accurate within two seconds or better.  If you update one server to the pool, and tell all the rest to update from your own NTP server time can be even more accurate.  I don&#8217;t need that level of accuracy and tend to just use the pool.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>BookMarkMe</div><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://unixguys.org/?p=6&amp;title=Configuring CentOS to use NTP' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] '  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://unixguys.org/?p=6&amp;title=Configuring CentOS to use NTP' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] '  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://unixguys.org/?p=6&amp;title=Configuring CentOS to use NTP' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] '  /></a> <a href='http://technorati.com/faves?add=http://unixguys.org/?p=6' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] '  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://unixguys.org/?p=6&amp;t=Configuring CentOS to use NTP' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!] '  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Configuring CentOS to use NTP&amp;uri=http://unixguys.org/?p=6&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] '  /></a>  <a title='See more bookmark and sharing options...' href='http://unixguys.org/?p=6#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://unixguys.org/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
		<item>
		<title>CentOS 5.2 &#038; Configuring MTU</title>
		<link>http://unixguys.org/?p=5</link>
		<comments>http://unixguys.org/?p=5#comments</comments>
		<pubDate>Mon, 21 Jul 2008 16:04:03 +0000</pubDate>
		<dc:creator>HKP30</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://unixguys.org/?p=5</guid>
		<description><![CDATA[
We have one server in our office that performs very few functions.  In fact its lone reason for being on the network is to allow one of our customers to GET and POST data into the lease management system the company I work for runs.  The customer requested some kind of web server to manage [...]]]></description>
			<content:encoded><![CDATA[<p><a title="ifcfg-eth0.png" href="http://www.w9zeb.org/forums/unixguys/ifcfg-eth0.png"><img class="alignleft" src="http://www.w9zeb.org/forums/unixguys/ifcfg-eth0.png" alt="ifcfg-eth0 configuration example" width="383" height="254" /></a></p>
<p>We have one server in our office that performs very few functions.  In fact its lone reason for being on the network is to allow one of our customers to GET and POST data into the lease management system the company I work for runs.  The customer requested some kind of web server to manage the GET and POST procedures.  We established a site to site VPN, secured access to and from the LAMP server between four hosts on their network (two development, one production, and one disaster recovery) and our LAMP server.  (It’s named LAMP.  It also happens to be a L.A.M.P. server)</p>
<p>All seemed to be working well.  Until at some point the customer noticed that certain types of traffic just didn’t work to/from the server.  As it turns out because of the IPSEC VPN, and encapsulation we needed to adjust the MTU on both ends of the link.</p>
<p>If you are ever using a CentOS 5.2 server, and you want to adjust the MTU to something other than the default with that change surviving reboots of the server you need to do the following.</p>
<p>vi /etc/sysconfig/network-scripts/ifcfg-(interface)</p>
<p>add a line that reads.</p>
<p>MTU = (some number less than 1500 here)</p>
<p>save and exit the file.  Now if you would like to make that change take effect right away.  You can either…   /etc/init.d/network restart  OR….  ifconfig (interface) mtu (some number &lt; 1500)</p>
<p>Clear as Mud eh?</p>
<p><a title="ifconfig post restart" href="http://www.w9zeb.org/forums/unixguys/ifconfig.png"><img style="0pt none ;" src="http://www.w9zeb.org/forums/unixguys/ifconfig.png" alt="ifconfig post restart" width="374" height="247" /></a></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>BookMarkMe</div><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://unixguys.org/?p=5&amp;title=CentOS 5.2 &#038; Configuring MTU' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] '  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://unixguys.org/?p=5&amp;title=CentOS 5.2 &#038; Configuring MTU' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] '  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://unixguys.org/?p=5&amp;title=CentOS 5.2 &#038; Configuring MTU' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] '  /></a> <a href='http://technorati.com/faves?add=http://unixguys.org/?p=5' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] '  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://unixguys.org/?p=5&amp;t=CentOS 5.2 &#038; Configuring MTU' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!] '  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=CentOS 5.2 &#038; Configuring MTU&amp;uri=http://unixguys.org/?p=5&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://unixguys.org/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] '  /></a>  <a title='See more bookmark and sharing options...' href='http://unixguys.org/?p=5#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://unixguys.org/?feed=rss2&amp;p=5</wfw:commentRss>
		</item>
	</channel>
</rss>
