<?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>[ themattreid ] &#187; CNF</title>
	<atom:link href="http://themattreid.com/wordpress/category/cnf/feed/" rel="self" type="application/rss+xml" />
	<link>http://themattreid.com/wordpress</link>
	<description>MySQL DBA &#124; Linux&#039;er</description>
	<lastBuildDate>Sat, 07 Jan 2012 00:22:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kontrollbase gets new tabs for server cnf/stats/vars</title>
		<link>http://themattreid.com/wordpress/2009/05/08/kontrollbase-gets-new-tabs-for-server-cnfstatsvars/</link>
		<comments>http://themattreid.com/wordpress/2009/05/08/kontrollbase-gets-new-tabs-for-server-cnfstatsvars/#comments</comments>
		<pubDate>Fri, 08 May 2009 18:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNF]]></category>
		<category><![CDATA[Kontrollbase]]></category>
		<category><![CDATA[Monitoring]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=171</guid>
		<description><![CDATA[<p>Added some new code to Kontrollbase to allow you to view the cnf file on each host, as well as all of the global variables and global status information that was collected from the most recent polling period. Here are some screencaps.</p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/cnf-300x239.png" alt="cnf file display" width="300" height="239" /></p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/stats-300x239.png" alt="global statistics display" width="300" height="239" /></p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/vars-300x239.png" alt="global variables display" width="300" height="239" />&#8230; <a href="http://themattreid.com/wordpress/2009/05/08/kontrollbase-gets-new-tabs-for-server-cnfstatsvars/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>Added some new code to Kontrollbase to allow you to view the cnf file on each host, as well as all of the global variables and global status information that was collected from the most recent polling period. Here are some screencaps.</p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/cnf-300x239.png" alt="cnf file display" width="300" height="239" /></p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/stats-300x239.png" alt="global statistics display" width="300" height="239" /></p>
<p><img src="http://themattreid.com/wordpress/wp-content/uploads/2009/05/vars-300x239.png" alt="global variables display" width="300" height="239" /></p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2009/05/08/kontrollbase-gets-new-tabs-for-server-cnfstatsvars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick rundown of per-thread buffers</title>
		<link>http://themattreid.com/wordpress/2009/04/28/a-quick-rundown-of-per-thread-buffers/</link>
		<comments>http://themattreid.com/wordpress/2009/04/28/a-quick-rundown-of-per-thread-buffers/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 16:59:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNF]]></category>
		<category><![CDATA[MySQL Server]]></category>
		<category><![CDATA[buffers]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=157</guid>
		<description><![CDATA[<p>I saw something interesting today when helping out someone on the #mysql IRC channel. It was a cnf file that was designed to destroy a server. Before I get into the why-not, here are the goods:<br />
<code><br />
...snip...<br />
read_buffer		  = 128M<br />
join_buffer                  = 128M<br />
key_buffer                  = 512M<br />
max_allowed_packet  = 200M<br />
thread_stack               = 192K<br />
thread_concurrency     = 8<br />
thread_cache_size      = 64<br />
query_cache_limit       = 256M<br />
query_cache_size       = 256M<br />
table_cache                = 8192<br />
query_cache_type       = 1<br />
sort_buffer                   = 128M<br />
record_buffer               = </code>&#8230; <a href="http://themattreid.com/wordpress/2009/04/28/a-quick-rundown-of-per-thread-buffers/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>I saw something interesting today when helping out someone on the #mysql IRC channel. It was a cnf file that was designed to destroy a server. Before I get into the why-not, here are the goods:<br />
<code><br />
...snip...<br />
read_buffer		  = 128M<br />
join_buffer                  = 128M<br />
key_buffer                  = 512M<br />
max_allowed_packet  = 200M<br />
thread_stack               = 192K<br />
thread_concurrency     = 8<br />
thread_cache_size      = 64<br />
query_cache_limit       = 256M<br />
query_cache_size       = 256M<br />
table_cache                = 8192<br />
query_cache_type       = 1<br />
sort_buffer                   = 128M<br />
record_buffer               = 128M<br />
myisam_sort_buffer_size = 128M<br />
thread_cache              = 64<br />
max_user_connections  = 500<br />
wait_timeout                = 200<br />
max_connections        = 4096<br />
tmp_table_size            = 1000M<br />
max_heap_table_size  = 1000M<br />
...snip...<br />
</code></p>
<p>Now, you may ask why these settings are bad. I will tell you. First, an equation for calculating per-thread buffer memory usage.<br />
<code><br />
total per-thread buffer usage = (read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections<br />
</code></p>
<p>So in this case we have the following memory usage in per-thread buffers. Any buffers or settings not specifically mentioned above take the MySQL defaults.<br />
<code><br />
1537GB = ( 128M + 256K + 128M + 192K + 128M + 32K) * 4096<br />
</code></p>
<p>Yes, you read that correctly. This server is setup to allow 1537GB of ram usage on the per-thread buffer level. This server only has 4GB of ram. You tell me what would happen if 4096 connections were made and all of them, or even just a few of them, tried to max out their available buffer space. So folks, remember to always check your per-thread variables and make sure you&#8217;re not over allocating your memory resources. </p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2009/04/28/a-quick-rundown-of-per-thread-buffers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MySQL and DNS woes?</title>
		<link>http://themattreid.com/wordpress/2008/11/04/mysql-and-dns-woes/</link>
		<comments>http://themattreid.com/wordpress/2008/11/04/mysql-and-dns-woes/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 04:40:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNF]]></category>
		<category><![CDATA[MySQL Server]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[skip-name-resolv]]></category>

		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=73</guid>
		<description><![CDATA[<p>A quick solution to a common problem: your MySQL server has thousands of connections, some or most are not persistent. Unless you say otherwise, MySQL will check connections hostnames against the system DNS server. While this is generally not a problem with low traffic, when you are dealing with many concurrent connections you are not only wasting cycles with DNS name resolve, you may also overwhelm or alert your DNS server/provider. The solution? Set skip-name-resolve in &#8230; <a href="http://themattreid.com/wordpress/2008/11/04/mysql-and-dns-woes/" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>A quick solution to a common problem: your MySQL server has thousands of connections, some or most are not persistent. Unless you say otherwise, MySQL will check connections hostnames against the system DNS server. While this is generally not a problem with low traffic, when you are dealing with many concurrent connections you are not only wasting cycles with DNS name resolve, you may also overwhelm or alert your DNS server/provider. The solution? Set skip-name-resolve in the my.cnf file and MySQL will run the connections off of their IP address instead of the DNS name that it resolves to.  </p>
]]></content:encoded>
			<wfw:commentRss>http://themattreid.com/wordpress/2008/11/04/mysql-and-dns-woes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

