<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Query blog &#187; linux</title>
	<atom:link href="http://openquery.com/blog/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://openquery.com/blog</link>
	<description>About MySQL, Drizzle, MariaDB and more!</description>
	<lastBuildDate>Sun, 29 Apr 2012 23:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Storage Miniconf Deadline Extended!</title>
		<link>http://openquery.com/blog/storage-miniconf-deadline-extended</link>
		<comments>http://openquery.com/blog/storage-miniconf-deadline-extended#comments</comments>
		<pubDate>Wed, 30 Sep 2009 05:09:20 +0000</pubDate>
		<dc:creator>cafuego</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[best conference in the world]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[contribute]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[lca2010]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux.conf.au]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=989</guid>
		<description><![CDATA[The linux.conf.au organisers have given all miniconfs an additional few weeks to spruik for more proposal submissions, huzzah! So if you didn&#8217;t submit a proposal because you weren&#8217;t sure whether you&#8217;d be able to attend LCA2010, you now have until October 23 to convince your boss to send you and get your proposal in.]]></description>
			<content:encoded><![CDATA[<p>The linux.conf.au organisers have given all miniconfs an additional few weeks to spruik for more proposal submissions, huzzah!</p>
<p>So if you didn&#8217;t submit a proposal because you weren&#8217;t sure whether you&#8217;d be able to attend LCA2010, you now have until October 23 to convince your boss to send you and<a href="http://miniconf.osda.asn.au/cfp"> get your proposal in</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/storage-miniconf-deadline-extended/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Storage miniconf at linux.conf.au 2010</title>
		<link>http://openquery.com/blog/storage-miniconf-linuxconfau-2010</link>
		<comments>http://openquery.com/blog/storage-miniconf-linuxconfau-2010#comments</comments>
		<pubDate>Mon, 24 Aug 2009 02:53:16 +0000</pubDate>
		<dc:creator>cafuego</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[best conference in the world]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[contribute]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux.conf.au]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=912</guid>
		<description><![CDATA[Since you were going to linux.conf.au 2010 in Wellington, NZ anyway in January of next year, you should submit a proposal to speak at the data storage and retrieval miniconf. If you have something to say about storage hardware, file systems, raid, lvm, databases or anything else linux or open source and storage related, please [...]]]></description>
			<content:encoded><![CDATA[<p>Since you were going to <a href="http://lca2010.org.nz/">linux.conf.au 2010</a> in Wellington, NZ anyway in January of next year, you should submit a proposal to speak at the <a href="http://miniconf.osda.asn.au/">data storage and retrieval</a> miniconf.</p>
<p>If you have something to say about storage hardware, file systems, raid, lvm, databases or anything else linux or open source and storage related, please submit early and submit often!</p>
<p>The <a href="http://miniconf.osda.asn.au/node/add/proposal">call for proposals</a> is open until September 28.</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/storage-miniconf-linuxconfau-2010/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tool of the day: inotify</title>
		<link>http://openquery.com/blog/tool-day-inotify</link>
		<comments>http://openquery.com/blog/tool-day-inotify#comments</comments>
		<pubDate>Fri, 31 Jul 2009 05:56:40 +0000</pubDate>
		<dc:creator>arjen</dc:creator>
				<category><![CDATA[Software and tools]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[inotify]]></category>
		<category><![CDATA[inotify-tools]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[mysqld]]></category>
		<category><![CDATA[open query]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=876</guid>
		<description><![CDATA[I was actually exploring inotify-tools for something else, but they can also be handy for seeing what goes on below a mysqld process. inotify hooks into the filesystem handlers, and sees which files are accessed. You can then set triggers, or just display a tally over a certain period. It has been a standard Linux [...]]]></description>
			<content:encoded><![CDATA[<p>I was actually exploring <a href="http://inotify-tools.sourceforge.net/">inotify-tools</a> for something else, but they can also be handy for seeing what goes on below a mysqld process. <strong>inotify</strong> hooks into the filesystem handlers, and sees which files are accessed. You can then set triggers, or just display a tally over a certain period.</p>
<p>It has been a standard Linux kernel module since 2.6.13 (<em>2005, wow that&#8217;s a long time ago already</em>) and can be used through calls or the inotify-tools (commandline). So with the instrumentation already in the kernel, <code>apt-get install inotify-tools</code> is all you need to get started.</p>
<pre> # inotifywatch -v -t 20 -r /var/lib/mysql/* /var/lib/mysql/zabbix/*
Establishing watches...
Setting up watch(es) on /var/lib/mysql/mysql/user.frm
OK, /var/lib/mysql/mysql/user.frm is now being watched.
[...]
Total of 212 watches.
Finished establishing watches, now collecting statistics.
Will listen for events for 60 seconds.
total  modify  filename
2371   2371    /var/lib/mysql/relay-log.info
2148   2148    /var/lib/mysql/master.info
1157   1157    /var/lib/mysql/ib_logfile0
24     24      /var/lib/mysql/zabbix/
24     24      /var/lib/mysql/zabbix/history.ibd
8      8       /var/lib/mysql/zabbix/trends_uint.ibd
6      6       /var/lib/mysql/zabbix/items.ibd
5      5       /var/lib/mysql/ibdata1
</pre>
<p>This is just a limited example from a dev box, but you can see the benefit. You can see which files have been accessed, in what way, and how many times over the specified period. Consequently this provides the most insight if you&#8217;re using innodb-file-per-table (or MyISAM) rather than a single InnoDB tablespace. But of course it depends a bit on what you&#8217;re looking for.</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/tool-day-inotify/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Book: Pro Linux System Administration</title>
		<link>http://openquery.com/blog/book-pro-linux-system-administration</link>
		<comments>http://openquery.com/blog/book-pro-linux-system-administration#comments</comments>
		<pubDate>Wed, 24 Jun 2009 02:20:15 +0000</pubDate>
		<dc:creator>arjen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apress]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[cafuego]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[open query]]></category>
		<category><![CDATA[ourdelta]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[system administration]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=820</guid>
		<description><![CDATA[Peter Lieverdink (also known as cafuego on IRC/identi.ca, engineer on OurDelta builds and for Open Query) has co-authored a book that&#8217;s available since Monday. The title is Pro Linux System Administration published by Apress. These days some people don&#8217;t want to bother with system administration, and either hire or outsource. Others want to find out more [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Peter Lieverdink</strong> (also known as <strong>cafuego</strong> on IRC/identi.ca, engineer on <em>OurDelta</em> builds and for <em>Open Query</em>) has co-authored a book that&#8217;s available since Monday. The title is <a href="http://www.amazon.com/Linux-System-Administration-James-Turnbull/dp/1430219122">Pro Linux System Administration</a> published by <a href="http://apress.com/book/view/1430219122">Apress</a>.</p>
<p>These days some people don&#8217;t want to bother with system administration, and either hire or outsource. Others want to find out more and do things themselves (home and small office use), and that&#8217;s the intended audience for this book.</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/book-pro-linux-system-administration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: MySQL tmpdir on tmpfs</title>
		<link>http://openquery.com/blog/update-mysql-tmpdir-tmpfs</link>
		<comments>http://openquery.com/blog/update-mysql-tmpdir-tmpfs#comments</comments>
		<pubDate>Tue, 16 Jun 2009 01:30:45 +0000</pubDate>
		<dc:creator>arjen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[/dev/shm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[shm]]></category>
		<category><![CDATA[slave-load-tmpdir]]></category>
		<category><![CDATA[slave_load_tmpdir]]></category>
		<category><![CDATA[temp tables]]></category>
		<category><![CDATA[temporary tables]]></category>
		<category><![CDATA[tmp tables]]></category>
		<category><![CDATA[tmpdir]]></category>
		<category><![CDATA[tmpfs]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=770</guid>
		<description><![CDATA[Followup on Experiment: MySQL tmpdir on tmpfs, about tmpdir=/dev/shm in my.cnf (it&#8217;s not a dynamic variable that can be set at runtime). It&#8217;s working well, also confirmed by comments from others that they&#8217;ve been using it for a while. This particular setting is Linux specific. On Solaris, the default /tmp is already on a tmpfs so [...]]]></description>
			<content:encoded><![CDATA[<p>Followup on <a href="http://openquery.com/blog/experiment-mys…mpdir-on-tmpfs">Experiment: MySQL tmpdir on tmpfs</a>, about <strong>tmpdir=/dev/shm</strong> in my.cnf (it&#8217;s not a dynamic variable that can be set at runtime). It&#8217;s working well, also confirmed by comments from others that they&#8217;ve been using it for a while.</p>
<p>This particular setting is Linux specific. On Solaris, the default /tmp is already on a tmpfs so that&#8217;s fine too. Brian reminded me that this tweak is also useful if you&#8217;re stuck with a 32-bit OS as you can then utilise some more memory in a practical way.</p>
<p>Extra useful hint from Harrison: if you are using replication, you will also want <strong>slave_load_tmpdir=/tmp</strong> on your slave (real disk which survives a restart). The issue is that with statement based binary logging, there are many events which create a file for a replicated LOAD DATA INFILE. If you stop your server after some of these events have occurred, but not all, it will break after you restart.</p>
<p>Thanks everyone for their feedback!</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/update-mysql-tmpdir-tmpfs/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Experiment: MySQL tmpdir on tmpfs</title>
		<link>http://openquery.com/blog/experiment-mysql-tmpdir-on-tmpfs</link>
		<comments>http://openquery.com/blog/experiment-mysql-tmpdir-on-tmpfs#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:58:24 +0000</pubDate>
		<dc:creator>arjen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[/dev/shm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[shm]]></category>
		<category><![CDATA[temp tables]]></category>
		<category><![CDATA[temporary tables]]></category>
		<category><![CDATA[tmp tables]]></category>
		<category><![CDATA[tmpdir]]></category>
		<category><![CDATA[tmpfs]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=767</guid>
		<description><![CDATA[In MySQL, the tmpdir path is mainly used for disk-based sorts (if the sort_buffer_size is not enough) and disk-based temp tables. The latter cannot always be avoided even if you made tmp_table_size and max_heap_table_size quite large, since MEMORY tables don&#8217;t support TEXT/BLOB type columns, and also since you just really don&#8217;t want to run the [...]]]></description>
			<content:encoded><![CDATA[<p>In MySQL, the <strong>tmpdir</strong> path is mainly used for disk-based sorts (if the <strong>sort_buffer_size</strong> is not enough) and disk-based temp tables. The latter cannot always be avoided even if you made <strong>tmp_table_size</strong> and <strong>max_heap_table_size</strong> quite large, since MEMORY tables don&#8217;t support <strong>TEXT</strong>/<strong>BLOB</strong> type columns, and also since you just really don&#8217;t want to run the risk of exceeding available memory by setting these things too large.</p>
<p>You can see how your server is doing with temporary tables, how many of those become disk tables, and also other created temporary files, by looking at <strong>SHOW GLOBAL STATUS LIKE &#8216;Created_tmp%&#8217;</strong>;</p>
<p>So why might <strong>tmpfs</strong> be better? Well, not just any tmpfs, but specifically <a href="http://www.mjmwired.net/kernel/Documentation/filesystems/tmpfs.txt">/dev/shm</a>. Its behaviour (see the kernel docs) may just fit the need, provided you have sufficient &#8220;spare&#8221; RAM in the machine anyway. Essentially the files will live in kernel cache space, and swap is potentially possible. You can even tweak limits, live. Mind you, this is Linux specific. Any system with glibc 2.2 or higher will have a /dev/shm available.</p>
<p>We&#8217;re currently running a comparative test in a production environment with one slave on tmpdir=/dev/shm. It being significantly faster is no real surprise but we just want to make sure that it behaves well over time, in the real world. Naturally it is best to not need disk-based temp tables at all for most queries, but for existing apps you can&#8217;t always change problematic design issues &#8220;right now&#8221;. It&#8217;s not a solution, but extra &#8220;breathing space&#8221; is useful. We&#8217;ll report back later with more results and possible insights from this experiment.</p>
<p>2009-06-16: See followup at <a href="http://openquery.com/blog/update-mysql-tmpdir-tmpfs">Update: MySQL tmpdir on tmpfs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/experiment-mysql-tmpdir-on-tmpfs/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
