<?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>Errata &#187; Debian</title>
	<atom:link href="http://blog.taz.net.au/category/geek/debian-geek/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.taz.net.au</link>
	<description>Tech Notes And Miscellaneous Thoughts</description>
	<lastBuildDate>Sat, 07 Jan 2012 02:39:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>fstrim and XFS</title>
		<link>http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/</link>
		<comments>http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 02:36:18 +0000</pubDate>
		<dc:creator>cas</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[EXT4]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[TRIM]]></category>
		<category><![CDATA[XFS]]></category>

		<guid isPermaLink="false">http://blog.taz.net.au/?p=207</guid>
		<description><![CDATA[Does anyone use fstrim on an XFS formatted SSD partition? I&#8217;ve got two systems with XFS root partitions that fstrim seems to do (almost) nothing on, but it seems to work correctly on another system with formatted with ext4. Details follow: System 1 is an AMD 1090T with a Patriot Torqx 2 128GB SSD. System <a href='http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/'>[...]</a><p><a href="http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/">fstrim and XFS</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Does anyone use fstrim on an XFS formatted SSD partition?</p>
<p>I&#8217;ve got two systems with XFS root partitions that fstrim seems to do (almost) nothing on, but it seems to work correctly on another system with formatted with ext4.<br />
<span id="more-207"></span><br />
Details follow:</p>
<p>System 1 is an AMD 1090T with a Patriot Torqx 2 128GB SSD. System 2 is also an AMD 1090T with a Patriot Pyro 120GB SSD.</p>
<p>I&#8217;ve been running both for several months without any TRIM support because I (incorrectly) assumed that XFS&#8217; support for TRIM was automatically enabled. I&#8217;ve recently discovered that it&#8217;s not, and also that it&#8217;s better performance-wise to run fstrim regularly from cron for &#8216;batch-mode&#8217; TRIM operations.</p>
<p>Anyway, System 1 takes over 7 minutes to run fstrim, and claims to have trimmed about 16GB&#8230;.but if i run it again it still takes over 7 minutes and claims to have trimmed about the same amount of data (slightly less).</p>
<pre># time fstrim -v /
/: 16777764864 bytes were trimmed

real 7m31.089s user 0m0.004s sys 0m9.705s

# time fstrim -v /
/: 16772276224 bytes were trimmed

real 7m8.973s user 0m0.000s sys 0m9.165s</pre>
<p>System 2 takes over 28 minutes to run fstrim and claims to trim about 51GB of data (it&#8217;s had an SSD for a lot longer than System 1. It also has /home on /, whereas System 1 has /home on a separate disk). Similarly, running it again immediately afterwards also takes about the same amount of time and claims to trim about the same amount of data.</p>
<pre># time fstrim -v /
/: 51594948608 bytes were trimmed

real 28m19.832s user 0m0.000s sys 0m6.264s

# time fstrim -v /
/: 51499814912 bytes were trimmed

real 28m29.230s user 0m0.000s sys 0m6.328s</pre>
<p>(interestingly, the Pyro is a *much* faster SSD than the Torqx2. it&#8217;s SATA3 and is capable of about 500-550MB/s. The Torqx 2 is SATA 2 and is capable of about 230MB/s&#8230;seems as if TRIM speed is roughly the<br />
same for both drives, proportional to the amount of data to be trimmed. almost certainly limited by the flash speed with the internal controller differences being negligible for this task)</p>
<p>OK, so it seems as if fstrim claims X bytes were trimmed, but it doesn&#8217;t actually happen.</p>
<p>On a third system, I have / on an SSD formatted with ext4. System 3 is an Intel Xeon E5607, and the SSD is an OCZ AGILITY3 120GB.</p>
<pre># time fstrim -v /
/: 14267424768 bytes were trimmed

real 2m25.222s user 0m0.000s sys 0m0.636s

# time fstrim -v /
/: 0 bytes were trimmed

real 0m0.001s user 0m0.000s sys 0m0.000s</pre>
<p>on ext4 fstrim seems to work as expected. The OCZ SSD is also a LOT faster than the Patriot SSDs (roughly 14GB trimmed in 2.5 minutes).</p>
<p>anyone seen this before? is it a bug in XFS&#8217; SSD handling? or am i just misinterpreting the results? my google-fu can&#8217;t find anyone with similar problems, just mailing list articles and an XFS wiki page saying that it works, and that running fstrim regularly is recommended over using the &#8216;discard&#8217; mount time option.</p>
<p><a href="http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/">fstrim and XFS</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.taz.net.au/2012/01/07/fstrim-and-xfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set the application icon for chromium</title>
		<link>http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/</link>
		<comments>http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 06:53:53 +0000</pubDate>
		<dc:creator>cas</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.taz.net.au/?p=184</guid>
		<description><![CDATA[This has been a minor annoyance for the last few months, and I&#39;ve finally figured out how to fix it: Sometime within the last few months, an upgrade prevented Chromium from finding its application icon&#8230;with the result that when minimised (or displayed in the panel window list or Alt-Tab) it used the default application icon. <a href='http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/'>[...]</a><p><a href="http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/">How to set the application icon for chromium</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This has been a minor annoyance for the last few months, and I&#39;ve finally figured out how to fix it:</p>
<p>Sometime within the last few months, an upgrade prevented Chromium from finding its application icon&#8230;with the result that when minimised (or displayed in the panel window list or Alt-Tab) it used the default application icon.</p>
<p>It looks to me as if the problem is that Chromium is now looking for chromium-browser.svg but chromium.svg is what&#39;s on my debian system.</p>
<p>To restore, all you need to do is:</p>
<pre>$ mkdir -p ~/.local/share/icons/hicolor/scalable/apps
$ cd ~/.local/share/icons/hicolor/scalable/apps
$ ln -s /usr/share/icons/hicolor/scalable/apps/chromium.svg chromium-browser.svg
</pre>
<p>great, done. Now my chromium windows don&#39;t look the same as my mrxvt windows in Alt-Tab, they&#39;re quite clearly Chromium windows. The icon now looks like this: <img alt="" class="alignnone size-full wp-image-194" height="32" src="/wp-content/uploads/2011/12/chromium.png" title="chromium" width="32" /> rather than an icon i&#39;d insert here if i knew what its filename is &#8211; it looks like a white window with a blue title bar and a thinner blue bar at the bottom (about half the height/thickness of the &quot;title bar&quot;) I&#39;ve spent half an hour searching for it and have given up &#8211; anyone know what it is?</p>
<p>alternatively, use cp rather than ln &#8211; just in case some future upgrade removes or renames the chromium.svg file</p>
<p><a href="http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/">How to set the application icon for chromium</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.taz.net.au/2011/12/08/how-to-set-the-application-icon-for-chromium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting gnome-fallback as the default session</title>
		<link>http://blog.taz.net.au/2011/09/11/gnome-fallback-session/</link>
		<comments>http://blog.taz.net.au/2011/09/11/gnome-fallback-session/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 12:18:40 +0000</pubDate>
		<dc:creator>cas</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[google-food]]></category>

		<guid isPermaLink="false">http://blog.taz.net.au/?p=31</guid>
		<description><![CDATA[How to set gnome-fallback as the default session for gnome3 &#038; gdm3. The easiest way to do it in debian is to use update-alternatives to &#34;install&#34; a new alternative x-session-manager. update-alternatives --install /usr/bin/x-session-manager x-session-manager \ /usr/bin/gnome-session-fallback 100 --slave /usr/share/man/man1/x-session-manager.1.gz \ x-session-manager.1.gz /usr/share/man/man1/gnome-session.1.gz This gives gnome-session-fallback a much higher priority than gnome-session so is unlikely to <a href='http://blog.taz.net.au/2011/09/11/gnome-fallback-session/'>[...]</a><p><a href="http://blog.taz.net.au/2011/09/11/gnome-fallback-session/">Setting gnome-fallback as the default session</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></description>
			<content:encoded><![CDATA[<p>How to set gnome-fallback as the default session for gnome3 &#038; gdm3.</p>
<p>The easiest way to do it in debian is to use update-alternatives to &quot;install&quot; a new alternative x-session-manager.</p>
<p><span id="more-31"></span></p>
<pre>update-alternatives --install /usr/bin/x-session-manager x-session-manager \
/usr/bin/gnome-session-fallback 100 --slave /usr/share/man/man1/x-session-manager.1.gz \
x-session-manager.1.gz /usr/share/man/man1/gnome-session.1.gz</pre>
<p>This gives gnome-session-fallback a much higher priority than gnome-session so is unlikely to be bumped by any other session managers that might get installed/upgraded</p>
<p><a href="http://blog.taz.net.au/2011/09/11/gnome-fallback-session/">Setting gnome-fallback as the default session</a> is a post from: <a href="http://blog.taz.net.au">Errata</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.taz.net.au/2011/09/11/gnome-fallback-session/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

