<?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: Slow DROP TABLE</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Will</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-601455</link>
		<dc:creator>Michael Will</dc:creator>
		<pubDate>Tue, 30 Jun 2009 22:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-601455</guid>
		<description>Note that ext4 as it is included in RHEL5.3 is clearly marked as a technology preview, not production quality. But since they refused to support XFS in favor of the outdated ext3 for years now, the best bet for heavy I/O machines is Novell SLES anyways :-)

Michael</description>
		<content:encoded><![CDATA[<p>Note that ext4 as it is included in RHEL5.3 is clearly marked as a technology preview, not production quality. But since they refused to support XFS in favor of the outdated ext3 for years now, the best bet for heavy I/O machines is Novell SLES anyways <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Georgi Alexandrov</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-600813</link>
		<dc:creator>Georgi Alexandrov</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-600813</guid>
		<description>Maciej, 

you&#039;re testing this with ext3&#039;s journal data, ordered data or write-back mode? As the default is ordered data and the closest behavior to XFS can be achieved via the write-back mode (which btw will become the default soon).</description>
		<content:encoded><![CDATA[<p>Maciej, </p>
<p>you&#8217;re testing this with ext3&#8217;s journal data, ordered data or write-back mode? As the default is ordered data and the closest behavior to XFS can be achieved via the write-back mode (which btw will become the default soon).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Huddleston</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588486</link>
		<dc:creator>Ryan Huddleston</dc:creator>
		<pubDate>Thu, 18 Jun 2009 03:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588486</guid>
		<description>See mysql work log on this: http://forge.mysql.com/worklog/task.php?id=3983</description>
		<content:encoded><![CDATA[<p>See mysql work log on this: <a href="http://forge.mysql.com/worklog/task.php?id=3983" rel="nofollow">http://forge.mysql.com/worklog/task.php?id=3983</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588364</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 17 Jun 2009 23:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588364</guid>
		<description>Maciek,

I should note this does not only applies to MyISAM tables but to Innodb tables in innodb_file_per_table mode as well.

I recently spoke to the customer which simply can&#039;t drop 400G table because it stalls everything for long time.</description>
		<content:encoded><![CDATA[<p>Maciek,</p>
<p>I should note this does not only applies to MyISAM tables but to Innodb tables in innodb_file_per_table mode as well.</p>
<p>I recently spoke to the customer which simply can&#8217;t drop 400G table because it stalls everything for long time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick E</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588322</link>
		<dc:creator>Patrick E</dc:creator>
		<pubDate>Wed, 17 Jun 2009 22:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588322</guid>
		<description>To explain our rationale for not using tmpfs, and using a disk store like ext3:

1) Our database is typically 100% cached (both data and indexes), 16 - 20 GB in a few hundred MyISAM tables (out of 24 GB RAM on the machine). It is 99.9999% reads on a very static but highly random set of data.
2) Most sorts are small or medium sized, we have max_heap_table_size=100M and tmp_table_size=100M in order to do these in memory
3) We have occasional large (2-4 GB +) sorts that we&#039;d like to spill to disk. It&#039;s okay if these are somewhat slow. I/O contention is not an issues since all reads are cached and the few writes we have are not performance critical.


I&#039;m just wondering if in this case this lock will bite us for these large sorts (which afaics, we definitely do need on disk, since our ram is mostly dedicated to caching the db / indexes). I&#039;d go spelunking, but have no experience with the mysql codebase really. Just a concerned user here :-)</description>
		<content:encoded><![CDATA[<p>To explain our rationale for not using tmpfs, and using a disk store like ext3:</p>
<p>1) Our database is typically 100% cached (both data and indexes), 16 &#8211; 20 GB in a few hundred MyISAM tables (out of 24 GB RAM on the machine). It is 99.9999% reads on a very static but highly random set of data.<br />
2) Most sorts are small or medium sized, we have max_heap_table_size=100M and tmp_table_size=100M in order to do these in memory<br />
3) We have occasional large (2-4 GB +) sorts that we&#8217;d like to spill to disk. It&#8217;s okay if these are somewhat slow. I/O contention is not an issues since all reads are cached and the few writes we have are not performance critical.</p>
<p>I&#8217;m just wondering if in this case this lock will bite us for these large sorts (which afaics, we definitely do need on disk, since our ram is mostly dedicated to caching the db / indexes). I&#8217;d go spelunking, but have no experience with the mysql codebase really. Just a concerned user here <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Dobrzanski</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588304</link>
		<dc:creator>Maciej Dobrzanski</dc:creator>
		<pubDate>Wed, 17 Jun 2009 22:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588304</guid>
		<description>pat,

Actually typically /tmp is created on the system storage (i.e. local disk) using whatever file system chosen for the installation. To boost some occasional but rather smallish temporary tables some people move it to tmpfs (which I think is unreasonable design, because you would rather want MySQL tmpdir on tmpfs rather than the system-wide /tmp).

Maciek</description>
		<content:encoded><![CDATA[<p>pat,</p>
<p>Actually typically /tmp is created on the system storage (i.e. local disk) using whatever file system chosen for the installation. To boost some occasional but rather smallish temporary tables some people move it to tmpfs (which I think is unreasonable design, because you would rather want MySQL tmpdir on tmpfs rather than the system-wide /tmp).</p>
<p>Maciek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Dobrzanski</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588303</link>
		<dc:creator>Maciej Dobrzanski</dc:creator>
		<pubDate>Wed, 17 Jun 2009 22:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588303</guid>
		<description>Patrick E,

I haven&#039;t examined the sources for temp tables, so I do not know if they suffer from a similar problem. I suppose since they do not require such locking, because there is no possibility for any concurrent access to them, MySQL may do things differently. However obviously if there is a large temporary table located on ext3 partition, it will cause a lot of random I/O on delete thus affecting the system performance.

Maciek</description>
		<content:encoded><![CDATA[<p>Patrick E,</p>
<p>I haven&#8217;t examined the sources for temp tables, so I do not know if they suffer from a similar problem. I suppose since they do not require such locking, because there is no possibility for any concurrent access to them, MySQL may do things differently. However obviously if there is a large temporary table located on ext3 partition, it will cause a lot of random I/O on delete thus affecting the system performance.</p>
<p>Maciek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick E</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588293</link>
		<dc:creator>Patrick E</dc:creator>
		<pubDate>Wed, 17 Jun 2009 21:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588293</guid>
		<description>On our production redhat machines at least it seems to be ext3, not sure if that&#039;s default or a quirk of our particular setup though.

/dev/vg00/lvtmp         /tmp                    ext3    defaults        1 2


And indeed tmpfs is virtual memory (RAM+SWAP) backed (http://en.wikipedia.org/wiki/TMPFS), however for a dedicated mysql machine that doesn&#039;t make too much sense, since if you had the ram you&#039;d just increase your tmp_table_size etc to use that ram directly i imagine. I don&#039;t mind that these large sorts use disk, but i do mind if it blocks my other select queries for no good reason. As a general rule, locks should absolutely never be held around any I/O operation...</description>
		<content:encoded><![CDATA[<p>On our production redhat machines at least it seems to be ext3, not sure if that&#8217;s default or a quirk of our particular setup though.</p>
<p>/dev/vg00/lvtmp         /tmp                    ext3    defaults        1 2</p>
<p>And indeed tmpfs is virtual memory (RAM+SWAP) backed (<a href="http://en.wikipedia.org/wiki/TMPFS)" rel="nofollow">http://en.wikipedia.org/wiki/TMPFS)</a>, however for a dedicated mysql machine that doesn&#8217;t make too much sense, since if you had the ram you&#8217;d just increase your tmp_table_size etc to use that ram directly i imagine. I don&#8217;t mind that these large sorts use disk, but i do mind if it blocks my other select queries for no good reason. As a general rule, locks should absolutely never be held around any I/O operation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Huddleston</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588244</link>
		<dc:creator>Ryan Huddleston</dc:creator>
		<pubDate>Wed, 17 Jun 2009 21:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588244</guid>
		<description>This issue has been a big problem for us for a long time as we constantly create and drop schemas. I worked around the issue by having a special method that drops tables one at a time and sleeps if the process count gets too high on the master or slaves. Though the solution is far from ideal as large tables still lock things up for too long.

See the mysql Worklog task for this at:  forge.mysql.com/worklog/task.php?id=3983</description>
		<content:encoded><![CDATA[<p>This issue has been a big problem for us for a long time as we constantly create and drop schemas. I worked around the issue by having a special method that drops tables one at a time and sleeps if the process count gets too high on the master or slaves. Though the solution is far from ideal as large tables still lock things up for too long.</p>
<p>See the mysql Worklog task for this at:  forge.mysql.com/worklog/task.php?id=3983</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/comment-page-1/#comment-588222</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Wed, 17 Jun 2009 20:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=655#comment-588222</guid>
		<description>Maybe I&#039;m wrong here (its been a while since I looked seriously at filesystems), but isn&#039;t tempfs always implemented as virtual memory on linux?

http://en.wikipedia.org/wiki/TMPFS</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m wrong here (its been a while since I looked seriously at filesystems), but isn&#8217;t tempfs always implemented as virtual memory on linux?</p>
<p><a href="http://en.wikipedia.org/wiki/TMPFS" rel="nofollow">http://en.wikipedia.org/wiki/TMPFS</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
