<?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>Portability Blog (Entries tagged as linux)</title>
    <link>http://portabilityblog.com/blog/</link>
    <description>tales about building software on many platforms</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2.1 - http://www.s9y.org/</generator>
    <managingEditor>df.portabilityblog@erinye.com</managingEditor>
<webMaster>df.portabilityblog@erinye.com</webMaster>
<pubDate>Fri, 28 Dec 2007 10:03:47 GMT</pubDate>

    <image>
        <url>http://portabilityblog.com/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Portability Blog - tales about building software on many platforms</title>
        <link>http://portabilityblog.com/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>O_DIRECT</title>
    <link>http://portabilityblog.com/blog/archives/8-O_DIRECT.html</link>
            <category>Operating Systems</category>
    
    <comments>http://portabilityblog.com/blog/archives/8-O_DIRECT.html#comments</comments>
    <wfw:comment>http://portabilityblog.com/blog/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://portabilityblog.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Fischer)</author>
    <content:encoded>
    On UNIXoid operating systems, you can open(2) a file in many modes. On some operating systems, one of them is O_DIRECT, which stands for direct i/o without any caching. To sum it all up:&lt;br /&gt;
&lt;blockquote&gt;The whole notion of &quot;direct IO&quot; is totally braindamaged. Just say no. --&lt;a href=&quot;http://lkml.org/lkml/2007/1/10/233&quot;&gt;Linus Torvalds&lt;/a&gt;&lt;/blockquote&gt;&lt;br /&gt;
Accessing files that were opened with O_DIRECT requires aligned buffers for reading and writing. For example, on Linux 2.6, all buffers must be aligned to 512 bytes and reads and writes can only happen in multiples of 512 bytes. It&#039;s fairly easy to align your data to 512 bytes, though.&lt;br /&gt;
&lt;br /&gt;
On Linux 2.4, on the other hand, buffers have to be aligned to multiples of the underlying file system&#039;s logical block size - which is generally much larger than 512 bytes. Size also has to be a multiple of the block size. It&#039;s not so easy to solve this generally. It&#039;s also often forgotten because nobody wants to use Linux 2.4 anymore, at least not for development work.&lt;br /&gt;
&lt;br /&gt;
We ran into this problem at least three times in three different places in 2007. You can tell that I work for a database company.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 28 Dec 2007 11:03:47 +0100</pubDate>
    <guid isPermaLink="false">http://portabilityblog.com/blog/archives/8-guid.html</guid>
    <category>linux</category>

</item>

</channel>
</rss>