<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Solaris Containers and MySQL</title>
	<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Wed,  8 Oct 2008 03:38:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Frank Mashraqi</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-172291</link>
		<dc:creator>Frank Mashraqi</dc:creator>
		<pubDate>Thu, 20 Mar 2008 00:54:20 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-172291</guid>
		<description>Sheeri,

Aha!

Short answer: If all MySQL settings are similar, then your client's response *is* the key to the difference in speed you're seeing. 

Long answer: I really can't go into much detail publicly  at this time as the contents of my answer would spoil my upcoming presentation and paper. However, call me and we can discuss it in detail. I am not sure if you have my old 706 number or new 551 number so I will email the current number to you after this. 

Thanks!
Frank</description>
		<content:encoded><![CDATA[<p>Sheeri,</p>
<p>Aha!</p>
<p>Short answer: If all MySQL settings are similar, then your client&#8217;s response *is* the key to the difference in speed you&#8217;re seeing. </p>
<p>Long answer: I really can&#8217;t go into much detail publicly  at this time as the contents of my answer would spoil my upcoming presentation and paper. However, call me and we can discuss it in detail. I am not sure if you have my old 706 number or new 551 number so I will email the current number to you after this. </p>
<p>Thanks!<br />
Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Bradford</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171990</link>
		<dc:creator>Ronald Bradford</dc:creator>
		<pubDate>Tue, 18 Mar 2008 20:12:19 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171990</guid>
		<description>I agree with the earlier comment via truss, or even dTrace.

Is MySQL doing the same thing every time, are you sure it's always reading from memory.  Reviewing SHOW STATUS difference before and after will just confirm, yes it's all in memory, and MySQL is acting the same way. The easy part.

Truss with  truss -o out.txt -rall -wall -p [pid]  to see what internally mysql is doing.

Dtrace under Solaris is obviously another good reference, but I've got very little experience here.

Have you been for example to run a direct memory test, outside of the MySQL Database that confirms if the memory access is indeed bad.


Regards

Ronald</description>
		<content:encoded><![CDATA[<p>I agree with the earlier comment via truss, or even dTrace.</p>
<p>Is MySQL doing the same thing every time, are you sure it&#8217;s always reading from memory.  Reviewing SHOW STATUS difference before and after will just confirm, yes it&#8217;s all in memory, and MySQL is acting the same way. The easy part.</p>
<p>Truss with  truss -o out.txt -rall -wall -p [pid]  to see what internally mysql is doing.</p>
<p>Dtrace under Solaris is obviously another good reference, but I&#8217;ve got very little experience here.</p>
<p>Have you been for example to run a direct memory test, outside of the MySQL Database that confirms if the memory access is indeed bad.</p>
<p>Regards</p>
<p>Ronald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171954</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Tue, 18 Mar 2008 17:22:43 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171954</guid>
		<description>Frank,

The client says:

"Our dedicated X2100 is indeed newer M2 architecture with 667MHz DDR2 RAM vs. 400MHz from X4800 1st generation" but goes on to wonder if that could make the 4-fold difference in even simple queries.</description>
		<content:encoded><![CDATA[<p>Frank,</p>
<p>The client says:</p>
<p>&#8220;Our dedicated X2100 is indeed newer M2 architecture with 667MHz DDR2 RAM vs. 400MHz from X4800 1st generation&#8221; but goes on to wonder if that could make the 4-fold difference in even simple queries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171917</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 18 Mar 2008 13:16:25 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171917</guid>
		<description>While I'm no expert on the internals of the optimizer, is it possible that the optimizer is taking a slightly different access path for the data? There's also the issue of I/O to consider. I've not yet played with containers in any depth so I can't comment on I/O configuration.</description>
		<content:encoded><![CDATA[<p>While I&#8217;m no expert on the internals of the optimizer, is it possible that the optimizer is taking a slightly different access path for the data? There&#8217;s also the issue of I/O to consider. I&#8217;ve not yet played with containers in any depth so I can&#8217;t comment on I/O configuration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitek</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171839</link>
		<dc:creator>Nitek</dc:creator>
		<pubDate>Tue, 18 Mar 2008 07:51:15 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171839</guid>
		<description>Did you try to dump the database and reimport it? A few weeks ago i heared about someone having a similar problem, when using databases from older MySQL versions with on a server with a newer version. Dumping fixed that (something about storage format, can't remember the exact explanation)</description>
		<content:encoded><![CDATA[<p>Did you try to dump the database and reimport it? A few weeks ago i heared about someone having a similar problem, when using databases from older MySQL versions with on a server with a newer version. Dumping fixed that (something about storage format, can&#8217;t remember the exact explanation)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171830</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 18 Mar 2008 05:42:11 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171830</guid>
		<description>Hi Sheeri,

Which servers are these? V440? T1000? or X4100 series?

Frank</description>
		<content:encoded><![CDATA[<p>Hi Sheeri,</p>
<p>Which servers are these? V440? T1000? or X4100 series?</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171781</link>
		<dc:creator>K</dc:creator>
		<pubDate>Tue, 18 Mar 2008 01:14:42 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171781</guid>
		<description>Interesting. Let's start with the basiccs here. I assume you looked at EXPLAIN? And truss -c? After that, I think running MySQL in a debugger will give the definitive answer to why this is happening.</description>
		<content:encoded><![CDATA[<p>Interesting. Let&#8217;s start with the basiccs here. I assume you looked at EXPLAIN? And truss -c? After that, I think running MySQL in a debugger will give the definitive answer to why this is happening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Swanhart</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171758</link>
		<dc:creator>Justin Swanhart</dc:creator>
		<pubDate>Mon, 17 Mar 2008 23:42:41 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171758</guid>
		<description>Even though the boxes may be identical hardware, that hardware might be configured differently.

Check RAID block sizes, filesystem block sizes and make sure all the sysctl variables are the same for both machines.

This could be a filesystem fragmentation issue.  Try copying the table to a temporary (memory/shm based) filesystem on both machines and see if the performance characteristics change.</description>
		<content:encoded><![CDATA[<p>Even though the boxes may be identical hardware, that hardware might be configured differently.</p>
<p>Check RAID block sizes, filesystem block sizes and make sure all the sysctl variables are the same for both machines.</p>
<p>This could be a filesystem fragmentation issue.  Try copying the table to a temporary (memory/shm based) filesystem on both machines and see if the performance characteristics change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Pipes</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171736</link>
		<dc:creator>Jay Pipes</dc:creator>
		<pubDate>Mon, 17 Mar 2008 22:44:29 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171736</guid>
		<description>Weird.  Though, must be noted that doing a SELECT COUNT(*) on an InnoDB table with no WHERE clause on an indexed column is a death sentence when the table has more than just a few thousand rows...

[[Sheeri's answer]] True, but the point is to get a baseline.  We were seeing it for more complex queries and we just wanted a very simple query on commandline to test.  :)</description>
		<content:encoded><![CDATA[<p>Weird.  Though, must be noted that doing a SELECT COUNT(*) on an InnoDB table with no WHERE clause on an indexed column is a death sentence when the table has more than just a few thousand rows&#8230;</p>
<p>[[Sheeri&#8217;s answer]] True, but the point is to get a baseline.  We were seeing it for more complex queries and we just wanted a very simple query on commandline to test.  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chen Shapira</title>
		<link>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171714</link>
		<dc:creator>Chen Shapira</dc:creator>
		<pubDate>Mon, 17 Mar 2008 21:26:59 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/874/solaris-containers-and-mysql#comment-171714</guid>
		<description>Do you actually have multiple systems on the machine with containers?
If so, it is likely that you are not making full use of CPU cache, which can easily cause noticeable performance issues.

I'd check with Sun support if they have a tool that will allow you to compare how long pages stay in cpu cache between the systems.

I'm not sure which specific sun server you are using, but if it is NUMA architecture, there are different RAM speeds involved.</description>
		<content:encoded><![CDATA[<p>Do you actually have multiple systems on the machine with containers?<br />
If so, it is likely that you are not making full use of CPU cache, which can easily cause noticeable performance issues.</p>
<p>I&#8217;d check with Sun support if they have a tool that will allow you to compare how long pages stay in cpu cache between the systems.</p>
<p>I&#8217;m not sure which specific sun server you are using, but if it is NUMA architecture, there are different RAM speeds involved.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
