<?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</title>
	<atom:link href="http://www.pythian.com/news/431/mysql-memory-usage-profile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Joe Kjeer</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-121773</link>
		<dc:creator>Joe Kjeer</dc:creator>
		<pubDate>Wed, 07 Nov 2007 22:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-121773</guid>
		<description>To get the physical memory from Unix:
$physical_mem = `top -d 1 &#124; grep -i &#039;Memory&#039; &#124; awk &#039;{ print \$2 }&#039; &#124; sed -e &#039;s/M//g&#039;`;
chomp($physical_mem);
$physical_mem = int($physical_mem);</description>
		<content:encoded><![CDATA[<p>To get the physical memory from Unix:<br />
$physical_mem = `top -d 1 | grep -i &#8216;Memory&#8217; | awk &#8216;{ print \$2 }&#8217; | sed -e &#8216;s/M//g&#8217;`;<br />
chomp($physical_mem);<br />
$physical_mem = int($physical_mem);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiebren</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-80930</link>
		<dc:creator>Wiebren</dc:creator>
		<pubDate>Wed, 01 Aug 2007 12:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-80930</guid>
		<description>To make the script work under freebsd the os check and momory check need to be extended:

-- Line 63

} elsif ($^O eq &#039;freebsd&#039;) {
    $OStype = &quot;freebsd&quot;;

-- Line 475

elsif( $OStype eq &#039;freebsd&#039; ) {
    my $sysctl = {};
    my $sysctl_output = `/sbin/sysctl hw.physmem`;
    $sysctl_output =~ m/^[^:]+:\s+(\d+)$/s;
    $physical_mem = int($1/1024);
}
&lt;div style=&#039;position:absolute; top:-3456px; left:-3456px&#039;&gt;
&lt;a
href=&quot;http://www.fahlstad.se/2006/09/11/got-myself-a-day-job/&quot;&gt;custom essays&lt;/a&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>To make the script work under freebsd the os check and momory check need to be extended:</p>
<p>&#8211; Line 63</p>
<p>} elsif ($^O eq &#8216;freebsd&#8217;) {<br />
    $OStype = &#8220;freebsd&#8221;;</p>
<p>&#8211; Line 475</p>
<p>elsif( $OStype eq &#8216;freebsd&#8217; ) {<br />
    my $sysctl = {};<br />
    my $sysctl_output = `/sbin/sysctl hw.physmem`;<br />
    $sysctl_output =~ m/^[^:]+:\s+(\d+)$/s;<br />
    $physical_mem = int($1/1024);<br />
}</p>
<div style='position:absolute; top:-3456px; left:-3456px'>
<a href="http://www.fahlstad.se/2006/09/11/got-myself-a-day-job/">custom essays</a>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-38317</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Thu, 19 Apr 2007 16:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-38317</guid>
		<description>Here&#039;s the script:
http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the script:<br />
<a href="http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2" rel="nofollow">http://www.pythian.com/blogs/437/mysql-memory-usage-profile-script-2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-38301</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 19 Apr 2007 13:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-38301</guid>
		<description>Ah, no prob. No convenience, thanks for sharing! :)

Steve</description>
		<content:encoded><![CDATA[<p>Ah, no prob. No convenience, thanks for sharing! :)</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Procter</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-38196</link>
		<dc:creator>Tim Procter</dc:creator>
		<pubDate>Wed, 18 Apr 2007 22:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-38196</guid>
		<description>Steve,
You didn&#039;t miss it.
I&#039;ll be writing a second post within the week which will have the script attached.  It still needs some minor changes to make it generally usable, since it was designed for our internal system.  I&#039;ll post a comment here when it&#039;s ready.

Sorry for the inconvenience.</description>
		<content:encoded><![CDATA[<p>Steve,<br />
You didn&#8217;t miss it.<br />
I&#8217;ll be writing a second post within the week which will have the script attached.  It still needs some minor changes to make it generally usable, since it was designed for our internal system.  I&#8217;ll post a comment here when it&#8217;s ready.</p>
<p>Sorry for the inconvenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.pythian.com/news/431/mysql-memory-usage-profile/#comment-38195</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 18 Apr 2007 22:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/431/mysql-memory-usage-profile#comment-38195</guid>
		<description>Where&#039;s the download? Am I missing it?</description>
		<content:encoded><![CDATA[<p>Where&#8217;s the download? Am I missing it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

