<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 31, 2015 at 10:44 AM, Richard W.M. Jones <span dir="ltr">&lt;<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Mar 31, 2015 at 08:32:16AM -0700, Dave Johansen wrote:<br>
&gt; I am not familiar with the low level details of disk I/O but I&#39;m sure that<br>
&gt; they are far more complicated than my basic assumptions, but my concern is<br>
&gt; how can a disk-bound process steal cycles from a CPU-bound one that is not<br>
&gt; access the disk at all. The <a href="http://lwn.net" target="_blank">lwn.net</a> articles that drago01 linked to helped<br>
&gt; shed some light on what&#39;s going on, but it sounds like there is still some<br>
&gt; potential work that could be done to help improve the situation.<br>
<br>
</span>When you run the cpu load test program, where do you write the<br>
statistics to?<br></blockquote><div><br></div><div>I had been redirecting it directly to disk.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

For a fair test you probably want to change the program so it stores<br>
them in preallocated memory and prints them at the end of the test.<br></blockquote></div><br></div><div class="gmail_extra">You&#39;re right that is a problem because my &quot;purely CPU bound task&quot; was actually writing to disk every 10 seconds, so I&#39;ve attached an updated version that pre-allocates a vector and stores the results there so they can be dumped when the users presses Ctrl-C. With this update, the &quot;CPU bound task&quot; should only using CPU and existing memory but I still see the same slow down in the &quot;CPU bound task&quot; when the disk I/O is happening.<br></div></div>