<?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>FewBar.com - Make it good &#187; threads</title>
	<atom:link href="http://fewbar.com/tag/threads/feed/" rel="self" type="application/rss+xml" />
	<link>http://fewbar.com</link>
	<description>Technology, life, and mischief, not in that order</description>
	<lastBuildDate>Wed, 18 Apr 2012 00:55:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>The Thread_Concurrency myth</title>
		<link>http://fewbar.com/2008/06/the-thread_concurrency-myth/</link>
		<comments>http://fewbar.com/2008/06/the-thread_concurrency-myth/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 17:20:16 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[threads]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=6</guid>
		<description><![CDATA[<a href="http://fewbar.com/2008/06/the-thread_concurrency-myth/" title="The Thread_Concurrency myth"></a>Just a few weeks ago, I found out that thread_concurrency&#8217;s purported magical effects at correcting MySQL&#8217;s concurrency limitations (especially in 4.1) were something of a myth. It was a post on mysql&#8217;s lists that alerted me to this. Apparently it &#8230;<p class="read-more"><a href="http://fewbar.com/2008/06/the-thread_concurrency-myth/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://fewbar.com/2008/06/the-thread_concurrency-myth/" title="The Thread_Concurrency myth"></a><p>Just a few weeks ago, I found out that thread_concurrency&#8217;s purported magical effects at correcting <a href="http://bugs.mysql.com/bug.php?id=15815">MySQL&#8217;s concurrency limitations</a> (especially in 4.1) were something of a myth. It was <a href="http://lists.mysql.com/mysql/208874">a post on mysql&#8217;s lists</a> that alerted me to this. Apparently it only works on Solaris, Linux&#8217;s threading library ignores this parameter completely. This is not to be confused with innodb_thread_concurrency, which is quite useful in controlling the flow of transactions through InnoDB. I think the problem really lies in the fact that the default my.cnf example configs tell us to set thread_concurrency to the number of CPU&#8217;s*2. They fail to mention that this only matters on Solaris, though <a href="http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html#option_mysqld_thread_concurrency">the manual is quite clear</a>.<br />
<span id="more-6"></span><br />
I think I set this parameter to 1, 4, and 8 trying to see if it would affect things positively or negatively on quite a few 4.1 boxes. I always just sort of assumed it was going to help prevent any sort of snowballing of server load if it ever got hit hard.</p>
<p>Yet another example where its important to RTFM!</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2008/06/the-thread_concurrency-myth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.165 seconds -->

