title: IO performance in windows and linux
body: <p>We want to build a web service to return some images (like google map tiles).</p>
  
  <p>And the source data is organized as the esri <a href="http://blogs.esri.com/esri/arcgis/2010/05/27/introducing-the-compact-cache-storage-format/" rel="nofollow">compact cache format</a>,the key of our service is to read the tiles from the bundles.</p>
  
  <p>I am not sure how to choose the platform,windows or linux?</p>
  
  <p>It is said that the linux have a bettor IO reading/writing performance than that of windows.</p>
  
  <p>However java is our only choose if we choose linux,so I want to know if there is any points we should know to impove the IO reading performnce in linux?</p>
  
  <p>PS:</p>
  
  <p>In winodws platform,we will build the service based on .net4 using c#,and deploy the service use iis.</p>
  
  <p>In linux,we will build the service using java (maybe based on spring mvc or some other mvc framework),and deploy the service using tomcat.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>We may have the following source compact files in different folds:</p>
  
  <pre><code>L1
      RxxCxx.bundle
      RxxCxx.bundlx
  L2
      RxxCxx.bundle
      RxxCxx.bundlx
  </code></pre>
  
  <p>And the request from the client may looks like this:</p>
  
  <pre><code>http://ourserver/maptile?row=123&amp;col=234&amp;level=1.png
  </code></pre>
  
  <p>For this requst,we will go in to the fold <code>L1</code> since the level is <code>1</code>,then read the <code>RxxCxx.bundlx</code> file first,since this file is the metadata that till tell us the position(the offset and length in <code>RxxCxx.bundle</code>) of the data for render the image(<code>row=123&amp;col=234</code>),then we will read the <code>RxxCxx.bundle</code> according to the offset and length. Then we render the data to an image by write them to the response and set the content type to "image/png" or something else.</p>
  
  <p>This is a whole procceed to handle a request.</p>
  
  <p>Then I wonder if there is any documents or exist demos which can show me how to handle these type of IO reading?</p>