<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read or write process explained in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674499#M610976</link>
    <description>could it be like this?&lt;BR /&gt;&lt;BR /&gt;Process read system call read()&lt;BR /&gt;the process does a voluntary Context Switch and sleeps until the io returns&lt;BR /&gt;Looks in all the levels of CPU cache&lt;BR /&gt;Looks in TLB for the pages&lt;BR /&gt;Looks in memory for the pages&lt;BR /&gt;If not in memory a Page fault happens&lt;BR /&gt;Looks in the data buffer cache&lt;BR /&gt;if not in buffer cache it goes to the FS&lt;BR /&gt;FS(jfs) checks the inode info on the file to read&lt;BR /&gt;goes through lvm&lt;BR /&gt;multipathing software if exists&lt;BR /&gt;fiber channel cards(if san)&lt;BR /&gt;and finally to the disk&lt;BR /&gt;all the way up the stack again&lt;BR /&gt;the read data goes into the buffer cache&lt;BR /&gt;and form here :?</description>
    <pubDate>Fri, 13 Aug 2010 13:02:04 GMT</pubDate>
    <dc:creator>cartman_2</dc:creator>
    <dc:date>2010-08-13T13:02:04Z</dc:date>
    <item>
      <title>Read or write process explained</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674498#M610975</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I was trying to understand, the whole process for a read or write system call, since it is called by the process until it receives it back from disk.&lt;BR /&gt;&lt;BR /&gt;Could you point me to a good doc, or kindly explain it here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just to list what more or less I understand, it could be completely wrong&lt;BR /&gt;&lt;BR /&gt;Process read system call read()&lt;BR /&gt;the process does a voluntary Context Switch and sleeps until the io returns&lt;BR /&gt;Looks in all the levels of CPU cache&lt;BR /&gt;Looks in the data buffer cache&lt;BR /&gt;if not in buffer cache it goes to the FS&lt;BR /&gt;FS(jfs) checks the inode info on the file to read&lt;BR /&gt;goes through lvm&lt;BR /&gt;multipathing software if exists&lt;BR /&gt;fiber channel cards(if san)&lt;BR /&gt;and finally to the disk&lt;BR /&gt;all the way up the stack again&lt;BR /&gt;the read data goes into the buffer cache&lt;BR /&gt;and form here :?&lt;BR /&gt;&lt;BR /&gt;thanks!.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2010 10:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674498#M610975</guid>
      <dc:creator>cartman_2</dc:creator>
      <dc:date>2010-08-13T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read or write process explained</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674499#M610976</link>
      <description>could it be like this?&lt;BR /&gt;&lt;BR /&gt;Process read system call read()&lt;BR /&gt;the process does a voluntary Context Switch and sleeps until the io returns&lt;BR /&gt;Looks in all the levels of CPU cache&lt;BR /&gt;Looks in TLB for the pages&lt;BR /&gt;Looks in memory for the pages&lt;BR /&gt;If not in memory a Page fault happens&lt;BR /&gt;Looks in the data buffer cache&lt;BR /&gt;if not in buffer cache it goes to the FS&lt;BR /&gt;FS(jfs) checks the inode info on the file to read&lt;BR /&gt;goes through lvm&lt;BR /&gt;multipathing software if exists&lt;BR /&gt;fiber channel cards(if san)&lt;BR /&gt;and finally to the disk&lt;BR /&gt;all the way up the stack again&lt;BR /&gt;the read data goes into the buffer cache&lt;BR /&gt;and form here :?</description>
      <pubDate>Fri, 13 Aug 2010 13:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674499#M610976</guid>
      <dc:creator>cartman_2</dc:creator>
      <dc:date>2010-08-13T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read or write process explained</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674500#M610977</link>
      <description>&amp;gt;Looks in all the levels of CPU cache&lt;BR /&gt;&lt;BR /&gt;Only the CPU looks in its cache and it only would be a side effect of looking in the file cache.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Looks in TLB for the pages&lt;BR /&gt;&amp;gt;Looks in memory for the pages&lt;BR /&gt;&amp;gt;If not in memory a Page fault happens&lt;BR /&gt;&lt;BR /&gt;Again a side effect of looking in the file cache.&lt;BR /&gt;&lt;BR /&gt;Basically these 4 areas are used to load data, not directly for read(2)</description>
      <pubDate>Sat, 14 Aug 2010 14:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674500#M610977</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-14T14:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read or write process explained</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674501#M610978</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thnx for the answer, so if I understand you correctly, when you issue a read or a write system call, you bypass all these steps:&lt;BR /&gt;&lt;BR /&gt;Looks in all the levels of CPU cache&lt;BR /&gt;Looks in TLB for the pages&lt;BR /&gt;Looks in memory for the pages&lt;BR /&gt;If not in memory a Page fault happens&lt;BR /&gt;&lt;BR /&gt;And it goes directly to look in the Buffer Cache.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And when the process needs to load into memory program data, then it does all the steps.&lt;BR /&gt;&lt;BR /&gt;So just to resume, as seems logical, all the data that read and write gets from disk never goes into memory.</description>
      <pubDate>Mon, 16 Aug 2010 05:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674501#M610978</guid>
      <dc:creator>cartman_2</dc:creator>
      <dc:date>2010-08-16T05:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read or write process explained</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674502#M610979</link>
      <description>&amp;gt;you bypass all these steps: ...&lt;BR /&gt;&amp;gt;And it goes directly to look in the Buffer Cache.&lt;BR /&gt;&amp;gt;And when the process needs to load into memory program data, then it does all the steps.&lt;BR /&gt;&lt;BR /&gt;Yes.  But once it looks in the buffer/file cache, it then does those steps.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;all the data that read and write gets from disk never goes into memory.&lt;BR /&gt;&lt;BR /&gt;Sure it goes into memory.  It has to go somewhere and that's into memory.  Whether into the buffer/file cache or directly into the user's buffer.</description>
      <pubDate>Mon, 16 Aug 2010 11:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/read-or-write-process-explained/m-p/4674502#M610979</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-16T11:31:49Z</dc:date>
    </item>
  </channel>
</rss>

