<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MySQL Memory Usage Profile Script 2</title>
	<atom:link href="http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Thu, 18 Mar 2010 00:27:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sean</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-55141</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 01 Jun 2007 23:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-55141</guid>
		<description>This is really handy and would definitely use it if it were GPL&#039;d. Please consider it! Cheers.</description>
		<content:encoded><![CDATA[<p>This is really handy and would definitely use it if it were GPL&#8217;d. Please consider it! Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-53922</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Wed, 30 May 2007 18:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-53922</guid>
		<description>It was recently pointed out that the link was broken again, and I apologize for that.  The link is working as of now, and I think we&#039;ve corrected the problem.  Please let me know via comment or email if you notice any other issues.</description>
		<content:encoded><![CDATA[<p>It was recently pointed out that the link was broken again, and I apologize for that.  The link is working as of now, and I think we&#8217;ve corrected the problem.  Please let me know via comment or email if you notice any other issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-53152</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Mon, 28 May 2007 14:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-53152</guid>
		<description>Thanks for pointing out that it went missing again.  It seems to be a recurring problem.

I&#039;ve put the file back up there, and I&#039;ll be investigating the case of the missing files in more depth.  I also emailed Steve and asked if he would post his changes.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing out that it went missing again.  It seems to be a recurring problem.</p>
<p>I&#8217;ve put the file back up there, and I&#8217;ll be investigating the case of the missing files in more depth.  I also emailed Steve and asked if he would post his changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-53093</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 28 May 2007 09:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-53093</guid>
		<description>No updates on the missing file, or steve&#039;s linux version?</description>
		<content:encoded><![CDATA[<p>No updates on the missing file, or steve&#8217;s linux version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-38519</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Fri, 20 Apr 2007 15:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-38519</guid>
		<description>Thanks Jay, I&#039;ve referred to that site myself.

I&#039;m posting a reponse from Steve, with his permission.

&gt;&gt;&gt; &gt;&gt;Awesome, thanks. For some reason the copy and paste didn&#039;t work, but the download is fine, so thats great. I&#039;ve got a small patch to support FreeBSD as well as Linux if you want it. Mail me. Very useful script, thanks for sharing.
&gt;&gt;&gt; Many of our clients are linux-based, so I&#039;m curious about what failed.  I did make some changes to it to make it independent from our internal software, so maybe I broke that.

&gt; Steve Wills wrote:
&gt;&gt; FreeBSD doesn&#039;t have a /proc/meminfo, you do &quot;sysctl hw.physmem&quot; instead. I just added a call to &quot;uname -s&quot; to get the OS then if/elsif/else it to DTRT, etc. Also, I added a &lt;code&gt;&quot;&lt;html&gt;&lt;body&gt;&lt;pre&gt;&quot; and &quot;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;&quot;&lt;/code&gt;
at the end to generate a complete valid HTML file, just as a niceity.
&gt;&gt; I am curious about one thing. I&#039;m not sure if the numbers are off or I&#039;m misunderstanding, but I notice on one server I ran this on (a Linux box):
&gt;&gt; Per connection memory usage:
&gt;&gt; ...
&gt;&gt; TOTAL: 0.13 M
&gt;&gt;
&gt;&gt; Then in the summary:
&gt;&gt; Potential Connection Memory: 13 M
&gt;&gt;
&gt;&gt; Am I misunderstanding or is one of those off?
&gt;&gt; (output here: http://www.pythian.com/blogs/steves-mysql-report/ ) (Copied from original location -tp)
&gt;&gt; Thanks,
&gt;&gt; Steve

&gt; The total takes into account the max_connections variable (100), since if all connections are used, they would each consume the per-connection amount.

Gotcha, I think I was just thrown since per connection was .13 and the total was 13, but of course that is 100 times... I was just in a hurry reading it....

&gt; -&gt;  ::key_buffer usage: 100 % (high-water: 0 %)
&gt; Those numbers seem unusual. The high-water mark can sometimes be wrong, but 100 % usage is rare.  You may see better performance by increasing the buffer size.

Yeah, I was thinking about increasing it before I found your script, but just wasn&#039;t sure the system had enough total memory for it.

&gt; Is this a dedicated server, or do you have other apps running on it?
It&#039;s running the whole LAMP stack...</description>
		<content:encoded><![CDATA[<p>Thanks Jay, I&#8217;ve referred to that site myself.</p>
<p>I&#8217;m posting a reponse from Steve, with his permission.</p>
<p>>>> >>Awesome, thanks. For some reason the copy and paste didn&#8217;t work, but the download is fine, so thats great. I&#8217;ve got a small patch to support FreeBSD as well as Linux if you want it. Mail me. Very useful script, thanks for sharing.<br />
>>> Many of our clients are linux-based, so I&#8217;m curious about what failed.  I did make some changes to it to make it independent from our internal software, so maybe I broke that.</p>
<p>> Steve Wills wrote:<br />
>> FreeBSD doesn&#8217;t have a /proc/meminfo, you do &#8220;sysctl hw.physmem&#8221; instead. I just added a call to &#8220;uname -s&#8221; to get the OS then if/elsif/else it to DTRT, etc. Also, I added a <code>&quot;&lt;html&gt;&lt;body&gt;&lt;pre&gt;&quot; and &quot;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;&quot;</code><br />
at the end to generate a complete valid HTML file, just as a niceity.<br />
>> I am curious about one thing. I&#8217;m not sure if the numbers are off or I&#8217;m misunderstanding, but I notice on one server I ran this on (a Linux box):<br />
>> Per connection memory usage:<br />
>> &#8230;<br />
>> TOTAL: 0.13 M<br />
>><br />
>> Then in the summary:<br />
>> Potential Connection Memory: 13 M<br />
>><br />
>> Am I misunderstanding or is one of those off?<br />
>> (output here: <a href="http://www.pythian.com/blogs/steves-mysql-report/" rel="nofollow">http://www.pythian.com/blogs/steves-mysql-report/</a> ) (Copied from original location -tp)<br />
>> Thanks,<br />
>> Steve</p>
<p>> The total takes into account the max_connections variable (100), since if all connections are used, they would each consume the per-connection amount.</p>
<p>Gotcha, I think I was just thrown since per connection was .13 and the total was 13, but of course that is 100 times&#8230; I was just in a hurry reading it&#8230;.</p>
<p>> ->  ::key_buffer usage: 100 % (high-water: 0 %)<br />
> Those numbers seem unusual. The high-water mark can sometimes be wrong, but 100 % usage is rare.  You may see better performance by increasing the buffer size.</p>
<p>Yeah, I was thinking about increasing it before I found your script, but just wasn&#8217;t sure the system had enough total memory for it.</p>
<p>> Is this a dedicated server, or do you have other apps running on it?<br />
It&#8217;s running the whole LAMP stack&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Pipes</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-38360</link>
		<dc:creator>Jay Pipes</dc:creator>
		<pubDate>Thu, 19 Apr 2007 21:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-38360</guid>
		<description>Hi!  When you figure out the licensing, feel free to consider adding this to MySQL Forge snippets :)  http://forge.mysql.com/snippets/

Cheers!

jay</description>
		<content:encoded><![CDATA[<p>Hi!  When you figure out the licensing, feel free to consider adding this to MySQL Forge snippets :)  <a href="http://forge.mysql.com/snippets/" rel="nofollow">http://forge.mysql.com/snippets/</a></p>
<p>Cheers!</p>
<p>jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-38335</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 19 Apr 2007 18:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-38335</guid>
		<description>Awesome, thanks. For some reason the copy and paste didn&#039;t work, but the download is fine, so thats great. I&#039;ve got a small patch to support FreeBSD as well as Linux if you want it. Mail me. Very useful script, thanks for sharing.

Steve</description>
		<content:encoded><![CDATA[<p>Awesome, thanks. For some reason the copy and paste didn&#8217;t work, but the download is fine, so thats great. I&#8217;ve got a small patch to support FreeBSD as well as Linux if you want it. Mail me. Very useful script, thanks for sharing.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-38334</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Thu, 19 Apr 2007 18:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-38334</guid>
		<description>Hi Steve, the script should clean up if you copy-paste it.  and I&#039;ve fixed the download.  Thanks for noticing.</description>
		<content:encoded><![CDATA[<p>Hi Steve, the script should clean up if you copy-paste it.  and I&#8217;ve fixed the download.  Thanks for noticing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.pythian.com/news/437/mysql-memory-usage-profile-script-2/#comment-38330</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 19 Apr 2007 18:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2#comment-38330</guid>
		<description>Ouch! That got mangled pretty heavily in the posting, and the download is 404. Mind fixing one of those?

Thanks for sharing btw.

Steve</description>
		<content:encoded><![CDATA[<p>Ouch! That got mangled pretty heavily in the posting, and the download is 404. Mind fixing one of those?</p>
<p>Thanks for sharing btw.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
</channel>
</rss>
