<?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: Should you have your swap file enabled while running MySQL ?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 07 Nov 2009 18:35:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hide-and-SQL &#187; Blog Archive &#187; observation with regard to the &#8220;swappiness&#8221; problem</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-388020</link>
		<dc:creator>Hide-and-SQL &#187; Blog Archive &#187; observation with regard to the &#8220;swappiness&#8221; problem</dc:creator>
		<pubDate>Fri, 21 Nov 2008 00:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-388020</guid>
		<description>[...] folks on Planet MySQL have encountered issues with mysql and linux going into swap (example 1,2,3).  None of the easy solutions (sysctl -w swappiness=0, innodb_flush_method       [...]</description>
		<content:encoded><![CDATA[<p>[...] folks on Planet MySQL have encountered issues with mysql and linux going into swap (example 1,2,3).  None of the easy solutions (sysctl -w swappiness=0, innodb_flush_method       [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linux Swap Issue &#171; David&#8217;s Weblog</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-340214</link>
		<dc:creator>Linux Swap Issue &#171; David&#8217;s Weblog</dc:creator>
		<pubDate>Tue, 05 Aug 2008 00:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-340214</guid>
		<description>[...] Should you have your swap file enabled while running MySQL ? [...]</description>
		<content:encoded><![CDATA[<p>[...] Should you have your swap file enabled while running MySQL ? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogvorstellung: MySQL Performance Blog at NETWAYS Blog</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-318609</link>
		<dc:creator>Blogvorstellung: MySQL Performance Blog at NETWAYS Blog</dc:creator>
		<pubDate>Fri, 27 Jun 2008 11:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-318609</guid>
		<description>[...] ging es in letzter Zeit um einen Performancevergleich zwischen MySQL Replikation und DRBD, ob man Swap auf Datenbankservern besser deaktivierten sollte oder wie man am besten die MySQL Logs [...]</description>
		<content:encoded><![CDATA[<p>[...] ging es in letzter Zeit um einen Performancevergleich zwischen MySQL Replikation und DRBD, ob man Swap auf Datenbankservern besser deaktivierten sollte oder wie man am besten die MySQL Logs [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SmugBlog: Don MacAskill &#187; Blog Archive &#187; MySQL and the Linux swap problem</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-291588</link>
		<dc:creator>SmugBlog: Don MacAskill &#187; Blog Archive &#187; MySQL and the Linux swap problem</dc:creator>
		<pubDate>Fri, 02 May 2008 01:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-291588</guid>
		<description>[...] since Peter over at Percona wrote about MySQL and swap, I&#8217;ve been meaning to write this post. But after I saw Dathan Pattishall&#8217;s post on the [...]</description>
		<content:encoded><![CDATA[<p>[...] since Peter over at Percona wrote about MySQL and swap, I&#8217;ve been meaning to write this post. But after I saw Dathan Pattishall&#8217;s post on the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #92: a Carnival of the Vanities for DBAs</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-273469</link>
		<dc:creator>Log Buffer #92: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 11 Apr 2008 16:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-273469</guid>
		<description>[...] has another question on his mind: should you have your swap file enabled while running MySQL? He wants to hear your approach to this matter, having himself experienced variable results. Lots of [...]</description>
		<content:encoded><![CDATA[<p>[...] has another question on his mind: should you have your swap file enabled while running MySQL? He wants to hear your approach to this matter, having himself experienced variable results. Lots of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MySQL需要虚拟内存吗？</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-272370</link>
		<dc:creator>MySQL需要虚拟内存吗？</dc:creator>
		<pubDate>Thu, 10 Apr 2008 06:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-272370</guid>
		<description>[...] Should you have your swap file enabled while running MySQL ? [...]</description>
		<content:encoded><![CDATA[<p>[...] Should you have your swap file enabled while running MySQL ? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clint Byrum</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-271979</link>
		<dc:creator>Clint Byrum</dc:creator>
		<pubDate>Wed, 09 Apr 2008 18:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-271979</guid>
		<description>Awesome. That worked well, thanks safari. Reboot was not necessary to test the setting btw, just had to run &#039;ulimit -l xxxx&#039;, though I rebooted to make sure it stuck. Somebody really should write the same kind of article for MySQL. :)

Are there any benchmarks published for large_pages? Seems like it would help a lot for a high degree of concurrency given MySQL&#039;s history of memory allocation bottlenecks.</description>
		<content:encoded><![CDATA[<p>Awesome. That worked well, thanks safari. Reboot was not necessary to test the setting btw, just had to run &#8216;ulimit -l xxxx&#8217;, though I rebooted to make sure it stuck. Somebody really should write the same kind of article for MySQL. <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Are there any benchmarks published for large_pages? Seems like it would help a lot for a high degree of concurrency given MySQL&#8217;s history of memory allocation bottlenecks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: safari</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-271553</link>
		<dc:creator>safari</dc:creator>
		<pubDate>Wed, 09 Apr 2008 08:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-271553</guid>
		<description>Set memlock (max locked memory) for mysql user in /etc/security/limits.conf to allow this user using such large of memory. After doing that and reboot the server, if you still get the error, try to restart mysqld then you can see it works.

You can find more information at http://www.puschitz.com/TuningLinuxForOracle.shtml#UsingVeryLargeMemory.</description>
		<content:encoded><![CDATA[<p>Set memlock (max locked memory) for mysql user in /etc/security/limits.conf to allow this user using such large of memory. After doing that and reboot the server, if you still get the error, try to restart mysqld then you can see it works.</p>
<p>You can find more information at <a href="http://www.puschitz.com/TuningLinuxForOracle.shtml#UsingVeryLargeMemory." rel="nofollow">http://www.puschitz.com/TuningLinuxForOracle.shtml#UsingVeryLargeMemory.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clint Byrum</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-271162</link>
		<dc:creator>Clint Byrum</dc:creator>
		<pubDate>Wed, 09 Apr 2008 00:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-271162</guid>
		<description>On our big central DB server, we only have swap enabled because of tmpfs usage for tmpdir. We use a 20G tmpfs partition for tmpdir, and while we generally do have about 20G of RAM available, making tempfiles go quite fast, it also must be used for connection buffers/etc... if the server gets a lot of concurrent connections, I&#039;d rather have it swap out the tempfiles and service the requests, than crash MySQL, or lower max_connections and have to give a &#039;max connects reached&#039; error.

On a somewhat OT note, I see a lot of mention of large_pages here. I&#039;ve spent the last hour trying to make them work on our new server that has 64G RAM... I keep getting these when starting though..(innodb_buffer_pool_size=31G):

InnoDB: HugeTLB: Warning: Failed to allocate 33286012928 bytes. errno 12
InnoDB HugeTLB: Warning: Using conventional memory pool
Warning: Failed to allocate 440401920 bytes from HugeTLB memory. errno 12

/proc/sys/vm/nr_hugepages is 25000 (which is what I set it to at boot time, and equals about 48GB) , page size is 2MB .. /proc/sys/kernel/shmmax is 32GB, shmall is 42GB.

errno 12, btw, is just &quot;cannot allocate memory&quot;

If anyone has experience with large_pages like this, please email me or post here. Thanks!</description>
		<content:encoded><![CDATA[<p>On our big central DB server, we only have swap enabled because of tmpfs usage for tmpdir. We use a 20G tmpfs partition for tmpdir, and while we generally do have about 20G of RAM available, making tempfiles go quite fast, it also must be used for connection buffers/etc&#8230; if the server gets a lot of concurrent connections, I&#8217;d rather have it swap out the tempfiles and service the requests, than crash MySQL, or lower max_connections and have to give a &#8216;max connects reached&#8217; error.</p>
<p>On a somewhat OT note, I see a lot of mention of large_pages here. I&#8217;ve spent the last hour trying to make them work on our new server that has 64G RAM&#8230; I keep getting these when starting though..(innodb_buffer_pool_size=31G):</p>
<p>InnoDB: HugeTLB: Warning: Failed to allocate 33286012928 bytes. errno 12<br />
InnoDB HugeTLB: Warning: Using conventional memory pool<br />
Warning: Failed to allocate 440401920 bytes from HugeTLB memory. errno 12</p>
<p>/proc/sys/vm/nr_hugepages is 25000 (which is what I set it to at boot time, and equals about 48GB) , page size is 2MB .. /proc/sys/kernel/shmmax is 32GB, shmall is 42GB.</p>
<p>errno 12, btw, is just &#8220;cannot allocate memory&#8221;</p>
<p>If anyone has experience with large_pages like this, please email me or post here. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parvesh</title>
		<link>http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/comment-page-1/#comment-270765</link>
		<dc:creator>Parvesh</dc:creator>
		<pubDate>Tue, 08 Apr 2008 17:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/04/06/should-you-have-your-swap-file-enabled-while-running-mysql/#comment-270765</guid>
		<description>I always prefer to have swap enabled on my boxes and just keep a check on it. I do believe that if swapping (or any other unwanted issue) is happening, the first place one should look is at the application and not the server.

As safari mentioned, large-pages always come handy.</description>
		<content:encoded><![CDATA[<p>I always prefer to have swap enabled on my boxes and just keep a check on it. I do believe that if swapping (or any other unwanted issue) is happening, the first place one should look is at the application and not the server.</p>
<p>As safari mentioned, large-pages always come handy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
