<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Work In Progress - Comments</title>
    <link>http://blogs.nologin.es/slopez/</link>
    <description>Work In Progress - cat /dev/mind | grep -e freesoftware -e politics</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 06 Feb 2012 10:03:51 GMT</pubDate>

    <image>
        <url>http://blogs.nologin.es/slopez/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Work In Progress - Comments - Work In Progress - cat /dev/mind | grep -e freesoftware -e politics</title>
        <link>http://blogs.nologin.es/slopez/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Sergio Lopez: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c53</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Sergio Lopez)</author>
    <content:encoded>
    Ouch! This is what happens when you try to pay attention to 10 things at a time. Thanks again! 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 16:46:00 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c53</guid>
    
</item>
<item>
    <title>Steinar H. Gunderson: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c52</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Steinar H. Gunderson)</author>
    <content:encoded>
    Note that now you don&#039;t need orig_buf anymore &lt;img src=&quot;http://blogs.nologin.es/slopez/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
/&lt;strong&gt; Steinar &lt;/strong&gt;/ 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 15:44:01 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c52</guid>
    
</item>
<item>
    <title>Sergio Lopez: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c51</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Sergio Lopez)</author>
    <content:encoded>
    You&#039;re right. Thanks for your suggestion. 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 15:32:22 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c51</guid>
    
</item>
<item>
    <title>Steinar H. Gunderson: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c50</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Steinar H. Gunderson)</author>
    <content:encoded>
    (Gah, comment system messing up my text; hoping it&#039;s better this time)&lt;br /&gt;
&lt;br /&gt;
If you want readability, stop mucking around with pointer arithmetic. The compiler is perfectly able to do it itself if there is a win (but most likely, it will just convert your example back to indexed arithmetic). Ie.:&lt;br /&gt;
&lt;br /&gt;
for (i=0; i &amp;lt; SIZE; ++i) {&lt;br /&gt;
    buf[i] = &#039;A&#039;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
or, of course:&lt;br /&gt;
&lt;br /&gt;
memset(buf, &#039;A&#039;, SIZE);&lt;br /&gt;
&lt;br /&gt;
/* Steinar */ 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 15:21:29 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c50</guid>
    
</item>
<item>
    <title>Steinar H. Gunderson: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c49</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Steinar H. Gunderson)</author>
    <content:encoded>
    If you want readability, stop mucking around with pointer arithmetic. The compiler is perfectly able to do it itself if there is a win (but most likely, it will just convert your example back to indexed arithmetic). Ie.:&lt;br /&gt;
&lt;br /&gt;
for (i=0; i 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 15:20:09 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c49</guid>
    
</item>
<item>
    <title>Sergio Lopez: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c48</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Sergio Lopez)</author>
    <content:encoded>
    1.- I&#039;ve omitted all the headers. Providing a full ready_to_compile example wasn&#039;t my intent.&lt;br /&gt;
&lt;br /&gt;
2.- Type casting the pointer returned by a malloc() can be considered obsolete, but it&#039;s still perfectly valid.&lt;br /&gt;
&lt;br /&gt;
3.- You&#039;re right, thanks for pointing it out. &lt;br /&gt;
&lt;br /&gt;
On the other side, the while loop in your example, while valid, hurts readability, which is precisely the most important thing in a code example. 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 10:10:27 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c48</guid>
    
</item>
<item>
    <title>anonymous: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c47</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (anonymous)</author>
    <content:encoded>
    your code is full of errors &lt;img src=&quot;http://blogs.nologin.es/slopez/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
first you didn&#039;t include stdlib.h for malloc&lt;br /&gt;
second (char &lt;strong&gt;) at malloc is obsolete and shall not be used&lt;br /&gt;
third you cannot do free, since you&#039;ve modified buf pointer&lt;br /&gt;
have you ever tried to run it ???&lt;br /&gt;
&lt;br /&gt;
FTFY:&lt;br /&gt;
&lt;br /&gt;
#include &lt;br /&gt;
&lt;br /&gt;
int&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
        size_t  sz = 100 &lt;/strong&gt; 1024 * 1024;&lt;br /&gt;
        char    *p, *s;&lt;br /&gt;
&lt;br /&gt;
        s = p = malloc(sz);&lt;br /&gt;
&lt;br /&gt;
        if (!p)&lt;br /&gt;
                return -1;&lt;br /&gt;
&lt;br /&gt;
        while (sz-- &gt; 0)&lt;br /&gt;
                *s++ = &#039;A&#039;;&lt;br /&gt;
&lt;br /&gt;
        free(p);&lt;br /&gt;
&lt;br /&gt;
        return 0;&lt;br /&gt;
} 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 08:47:22 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c47</guid>
    
</item>
<item>
    <title>bp: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c46</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (bp)</author>
    <content:encoded>
    Informative article, thank you. 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 06:32:42 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c46</guid>
    
</item>
<item>
    <title>Robert Sheets: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c45</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Robert Sheets)</author>
    <content:encoded>
    The example is written in C, one of the most popular programming languages of all time. Solaris is an operating system, not a computer language. 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 05:52:37 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c45</guid>
    
</item>
<item>
    <title>Weng Fu: Sometimes, swap space still matters</title>
    <link>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#c44</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/28-Sometimes,-swap-space-still-matters.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=28</wfw:comment>

    

    <author>nospam@example.com (Weng Fu)</author>
    <content:encoded>
    Could you please provide some Visual Basic examples for this concept?  I really like the concept but I think it would appeal to more people if you used a programming language that many people are familiar with.  The Solaris language is not so popular. 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 05:44:33 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/28-guid.html#c44</guid>
    
</item>
<item>
    <title>Josema: How device size affects disk performance in Linux</title>
    <link>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#c42</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=26</wfw:comment>

    

    <author>nospam@example.com (Josema)</author>
    <content:encoded>
    Wooohooooooooooo!&lt;br /&gt;
&lt;br /&gt;
Nice bug hunting, even though that couldn&#039;t clasify as such by the Royal Bug Hunters Society. But it shows how important is Open source to a clever individual, and the difference it makes: 100% performance in disk IO.&lt;br /&gt;
&lt;br /&gt;
This is why the &quot;tuning&quot; word was coined, and I award you the disk Tuner Badge, level 1.&lt;br /&gt;
&lt;br /&gt;
Cheers. 
    </content:encoded>

    <pubDate>Wed, 16 Feb 2011 13:36:37 +0100</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/26-guid.html#c42</guid>
    
</item>
<item>
    <title>Sergio Lopez: How device size affects disk performance in Linux</title>
    <link>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#c41</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=26</wfw:comment>

    

    <author>nospam@example.com (Sergio Lopez)</author>
    <content:encoded>
    Well, it&#039;s hard to say if we can call this as an expected behavior. Probably, kernel hackers knew about this, but I didn&#039;t find any documentation referring to this issue. Also, most GNU+Linux vendors seem to ignore this fact.&lt;br /&gt;
&lt;br /&gt;
I really don&#039;t know how easy should be to create an algorithm to deal with the special situation when the internal block size plus the offset exceeds the end of the device. It doesn&#039;t seem hard, but there could be some side effects hard to measure.&lt;br /&gt;
&lt;br /&gt;
Sizing properly the partitions sounds way easier &lt;img src=&quot;http://blogs.nologin.es/slopez/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Tue, 15 Feb 2011 08:23:26 +0100</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/26-guid.html#c41</guid>
    
</item>
<item>
    <title>Luis: How device size affects disk performance in Linux</title>
    <link>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#c37</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/26-How-device-size-affects-disk-performance-in-Linux.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=26</wfw:comment>

    

    <author>nospam@example.com (Luis)</author>
    <content:encoded>
    So finally it wasn&#039;t a bug but the expected performance...&lt;br /&gt;
&lt;br /&gt;
I suppose it could be improved using always the maximum sector size for all the sector but the last one, that could have a different -smaller- sector size. Algorithmically it could be easily programmed -just check if you&#039;re accessing the last sector-, but would it have other consequences?&lt;br /&gt;
&lt;br /&gt;
Great investigation work! 
    </content:encoded>

    <pubDate>Thu, 10 Feb 2011 00:20:56 +0100</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/26-guid.html#c37</guid>
    
</item>
<item>
    <title>slopez: Sobre la llamada Ingeniería Informática (E.W. Dijkstra)</title>
    <link>http://blogs.nologin.es/slopez/archives/19-Sobre-la-llamada-Ingenieria-Informatica-E.W.-Dijkstra.html#c29</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/19-Sobre-la-llamada-Ingenieria-Informatica-E.W.-Dijkstra.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=19</wfw:comment>

    

    <author>nospam@example.com (slopez)</author>
    <content:encoded>
    El problema de la Ingeniería de la Computación, es que así como otras disciplinas están limitadas y reguladas por unas leyes físicas concisas, no ocurre lo mismo con ésta. El universo del desarollo de software es tan amplio como lo son las propias matemáticas (es decir, virtualmente infito) pero, ¿a alguien se le ocurriría crear la Ingeniería de las Matemáticas?&lt;br /&gt;
&lt;br /&gt;
Existen unas leyes físicas que le permiten a un arquitecto determinar con seguridad si la estructura que está diseñando se sostendrá en pie. En cambio, el uso de cualquiera de las metodologías de desarrollo que contempla la Ingeniería del Software, no garantiza en absoluto que el código desarrollado no pueda fallar en unas determinadas circunstancias. De hecho, ni siquiera garantiza que vaya a realizar correctamente la función para la que fue diseñado, y mucho menos que la realice de una forma razonablmente eficiente.&lt;br /&gt;
&lt;br /&gt;
Es por ello que, en la práctica, lo que denominamos Ingeniería del Software, realmente no es más que un conjunto de buenas prácticas; consejos y recomendaciones basados en la experiencia de otros programadores. Por esta razón Dijkstra dice que la máxima de ésta es &quot;Cómo programar si no sabes hacerlo&quot;. 
    </content:encoded>

    <pubDate>Sun, 25 Oct 2009 23:33:58 +0100</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/19-guid.html#c29</guid>
    
</item>
<item>
    <title>lfabiani: Sobre la llamada Ingeniería Informática (E.W. Dijkstra)</title>
    <link>http://blogs.nologin.es/slopez/archives/19-Sobre-la-llamada-Ingenieria-Informatica-E.W.-Dijkstra.html#c28</link>
            <category></category>
    
    <comments>http://blogs.nologin.es/slopez/archives/19-Sobre-la-llamada-Ingenieria-Informatica-E.W.-Dijkstra.html#comments</comments>
    <wfw:comment>http://blogs.nologin.es/slopez/wfwcomment.php?cid=19</wfw:comment>

    

    <author>nospam@example.com (lfabiani)</author>
    <content:encoded>
    Muy buena la entrada, pero no comprendo la reflexión final. Quizá sea porque &quot;Ingeniería Informática&quot; (Computer Engineering) e &quot;Ingeniería del Software&quot; (Software Engineering) tienen la misma relación que la Medicina y la Cirugía. Y nunca criticaría a la medicina por lo que se hace en &quot;Corporación Dermoestética&quot;. La ingeniería del hardware está bastante más madura que la del software (probablemente sin alcanzar aún su madurez total).&lt;br /&gt;
&lt;br /&gt;
Desde mi punto de vista (dejando a un lado el software), la diferencia entre &quot;Computer Engineering&quot; y &quot;Computer Science&quot; salta a la vista en el propio nombre. Y no veo el motivo para que ambas no puedan coexistir. Como ciencias químicas y la ingeniería química.&lt;br /&gt;
&lt;br /&gt;
Sí estoy totalmente de acuerdo en que todas las ciencias, ingenierías y estudios en torno a la informática son jóvenes, inexpertas, llenas de intuiciones e implusos cuan adolescentes desbocadas. Como la psicología en el siglo XIX. Aún tienen un halo incluso religioso. Hay que esperar a que maduren, y quién sabe, quizá de aquí a un tiempo algún Newton de la informática ponga orden en el caos intuitivo que ahora es todo, o un Einstein de la programación descubra la unificación de los modos de programar. O quizá, al ritmo que van las cosas, en 100 años no exista la informática y los ingenios sean tan avanzados que los programadores como la conocemos sean una anécdota del pasado como los copistas medievales. Quizá esos ingenios utilicen a la humanidad como baterías alcalinas. 
    </content:encoded>

    <pubDate>Tue, 06 Oct 2009 21:20:50 +0200</pubDate>
    <guid isPermaLink="false">http://blogs.nologin.es/slopez/archives/19-guid.html#c28</guid>
    
</item>

</channel>
</rss>
