]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2012/04/index.html
Generated.
[homepage.git] / blog / archive / 2012 / 04 / index.html
index 382d69ba737f42f35810bc2514920a174c14c603..1b94f9efa0e90b30b7d4f20144ca2c3e7be198ce 100644 (file)
@@ -144,6 +144,166 @@ distribution for education</a> if you want to learn more.</p>
     </div>
     <div class="padding"></div>
     
+    <div class="entry">
+      <div class="title">
+        <a href="http://people.skolelinux.org/pere/blog/Why_the_KDE_menu_is_slow_when__usr__is_NFS_mounted___and_a_workaround.html">Why the KDE menu is slow when /usr/ is NFS mounted - and a workaround</a>
+      </div>
+      <div class="date">
+         6th April 2012
+      </div>
+      <div class="body">
+        <p>Recently I have spent time with
+<a href="http://www.slxdrift.no/">Skolelinux Drift AS</a> on speeding
+up a <a href="http://www.skolelinux.org/">Debian Edu / Skolelinux</a>
+Lenny installation using LTSP diskless workstations, and in the
+process I discovered something very surprising.  The reason the KDE
+menu was responding slow when using it for the first time, was mostly
+due to the way KDE find application icons.  I discovered that showing
+the Multimedia menu would cause more than 20 000 IP packages to be
+passed between the LTSP client and the NFS server.  Most of these were
+
+NFS LOOKUP calls, resulting in a NFS3ERR_NOENT response.  Because the
+ping times between the client and the server were in the range 2-20
+ms, the menus would be very slow.  Looking at the strace of kicker in
+Lenny (or plasma-desktop i Squeeze - same problem there), I see that
+the source of these NFS calls are access(2) system calls for
+non-existing files.  KDE can do hundreds of access(2) calls to find
+one icon file.  In my example, just finding the mplayer icon required
+around 230 access(2) calls.</p>
+
+<p>The KDE code seem to search for icons using a list of icon
+directories, and the list of possible directories is large.  In
+(almost) each directory, it look for files ending in .png, .svgz, .svg
+and .xpm.  The result is a very slow KDE menu when /usr/ is NFS
+mounted.  Showing a single sub menu may result in thousands of NFS
+requests.  I am not the first one to discover this.  I found a
+<a href="https://bugs.kde.org/show_bug.cgi?id=211416">KDE bug report
+from 2009</a> about this problem, and it is still unsolved.</p>
+
+<p>My solution to speed up the KDE menu was to create a package
+kde-icon-cache that upon installation will look at all .desktop files
+used to generate the KDE menu, find their icons, search the icon paths
+for the file that KDE will end up finding at run time, and copying the
+icon file to /var/lib/kde-icon-cache/.  Finally, I add symlinks to
+these icon files in one of the first directories where KDE will look
+for them.  This cut down the number of file accesses required to find
+one icon from several hundred to less than 5, and make the KDE menu
+almost instantaneous.  I'm not quite sure where to make the package
+publicly available, so for now it is only available on request.</p>
+
+<p>The bug report mention that this do not only affect the KDE menu
+and icon handling, but also the login process.  Not quite sure how to
+speed up that part without replacing NFS with for example NBD, and
+that is not really an option at the moment.</p>
+
+<p>If you got feedback on this issue, please let us know on debian-edu
+(at) lists.debian.org.</p>
+
+      </div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
+    <div class="entry">
+      <div class="title">
+        <a href="http://people.skolelinux.org/pere/blog/Debian_Edu_interview__Justin_B__Rye.html">Debian Edu interview: Justin B. Rye</a>
+      </div>
+      <div class="date">
+         8th April 2012
+      </div>
+      <div class="body">
+        <p>It take all kind of contributions to create a Linux distribution
+like <a href="http://www.skolelinux.org/">Debian Edu / Skolelinux</a>,
+and this time I lend the ear to Justin B. Rye, who is listed as a big
+contributor to the
+<a href="http://wiki.debian.org/DebianEdu/Documentation/Squeeze">Debian
+Edu Squeeze release manual</a>.
+
+<p><strong>Who are you, and how do you spend your days?</strong></p>
+
+<p>I'm a 44-year-old linguistics graduate living in Edinburgh who has
+occasionally been employed as a sysadmin.</p>
+
+<p><strong>How did you get in contact with the Skolelinux/Debian Edu
+project?</strong></p>
+
+<p>I'm neither a developer nor a Skolelinux/Debian Edu user!  The only
+reason my name's in the credits for the documentation is that I hang
+around on debian-l10n-english waiting for people to mention things
+they'd like a native English speaker to proofread...  So I did a sweep
+through the wiki for typos and Norglish and inconsistent spellings of
+"localisation".</p>
+
+<p><strong>What do you see as the advantages of Skolelinux/Debian
+Edu?</strong></p>
+
+<p><strong>What do you see as the disadvantages of Skolelinux/Debian
+Edu?</strong></p>
+
+<p>These questions are too hard for me - I don't use it!  In fact I
+had hardly any contact with I.T. until long after I'd got out of the
+education system.</p>
+
+<p>I can tell you the advantages of Debian for me though: it soaks up
+as much of my free time as I want and no more, and lets me do
+everything I want a computer for without ever forcing me to spend
+money on the latest hardware.</p>
+
+<p><strong>Which free software do you use daily?</strong></p>
+
+<p>I've been using Debian since Rex; popularity-contest says the
+software that I use most is xinit, xterm, and xulrunner (in other
+words, I use a distinctly retro sort of desktop).</p>
+
+<p><strong>Which strategy do you believe is the right one to use to
+get schools to use free software?</strong></p>
+
+<p>Well, I don't know.  I suppose I'd be inclined to try reasoning
+with the people who make the decisions, but obviously if that worked
+you would hardly need a strategy.</p>
+
+      </div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju</a>.
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
+    <div class="entry">
+      <div class="title">
+        <a href="http://people.skolelinux.org/pere/blog/Jeg_skal_p__konferansen_Go_Open_2012.html">Jeg skal på konferansen Go Open 2012</a>
+      </div>
+      <div class="date">
+        13th April 2012
+      </div>
+      <div class="body">
+        <p>Jeg har tenkt meg på konferansen <a href="http://www.goopen.no/">Go
+Open 2012</a> i Oslo 23. april.
+<a href="http://www.nuug.no/">Medlemsforeningen NUUG</a> deler ut
+<a href="http://www.nuug.no/prisen/">prisen for fremme av fri
+programvare i Norge</a> der i år.  Kommer du?</p>
+
+      </div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>.
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
     <p style="text-align: right;"><a href="04.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS Feed" width="36" height="14" /></a></p>
     <div id="sidebar">
       
@@ -161,7 +321,7 @@ distribution for education</a> if you want to learn more.</p>
 
 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
 
-<li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (2)</a></li>
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (5)</a></li>
 
 </ul></li>
 
@@ -282,17 +442,17 @@ distribution for education</a> if you want to learn more.</p>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (54)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (95)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (97)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (7)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (119)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (121)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (15)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (21)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (22)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (15)</a></li>
 
@@ -304,9 +464,9 @@ distribution for education</a> if you want to learn more.</p>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (14)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (156)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (157)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (120)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (121)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>