<?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>Never Ending Baustelle &#187; General</title>
	<atom:link href="http://ridderbusch.name/wp/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://ridderbusch.name/wp</link>
	<description>About things, that are of interest to me (in English and in German).</description>
	<lastBuildDate>Mon, 12 Sep 2011 21:42:21 +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>Sun Type 6 Keyboard</title>
		<link>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/</link>
		<comments>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 15:26:03 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=864</guid>
		<description><![CDATA[I&#8217;ve written about my issues with my SUN Type6 keyboard in the company. I&#8217;ve finally found a 100% satisfactory solution. In the end, all fiddling with xmodmap and setxkbmap didn&#8217;t really help. To really fix my issues I needed to edit the file /usr/share/X11/xkb/keycodes/evdev to shuffle some keycodes around. In the end I made these [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written about my <a href="/wp/2009/09/04/these-little-annoying-problems/">issues</a> with my SUN Type6 keyboard in the company. I&#8217;ve finally found a 100% satisfactory solution. In the end, all fiddling with <code>xmodmap</code> and <code>setxkbmap</code> didn&#8217;t really help. To really fix my issues I needed to edit the file <code>/usr/share/X11/xkb/keycodes/evdev</code> to shuffle some keycodes around.</p>

<p>In the end I made these changes  (relative to the directory <code>/usr/share/X11/xkb/keycodes</code>):</p>

<pre><code>--- keycodes.dir.org    2009-09-03 08:31:32.000000000 +0200
+++ keycodes.dir    2009-10-06 12:58:54.000000000 +0200
@@ -46,6 +46,7 @@
 -------- -------- sony(nwp5461)
 -d------ -------- evdev(evdev)
 -------- -------- evdev(pc98)
+-------- -------- evdev(type6)
 -d------ -------- xfree86(xfree86)
 -------- -------- xfree86(basic)
 -------- -------- xfree86(102)
-- keycodes/evdev.org   2009-09-03 08:31:32.000000000 +0200
+++ keycodes/evdev  2009-10-06 12:59:32.000000000 +0200
@@ -311,3 +311,10 @@
     include "evdev(evdev)"
 };

+// Sun Type 6
+xkb_keycodes "type6" {
+    include "evdev(evdev)"
+    &lt;RCTL&gt; = 108;
+    &lt;RALT&gt; = 134;
+    &lt;RWIN&gt; = 105;
+};
--- rules/evdev.org 2009-09-03 08:31:34.000000000 +0200
+++ rules/evdev 2009-10-06 13:00:04.000000000 +0200
@@ -105,6 +105,7 @@
 ! $dvoraklayouts = br ca de ee es fr gb no pl se us

 ! model        =   keycodes
+  type6        =   evdev(type6)
   pc98     =   evdev(pc98)
   *        =   evdev
</code></pre>

<p>With the above changes I was additionally able to modify the file <code>/etc/hal/fdi/policy/10-x11-input.fdi</code> so that HAL will do the right thing, once this keyboard is plugged in (see the line with <code>input.product</code>).</p>

<pre><code><?xml version="1.0" encoding="UTF-8"?>
&lt;deviceinfo version="0.2"&gt;
  &lt;device&gt;
    &lt;match key="info.capabilities" contains="input.keys"&gt;
      &lt;merge key="input.xkb.rules" type="string"&gt;evdev&lt;/merge&gt;
      &lt;merge key="input.xkb.layout" type="string"&gt;de&lt;/merge&gt;
      &lt;match key="input.product" contains="HID 0430:0005"&gt;
        &lt;merge key="input.xkb.model" type="string"&gt;type6&lt;/merge&gt;
      &lt;/match&gt;
    &lt;/match&gt;
  &lt;/device&gt;
&lt;/deviceinfo&gt;
</code></pre>

<p>Make sure, that your desktop environment uses the system settings and doesn&#8217;t override it with session local settings, when you log into your desktop. If everything is correct, the <code>/var/log/Xorg.0.log</code> should contain something like this:</p>

<pre><code>...
(II) config/hal: Adding input device HID 0430:0005
(**) HID 0430:0005: always reports core events
(**) HID 0430:0005: Device: "/dev/input/event0"
(II) HID 0430:0005: Found keys
(II) HID 0430:0005: Configuring as keyboard
(II) XINPUT: Adding extended input device "HID 0430:0005" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "type6"
(**) Option "xkb_layout" "de"
...
</code></pre>

<p>While the above changes may be the 100% solution, there is still the danger, that the changes are overwritten, when new keyboard tables are installed. For <a href="http://gentoo.org">Gentoo</a> Linux it is therefore advisable to extend the <code>CONFIG_PROTECT</code> variable in <code>/etc/make.conf</code> with the directories <code>/usr/share/X11/xkb/keycodes</code> and <code>/usr/share/X11/xkb/rules</code>.</p>

<p>The simplest solution however may be to copy the file <code>/usr/share/X11/xkb/keycodes/evdev</code> to a new file <code>/usr/share/X11/xkb/keycodes/evdev-new</code>, edit the keycode changes into this file and then load the keycodes by executing &#8220;<code>setxkbmap -keycodes evdev-new(type6)</code>&#8221; somewhere in the login process (<code>.xprofile</code> or <code>.xinitrc</code> or whereever).</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X.Org 1.5.x, evdev and HAL</title>
		<link>http://ridderbusch.name/wp/2009/04/03/xorg-15x-evdev-and-hal/</link>
		<comments>http://ridderbusch.name/wp/2009/04/03/xorg-15x-evdev-and-hal/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 12:01:56 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2009/04/03/xorg-15x-evdev-and-hal/</guid>
		<description><![CDATA[The move to X.Org server 1.5.x was not quite the smooth ride I expected it to be. It took me the better part of a Saturday afternoon to get everything in working order again. Some time ago (actually already 2 month have gone by) I used the opportunity to do this, while fiddling with Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>The move to X.Org server 1.5.x was not quite the smooth ride I expected it to be. It took me the better part of a Saturday afternoon to get everything in working order again. Some time ago (actually already 2 month have gone by) I used the opportunity to do this, while fiddling with Ubuntu 8.10 on an externally connected USB drive. I compiled the X-server in a chroot environment on my standard os partition.</p>

<p>The first good thing I noticed after rebooting into my standard Gentoo environment was, that all of my 9 mouse buttons were correctly working. The bad news was, that each time I pressed the <code>Cursor Up</code> key, that the KDE screen snapshot utility would open. I tried multiple changes in the <code>Input</code> section of the <code>/etc/X11/xorg.conf</code> file, all to no avail. The first break through came, when I <strong>completely</strong> removed all sections from the <code>xorg.conf</code> file having something to do with the keyboard or the mouse. After that it was only additional configuration for the HAL subsystem, to report the correct keyboard type. For this I created the file <code>/etc/hal/fdi/policy/10-x11-input.fdi</code> with this content:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;deviceinfo version="0.2"&gt;
  &lt;device&gt;
    &lt;match key="info.capabilities" contains="input.keys"&gt;
      &lt;merge key="input.xkb.model" type="string"&gt;evdev&lt;/merge&gt;
      &lt;merge key="input.xkb.layout" type="string"&gt;de&lt;/merge&gt;
      &lt;merge key="input.xkb.rules" type="string"&gt;evdev&lt;/merge&gt;
    &lt;/match&gt;
  &lt;/device&gt;
&lt;/deviceinfo&gt;
</code></pre>

<p>I think, the best way to diagnose any problems is to look at the <code>/var/log/Xorg.0.log</code> file. For my particular keyboard/mouse the output looks like this:</p>

<pre><code>(II) config/hal: Adding input device HOLTEK Wireless Keyboard/Mouse(2.4G)
(**) HOLTEK Wireless Keyboard/Mouse(2.4G): always reports core events
(**) HOLTEK Wireless Keyboard/Mouse(2.4G): Device: "/dev/input/event2"
(II) HOLTEK Wireless Keyboard/Mouse(2.4G): Found keys
(II) HOLTEK Wireless Keyboard/Mouse(2.4G): Configuring as keyboard
(II) XINPUT: Adding extended input device "HOLTEK Wireless Keyboard/Mouse(2.4G)" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) HOLTEK Wireless Keyboard/Mouse(2.4G): xkb_rules: "evdev"
(**) Option "xkb_model" "evdev"
(**) HOLTEK Wireless Keyboard/Mouse(2.4G): xkb_model: "evdev"
(**) Option "xkb_layout" "de"
(**) HOLTEK Wireless Keyboard/Mouse(2.4G): xkb_layout: "de"
</code></pre>

<p>The <code>xkb_*</code> options are the important places here. Before I managed to set <code>xkb_layout</code> to &#8220;<code>de</code>&#8221; through HAL, the log file would report &#8220;<code>us</code>&#8221; here, which in turn had the affect of opening the snapshot dialogue when pressing <code>Cursor Up</code>.  Another problem was the <code>xkb_rules</code> option. Some blog article I found through googling suggested to set <code>xkb_rules</code> to <code>xorg</code>. This does not work however, since <code>xorg</code> is a symbolic link in the <code>/usr/share/X11/xkb/rules</code> directory and links to <code>base</code>, which is <strong>not</strong> the correct rules set for the <code>evdev</code>-driver.</p>

<p>These three articles (<a href="http://www.blogs.uni-osnabrueck.de/rotapken/2008/08/14/xorg-evdev-und-hal/">part1</a>, <a href="http://www.blogs.uni-osnabrueck.de/rotapken/2008/08/14/xorg-evdev-und-hal-teil-2/">part2</a> and <a href="http://www.blogs.uni-osnabrueck.de/rotapken/2008/10/05/xorg-evdev-und-hal-teil-3/">part3</a>) from the <a href="http://www.blogs.uni-osnabrueck.de/rotapken/">Cybso</a> blog were very helpful. In particular if you are using <a href="http://lineak.sourceforge.net/">lineak</a>. You should look at part 3 and install the <a href="http://www.dau-sicher.de/blog/lineak-evdev.def">lineakd keyboard file</a> for the evdev-driver. These two links were helpful as well (<a href="http://home.coming.dk/index.php/2008/10/17/xorg_1_5_upgrade_weirdness">1</a>, <a href="http://planet.gentoo.org/developers/remi/2008/10/18/it_s_been_too_long">2</a></p>

<p>The Gentoo folks have created an <a href="http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml">update guide</a> in the meantime, which wasn&#8217;t available, when I started out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/04/03/xorg-15x-evdev-and-hal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Medion PNA E4430 (MD 96960) von Aldi</title>
		<link>http://ridderbusch.name/wp/2008/07/04/medion-pna-e4430-md-96960-von-aldi/</link>
		<comments>http://ridderbusch.name/wp/2008/07/04/medion-pna-e4430-md-96960-von-aldi/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 08:08:43 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Us and Me]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2008/07/04/medion-pna-e4430-md-96960-von-aldi/</guid>
		<description><![CDATA[Am Donnerstag, dem 26. Juni 2008, war bei Aldi mal wieder ein Navigationsgerät im Angebot, diesmal ein Medion E4430 (MD96960) für 179€. Bisher hatte ich noch nicht die wirkliche Notwendigkeit gesehen, im Hinblick auf die Reisen, die wir normalerweise unternehmen, ein eigenes Gerät zu erwerben (sprich: zu geizig) und habe stattdessen bei der letzten Gelegenheit [...]]]></description>
			<content:encoded><![CDATA[<p>Am Donnerstag, dem 26. Juni 2008, war bei Aldi mal wieder ein Navigationsgerät im Angebot, diesmal ein <a href="http://www.medion.de/ms/aldi/md96960/nord/flash.html">Medion E4430 (MD96960)</a> für 179€. Bisher hatte ich noch nicht die wirkliche Notwendigkeit gesehen, im Hinblick auf die Reisen, die wir normalerweise unternehmen, ein eigenes Gerät zu erwerben (sprich: zu geizig) und habe stattdessen bei der letzten Gelegenheit mit der <a href="http://www.nav4all.com">Nav4all</a> Offboard-Lösung experimentiert. Nav4all hat eigentlich auch vorzüglich funktioniert, aber da wir dieses Jahr wieder mal nach Dänemark in den Urlaub wollen, fällt im Ausland Handy-Navigation flach, weil bei <a href="http://www.simyo.de">Simyo</a> im Ausland kein Internet auf dem Handy zur Verfügung steht.</p>

<p>Man kann sich auch zu Tode sparen. Also habe ich das Medion Gerät erworben. Die Entscheidung wurde mit zusätzlich durch diesen recht positiven <a href="http://www.geo24.de/article/view_533_1349__MEDION-MD96630MD96690-mit-GoPal-4.3-PE-bzw.-GoPal-4.5-AE/4.3.14.html">Testbericht</a> erleichtert. Die ersten Navigationsversuche hier in der Umgebung sind ebenfalls positiv verlaufen. Einzig die kurze Akku-Laufzeit von unter 2 Stunden hätten mich fast dazu bewogen, das Gerät wieder zurück zu geben. Mit der dieser Laufzeit fällt der Einsatz als mobiles Navigationsgerät auf dem Fahrrad oder für Wanderungen praktisch weg. Für solche Anwendungen würde allerdings auch die Größe des Gerätes etwas stören.</p>

<p>Was mich aber letztendlich bewogen hat, das Gerät endgültig zu behalten, war das TTS (Text To Speech) Feature. Ich empfand es als sehr hilfreich, speziell bei der Navigation in ländliche Gegenden, wenn eine Ansage &#8220;Rechts Abbiegen in den Birkenweg&#8221; kam und nicht nur einfach &#8220;Jetzt Rechts Abbiegen&#8221;. Meine potentiellen Alternativen, das Navigon 7110 oder das 2110max, hätten diese Funktion nicht unterstützt. Spracheingabe, MP3-Player und Bluetooth für Handy-Freisprechen sind zusätzliche Gimicks, die ich nicht wirklich brauche, zumal MP3 und Bluetooth bereits durch das Autoradio unterstützt werden.</p>

<p>Ansonsten sind mir persönlich noch folgenden Punkte besonders aufgefallen:</p>

<ul>
<li>Das Gerät kann nur im Auto aufgeladen werden, da ein entsprechendes Netz-Ladegerät nicht zum Lieferumfang gehört. Abhilfe hat hier für mich das Netz-Ladegerät geschaffen, das zur der Hollux 236 GPS Bluetooth-GPS Maus geliefert wurde. Andere Geräte, die das Laden über einen normalen USB-Minianschluss ermöglichen, funktionieren sicherlich auch. </li>
<li>Der Stift verschwindet nicht im Gerät, sondern wird von der Halterung gehalten, die das Gerät mit dem Schwanenhals verbindet. Nun ist es in Verbindung mit unserem Volvo V70 aber so, wenn das Navi an der Windschutzscheibe befestigt ist, kann man den Stift wegen der Schräge der Scheibe nicht mehr herausziehen. </li>
<li>In verschiedenen Testberichte wurde bei anderen Medion Navis die Ansagelautstärke bemängelt. Für mich waren die Ansagen immer laut genug, selbst wenn das Autoradio in Betrieb war. Ich habe die Lautstärke des Gerätes sogar noch etwas reduzieren können. </li>
<li>Die Bedienung über den Touch-Screen funktioniert sehr gut. Es bestand noch nie die Notwendigkeit auf den Stift zurück zu greifen.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2008/07/04/medion-pna-e4430-md-96960-von-aldi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightzone for Linux</title>
		<link>http://ridderbusch.name/wp/2008/05/02/lightzone-for-linux/</link>
		<comments>http://ridderbusch.name/wp/2008/05/02/lightzone-for-linux/#comments</comments>
		<pubDate>Fri, 02 May 2008 20:28:39 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2008/05/02/lightzone-for-linux/</guid>
		<description><![CDATA[Great news for Linux and digital photography enthusiasts. Apparently since yesterday &#8220;Lightzone for Linux&#8221; is available as an official product with the same functionality as the Windows and Mac Versions. Lightcrafts released a couple of betas for Linux, but no &#8220;real&#8221; product. They are even offering an introductory discount. With this discount the purchase of [...]]]></description>
			<content:encoded><![CDATA[<p>Great news for Linux and digital photography enthusiasts. Apparently since yesterday &#8220;<a href="http://www.lightcrafts.com/linux/index.html">Lightzone for Linux</a>&#8221; is available as an official product with the same functionality as the Windows and Mac Versions. Lightcrafts released a couple of betas for Linux, but no &#8220;real&#8221; product. They are even offering an introductory discount. With this discount the purchase of Lightzone will set me back about 100 Euro.</p>

<p>Hopefully enough Linuxers decide to buy this great product, so that Lightzone continues to be available as a full product.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2008/05/02/lightzone-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to 32bit Linux?</title>
		<link>http://ridderbusch.name/wp/2008/03/20/back-to-32bit-linux/</link>
		<comments>http://ridderbusch.name/wp/2008/03/20/back-to-32bit-linux/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 21:22:24 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2008/03/20/back-to-32bit-linux/</guid>
		<description><![CDATA[In the beginning of this year I build myself a new PC with Intel E6750 processor, Gigabyte P35DS3R motherboard, Samsung HD501LJ 500Gb disk (370Gb with EXT3 for Linux), Nvidia 8600GT graphics card and 4Gb of memory. I decided to install a 64bit Gentoo Linux, currently with kernel 2.6.24-r3. On first impression the system seems to [...]]]></description>
			<content:encoded><![CDATA[<p>In the beginning of this year I build myself a new PC with Intel E6750 processor, Gigabyte P35DS3R motherboard, Samsung HD501LJ 500Gb disk (370Gb with EXT3 for Linux), Nvidia 8600GT graphics card and 4Gb of memory. I decided to install a 64bit Gentoo Linux, currently with kernel 2.6.24-r3.  On first impression the system seems to be quite quick. The software compiled very fast. The first evidence, that something was not quite right, were during playbacks of mpeg2 files with VLC, where there were frequent sound drops. I didn&#8217;t experience these drops with my old AMD XP 2800+.</p>

<p>It really became very annoying during my Audacity sessions. The loading of a 2 hours MP3 started pretty fast, I guess until the buffer cache was filled, then the IO activity basically grind to a halt. Internet radio streams continued playing, but even switching desktops didn&#8217;t produce any reaction until the MP3 was nearly loaded into Audacity.</p>

<p>Apparently I&#8217;m not alone with my experiences. There is an extended <a href="http://forums.gentoo.org/viewtopic-t-482731-start-0-postdays-0-postorder-asc-highlight-.html">thread</a> in the Gentoo forums. From this thread I collected some hints and configured the system with</p>

<pre><code>echo 2 &gt; /proc/sys/vm/dirty_ratio
echo 1 &gt; /proc/sys/vm/dirty_background_ratio
echo deadline &gt; /sys/block/sda/queue/scheduler
echo 1 &gt;/sys/block/sda/device/queue_depth
</code></pre>

<p>I even reduced the main memory by starting the kernel with the <code>mem=2G</code> argument, but all these changes had practically no effect.</p>

<p><a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-16-08_222812.png" rel="lightbox[perfproblem]" title="Gentoo with 64bit kernel"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-16-08_222812.png" width="101" heigth="120" alt="Gentoo with 64bit kernel" class="floatright" /></a></p>

<p>I then made a little test (not very scientific) and took a <code>vmstat 5</code> log during the load of a given MP3 file into Audacity with the above config. It took Audacity 8 minutes and 24 seconds to read the file. Audacity&#8217;s data directory was filled with 3.34 Gb of audio data after the load. <a href="http://ridderbusch.name/wp/wp-content/gentoo.log">This</a> is the text output. I loaded the data into OpenOffice and produced the diagram to the right. During the beginning of the loading the block out (bo) rate is very high (in the 20,000 range), then after a while it drops to 2000-4000 blocks. Once it drops the system is basically over 90% in wa (wait i/o).</p>

<p><a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-24-08_130153.png" rel="lightbox[perfproblem]" title="Gentoo 64bit with 4Gb main memory"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-24-08_130153.png" width="101" heigth="120" alt="Gentoo 64bit with 4Gb main memory" class="floatleft" /></a>
<a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-24-08_130431.png" rel="lightbox[perfproblem]" title="Gentoo 64bit with CFG scheduler"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-24-08_130431.png" width="99" heigth="120" alt="Gentoo 64bit with CFG scheduler" class="floatleft" /></a></p>

<p><strong>Update 2008-03-24:</strong> In my original post I compared Gentoo 64bit running in 2Gb of memory against Knoppix running in 4Gb. I repeated my little test with Audacity a couple more times. To the very left is a diagram running the test under Gentoo 64bit with 4Gb of memory. The result is not really different as compared with 2Gb of main memory. A couple of seconds faster maybe. The Audacity progress bar in the end reported 8:08 for loading the MP3 file. <a href="http://ridderbusch.name/wp/wp-content/64bit-4gb.log"><code>vmstat</code> text output</a></p>

<p>The next diagram belongs to a test, where I changed the I/O-schedulter to <code>CFQ</code> and set <code>queue_depth</code> to 31. (Ok ok, first rule of benchmarking: Never change more then one parameter for each test run. Me Culpa).  This improved the situation in so far, that it took Audacity only 6:50 to load the MP3 file. However, the system is still most of the time in wait-I/O. <a href="http://ridderbusch.name/wp/wp-content/chnged-param.log"><code>vmstat</code> text output</a></p>

<p><a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-24-08_130637.png" rel="lightbox[perfproblem]" title="Gentoo 64bit with XFS-fs in an image"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-24-08_130637.png" width="100" heigth="120" alt="Gentoo 64bit with XFS-fs in an image" class="floatright" /></a>
Now, it gets interesting. For the next two runs I created a 6Gb image file with <code>dd</code> and then created a XFS file system inside the image. This file system was then mounted onto the directory into which Audacity loads its audio data. Now, this tests showed a performance, which I would expect from this particuar hardware setup. It took Audacity only 1:22 to complete the loading. The <code>bo</code> rate was nearly the complete runtime in the high 80,000 range. <a href="http://ridderbusch.name/wp/wp-content/xfs-in-img.log"><code>vmstat</code> text output</a></p>

<p><a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-24-08_130739.png" rel="lightbox[perfproblem]" title="Gentoo 64bit with EXT3-fs in an image"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-24-08_130739.png" width="93" heigth="120" alt="Gentoo 64bit with EXT3-fs in an image" class="floatleft" /></a>
Now  repeated the test one last time, but instead with a XFS-fs I reformatted the image file with a EXT3 file system. Again, the test completed pretty fast, but not as fast as with the XFS-fs. It took Audacity 1:46 to load the MP3 file. However, if you look at the diagram and compare it to the XFS diagram, you&#8217;ll see, that quite a bit of more wait-I/O is involved. <a href="http://ridderbusch.name/wp/wp-content/ext3-in-img.log"><code>vmstat</code> text output</a></p>

<p>I&#8217;m wondering, if XFS simply the better file system for this kind of data intensive application or if the still somewhat higher wait-I/O rate for the EXT3 fs is an indication of the same problem, that causes so very high wait-I/O, when the test is run in the EXT3 root file system. Can a switch to XFS be the solution for my problem or do I really need to change to 32bit Linux. <strong>End of Update</strong></p>

<p><a href="http://ridderbusch.name/wp/wp-content/gkrellShoot_03-16-08_222858.png" rel="lightbox[perfproblem]" title="With Knoppix 5.3 and 32bit kernel"><img src="http://ridderbusch.name/wp/wp-content/_gkrellShoot_03-16-08_222858.png" width="102" heigth="120" alt="With Knoppix 5.3 and 32bit kernel" class="floatright" /></a></p>

<p>To have a comparison I booted the Knoppix 5.3 DVD, which uses 2.6.24 as well, but in 32bit. I mounted the hard disk, configured Audacity to have the data directory on it and repeated the test. <a href="http://ridderbusch.name/wp/wp-content/knoppix.log">Here</a> is the text output of <code>vmstat 5</code> from that run. Here the system behaves just as it should. The block out (bo) count is in the 30,000 to 35,000. The whole operation completed in 1 minute and 46 seconds. Unfortunately I forgot to reduce the memory to 2Gb to make this measurement a little more comparable with the previous take. Anyway I don&#8217;t think, that this would explain the different between 1:46 and 8:24.</p>

<p>As a last resort I moved the kernel config file from the Knoppix DVD to the Gentoo system and recompiled a kernel with this config, changing only those parameters to change the kernel into a 64bit version, the rest remaining the same. I restarted the Audacity run, but half way through the test I saw, that it was just slow as with the original Gentoo kernel. So this really appears to be a 32bit vs. 64bit issue.</p>

<p>So, in the end I guess I&#8217;m going to move back to a 32bit kernel.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2008/03/20/back-to-32bit-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amarok a resource hog?</title>
		<link>http://ridderbusch.name/wp/2008/01/31/amarok-a-resource-hog/</link>
		<comments>http://ridderbusch.name/wp/2008/01/31/amarok-a-resource-hog/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 07:41:52 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2008/01/31/amarok-a-resource-hog/</guid>
		<description><![CDATA[It appears, that Amarok eats quite a bit of resources during a long runtime. At work I&#8217;m using a Intel P4 2.8Ghz system with 1 Gb of memory. The system is running Gentoo Linux and goes without reboots for longer periods of time. The system is usually rebooted, when I compiled and installed a new [...]]]></description>
			<content:encoded><![CDATA[<p>It appears, that <a href="http://amarok.kde.org/de">Amarok</a> eats quite a bit of resources during a long runtime.</p>

<p>At work I&#8217;m using a Intel P4 2.8Ghz system with 1 Gb of memory. The system is running <a href="http://www.gentoo.org">Gentoo</a> Linux and goes without reboots for longer periods of time. The system is usually rebooted, when I compiled and installed a new kernel. At the end of the day I hibernate the system and let it wake the next morning by setting an alarm in <code>/proc/acpi/alarm</code>.</p>

<p>Yesterday I nearly reached the point were my complete virtual and physical memory was exhausted and these were the processes, that ate most of the memory (very rough numbers):</p>

<ul>
<li>Eclipse 3.3 with lost of plugins installed. Virtual memory was somewhere in the 800Mb region and resident memory at about 280Mb.</li>
<li>Firefox 2.0.11. Virtual memory was at 520Mb and resident memory at about 250Mb.</li>
<li>Amarok 1.4.8. Virtual memory allocated: 1.2Gb. Resident memory somewhere between 200 and 300Mb.</li>
</ul>

<p>And with the rest of processes required to make a usable system I was at nearly 100% memory utilisation. Why in the world would an audio player use 1.2Gb of virtual memory?</p>

<p>So, for the time being until I&#8217;m done with my Eclipse work I&#8217;ve switched to <a href="http://www.develia.org/projects.php?l=2&amp;f=1&amp;p=audacious">Audacious</a>. Audacious is happy with about 120Mb virtual and 37Mb resident memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2008/01/31/amarok-a-resource-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switched</title>
		<link>http://ridderbusch.name/wp/2008/01/21/switched/</link>
		<comments>http://ridderbusch.name/wp/2008/01/21/switched/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 21:32:07 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2008/01/21/switched/</guid>
		<description><![CDATA[After about three weeks of assembly, installing and testing I&#8217;ve switched to the new system last weekend. It took a couple of evenings to mirror the Gentoo installation from the old system to the new one. I decided to move from ordinary 32bit Linux to 64bit and with Gentoo this means a complete recompilation. I [...]]]></description>
			<content:encoded><![CDATA[<p>After about three weeks of assembly, installing and testing I&#8217;ve switched to the new system last weekend. It took a couple of evenings to mirror the Gentoo installation from the old system to the new one. I decided to move from ordinary 32bit Linux to 64bit and with Gentoo this means a complete recompilation.</p>

<p>I like to share my experiences in some forthcoming posts. It was not completely smooth sailing. For the moment here are some random <a href="/albums/public/2newPC/">shots</a> from the two system during the assembly.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2008/01/21/switched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hamburg mit Nav4all und MGMaps</title>
		<link>http://ridderbusch.name/wp/2007/12/07/hamburg-mit-nav4all-und-mgmaps/</link>
		<comments>http://ridderbusch.name/wp/2007/12/07/hamburg-mit-nav4all-und-mgmaps/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 21:34:52 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2007/12/07/hamburg-mit-nav4all-und-mgmaps/</guid>
		<description><![CDATA[Nav4All Irgendwie war ich in der Vergangenheit immer ein bisschen zu geizig, um in ein eigenständiges Navigationsgerät zu investieren. Die Wege zu den Eltern und Schwiegereltern kennen wir sowieso und für das eine Mal Urlaub im Jahr und die eine oder andere außergewöhnliche Route reichen dann auch Ausdrucke von Google Maps oder Map24. Als ich [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Nav4All</strong></p>

<p>Irgendwie war ich in der Vergangenheit immer ein bisschen zu geizig, um in ein eigenständiges Navigationsgerät zu investieren. Die Wege zu den Eltern und Schwiegereltern kennen wir sowieso und für das eine Mal Urlaub im Jahr und die eine oder andere außergewöhnliche Route reichen dann auch Ausdrucke von <a href="http://maps.google.de">Google Maps</a> oder <a href="http://maps24.de">Map24</a>.</p>

<p>Als ich Birgit dann im August ein neues Handy geschenkt, habe ich ein Smartphone ausgesucht, mit dem Hintergedanken, das mal mit dem Gerät ja vielleicht noch mehr anstellen kann als nur zu telefonieren. Zumal das Sony-Ericsson M600i, das ich ausgewählt habe, zu diesem Zeitpunkt bereits recht günstig zu bekommen war. Im Internet hatte ich bereits verschiedene Lösungen gefunden, die ein Handy zu einem vollwertigen Navigationgerät erweitern. Ein Testbericht in der c&#8217;t hat diesen Lösungen zu Teil auch gute Praktikabilität bescheinigt.</p>

<p>Als jetzt Ende November ein Trip nach Hamburg anstand, habe ich die Ideen dann in die Tat umgesetzt. Als Bluetooth GPS-Empfänger habe ich mich für den <a href="http://www.holux.com/JCore/en/products/products_content.jsp?pno=340">Holux 236</a> entschieden. Zusätzlich habe ich von SE den Adapter für die Stromversorgung des Handys über den Zigarettenanzünder und die passende Auto-Halterung von <a href="http://brodit-shop.de/home.php">Brodit</a> erworben.</p>

<p>Als Navigationslösung habe ich mich für <a href="http://nav4all.com">Nav4All</a> entschieben, die lt. Webseite bis zum 1.1 2010 kostenlos nutzbar ist. Hier handelt es sich um eine Standard MIDP 2.0 Java Anwendung, die damit auf jedem entsprechend ausgestatteten Handy benutzt werden kann und nicht nur auf Smartphones. Eingesetzt wurde die aktuelle Version 8.0.6. Es handelt sich hierbei um eine Offboard Lösung, d.h. für jeden Navigationsvorgang wird für die Berechnung der Route  über das Handy einmal mit der Nav4All Servern im Internet Kontakt aufgenommen und  die Routeninformationen heruntergeladen. Danach wird nur dann wieder Kontakt aufgenommen, wenn eine Neuberechnung der Route notwendig wird, weil man sich z.B. verfahren hat. Im Normalfall hat man eine simple grafische Navigation ohne Kartenansichten. Wenn eine Kartenansicht ausgewählt wird, müssen die Daten wiederum über das Internet geladen werden. Ohne weiteres Nachladen ist auch einen Listenansicht der Route möglich. Zur Definition der Route können die Daten im Adressbuch des mobilen Telefons herangezogen werden. Ansonsten erfolgt die Definition im Dialog mit Kontakt ins Internet. Die einmal verwendeten Routenziele werden von der Applikation gespeichert und können später wiederverwendet werden.</p>

<p>Insgesamt hat die Verwendung von <a href="http://nav4all.com">Nav4All</a> für die Navigation nach Hamburg wunderbar geklappt. Die Anweisungen kamen passend und früh genug. Es ist grundsätzlich einfach so, das man sich wirklich auf die Navigation über so ein Gerät, sei es nun Handy oder vollwertiges Navigationsgerät, einlassen muss. Anfänglich fühlt man sich irgendwie unwohl, sich vollkommen auf so ein Gerät zu verlassen und ihm blind zu vertrauen.</p>

<p>Während längerer gleichförmiger Perioden, z.B. auf der Autobahn, wird über die normalen Handy-Funktionen das Display dunkel geschaltet. In definierten Abständen vor anstehenden Richtungsänderungen, wird dann jeweils wieder &#8220;hell&#8221; geschaltet, sodass man eigentlich auch ohne Ansagen immer weiß, wann Aufmerksamkeit angesagt ist. Mir fehlen zur Beurteilung der Qualität der Ansagen und Texte natürlich die Vergleichsmöglichkeiten, aber grundsätzlich empfand ich die Verständlichkeit und Betonung als sehr gut. Aufgrund einer Reise bin ich Anfang Dezember in einem Mercedes C220 Mietwagen mit eingebautem Navigationsgerät mitgefahren. Hier empfand ich einige Ansagen als etwas abgehackt. Grundsätzliches Problem der &#8220;Handy&#8221;-Navigation ist die mangelnde Lautstärke. Die Ansagen erfolgen über den Handy-Lautsprecher. Wenn man nebenbei noch Musik hört, versteht man fast nichts mehr. Da ich kürzlich das Original-Volvo Autoradio gegen ein Model von Sony ausgetauscht habe, hoffe ich, das sich hier noch ein Besserung ergibt. Entweder wird die Nav4All Software noch weiter entwickelt, sodass Ansagen auch über Bluetooth an das Autoradio weitergegeben werden können oder ich stellen eine Verbindung von SE M600i Fastport Connector zu Radio Aux-Eingang her.</p>

<p>Besonders positiv haben mich die Warnungen bei überhöhter Geschwindigkeit bei der Nav4All Lösung überrascht. Ein Kollege, der ein Medion Navigationsgerät von Aldi erworben hatte, berichtete, das dieses Gerät diese Funktion z.B. nicht bietet. Auch beim eingebauten System im Leihwagen schien diese Funktion nicht vorhanden zu sein.</p>

<p>Um sich wirklich mit der Anwendung vertraut zu machen, ist es günstig, wenn man mit den Handy eine Verbindung ins Internet aufbauen kann, ohne den Provider bemühen zu müssen. Das geht besonders einfach, wenn das Handy das Bluetooth PAN Profil beherrscht. Damit kann man dann seinen Heim-PC als Gateway ins Internet nutzen. Für <a href="http://www.gentoo.org">Gentoo</a> Linux habe ich meine Bemühungen <a href="http://ridderbusch.name/wp/2007/11/26/messy-bluetooth-affair/">hier</a> niedergeschrieben. Für Debian Linux ist in dem Artikel ein Link enthalten. Für Windows findet man eine entsprechende Anleitung auf <a href="http://se-world.info">SE World</a> im Forum. Wenn man unter Linux in einem Terminal ein <code>watch -n /sbin/ifconfig -a</code> startet, kann man sich sehr gut einen Eindruck über das anfallende Datenvolumen machen.</p>

<p><strong>Update</strong>: Als ich am ersten Abend meiner Versuche mit Nav4all die Verbindung über das Bluetooth PAN Netzwerk und meinen PC nicht direkt hinbekommen habe, bin ich dann ungeduldig geworden und habe die Applikation doch direkt über das Provider-Internet installiert. Insgesamt sind für Installation 2030Kb (=0,41€) aufgelaufen. Für den eigentlichen Reisetag sind 140Kb an Navigationsdaten aufgelaufen. Einzelne  Neuberechnungen der Routen sind zum Teil mit 0,00€ aufgeführt, sodass sich aus der Rückrechnung der insgesamt angefallenen Datenkosten im November 0,03€ für heruntergeladenen Routeninformationen ergeben.</p>

<p><strong>MGmaps</strong></p>

<p>Als zweiter Applikation für den Hamburg Trip habe ich [Mobile GMaps] auf dem Handy installiert. MGMaps ist eine weitere &#8220;Navigations&#8221;-Applikation. Ursprünglich als Front-End für <a href="http://maps.google.de">Google Maps</a> gedacht, arbeitet die Anwendung jetzt mit dem Karten Material von <a href="http://maps.yahoo.com/">Yahoo! Maps</a>, <a href="http://local.live.com/">Windows Live Local</a> (MSN Virtual Earth), <a href="http://maps.ask.com/">Ask.com</a> und weiteren zusammen. MGMaps ist primär eine reine Online-Anwendung und arbeite praktisch genauso wie Google Maps.</p>

<p>MGMaps kann aber auch mit zwischengespeicherten Daten arbeiten, die man sich vorher auf dem PC heruntergeladen und dann auf den Speicher oder die Speicherkarte des mobilen Telefons herunter geladen hat. Mit den <a href="http://www.mgmaps.com/cache/">hier</a> aufgelisteten Applikation wird mit dem <a href="http://www.mgmaps.com/create/">Map Creation Tool</a> zunächst eine <code>.map</code>Datei erzeugt. Diese Datei werten dann die beiden Programme <a href="http://www.mgmaps.com/cache/MapTileFE.zip">MapTileFE</a> und <a href="http://www.mgmaps.com/cache/MapTileCacher.perl">Map Tile Cacher</a> aus, laden dann die entsprechenden Kartenabschnitte herunter und legen sie dann in einem Verzeichnis ab. Dies Verzeichnis wird dann auf das Telefon transferiert. Das Verzeichnis muss MGMaps im letzten Schritt noch bekannt gemacht werden. Auf dem SE M600i habe ich das Verzeichnis mit den Kartendaten in das Verzeichnis &#8220;Other&#8221; auf dem Memory-Stick abgelegt. Als es sich zunächst mit Wurzel-Verzeichnis der Karte befand, war ich nicht in der Lage, dies Verzeichnis innerhalb von MGMaps auszuwählen.</p>

<p>MGMaps arbeitet auch wunderbar mit dem Holux Bluetooth GPS-Empfänger zusammen. Mit dem im Vorfeld herunter geladenen Kartenmaterial kannten wir jederzeit unsere Position, als wir dann durch Hamburg spaziert sind.</p>

<p><a href="http://nav4all.com">Nav4All</a> und <a href="http://www.mgmaps.com">MGMaps</a> sind wirklich zwei sehr empfehlenswerte Anwendungen für das Handy.</p>

<p><strong>Update</strong>: In der <a href="http://www.gsmarena.com">GSM Arena</a> gibt es eine <a href="http://www.gsmarena.com/gps_navigation_review-review-190.php">Übersicht</a> von Navigationslösungen für das Handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2007/12/07/hamburg-mit-nav4all-und-mgmaps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ok, everything is back to normal.</title>
		<link>http://ridderbusch.name/wp/2007/11/09/ok-everything-is-back-to-normal/</link>
		<comments>http://ridderbusch.name/wp/2007/11/09/ok-everything-is-back-to-normal/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 09:39:50 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2007/11/09/ok-everything-is-back-to-normal/</guid>
		<description><![CDATA[Finally the server move has been successfully completed. My encoding problems turned out to have something to do with MySQL session setup concerning the responses of an SQL query. On the old server with MySQL 4.x and WordPress 2.0.x I was using this combination already with UTF-8 encoding although WordPress 2.0.x is originally intended for [...]]]></description>
			<content:encoded><![CDATA[<p>Finally the server move has been successfully completed. My encoding problems turned out to have something to do with MySQL session setup concerning the responses of an SQL query.</p>

<p>On the old server with MySQL 4.x and WordPress 2.0.x I was using this combination already with UTF-8 encoding although WordPress 2.0.x is originally intended for ISO-8859-1 only. However no encoding changes took place on the way from the database to the browser, so this was actually no problem.</p>

<p>On the new server the database base (now MySQL 5.0.x) is operating with the default encoding of ISO-8859-1. Now the UTF-8 data within the tables was converted to ISO-8859-1 character, which resulted funny looking articles with German umlaut characters. After having finally found this <a href="http://codex.wordpress.org/Converting_Database_Character_Sets">article</a> and having set <code>DB_CHARSET</code> and <code>DB_COLLATE</code> in the <code>wp-config.php</code> files, everything is good again.</p>

<p>Changing versions of multiple components at the same time has always the increased risk, that something get screwed up along the way.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2007/11/09/ok-everything-is-back-to-normal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No quite happy after server change.</title>
		<link>http://ridderbusch.name/wp/2007/10/20/no-quite-happy-after-server-change/</link>
		<comments>http://ridderbusch.name/wp/2007/10/20/no-quite-happy-after-server-change/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 19:26:25 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2007/10/20/no-quite-happy-after-server-change/</guid>
		<description><![CDATA[Well, I&#8217;m on a new server and I&#8217;m not yet a happy customer. Apparently the mod_rewrite module must be explicitly enabled, which isn&#8217;t yet the case for my account. Another problem is, that once a .htaccess file is somewhere in the tree, which is not empty, the browser get a you are not allowed to [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;m on a new server and I&#8217;m not yet a happy customer. Apparently the <code>mod_rewrite</code> module must be explicitly enabled, which isn&#8217;t yet the case for my account. Another problem is, that once a <code>.htaccess</code> file is somewhere in the tree, which is not empty, the browser get a <code>you are not allowed to access .....</code> and the required changes can apparently only made after the weekend. So another wait is in order. I&#8217;m slowly getting sick to have to constantly contact the supporters.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2007/10/20/no-quite-happy-after-server-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

