Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Reindl Harald
Am 01.04.2015 um 06:53 schrieb Dave Johansen: I added the call to mlockall() (it did have to be run as root) on a F21 machine with no swap and the slow down was still visible in the CPU bound task surely, as expected

Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Stephen John Smoogen
On 31 March 2015 at 22:53, Dave Johansen davejohan...@gmail.com wrote: On Tue, Mar 31, 2015 at 3:26 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Tue, Mar 31, 2015 at 12:21:55PM -0700, Dave Johansen wrote: You're right that is a problem because my purely CPU bound task was actually

Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Dave Johansen
On Wed, Apr 1, 2015 at 1:32 AM, Reindl Harald h.rei...@thelounge.net wrote: Am 01.04.2015 um 06:53 schrieb Dave Johansen: I added the call to mlockall() (it did have to be run as root) on a F21 machine with no swap and the slow down was still visible in the CPU bound task surely, as

Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Reindl Harald
Am 01.04.2015 um 19:36 schrieb Dave Johansen: On Wed, Apr 1, 2015 at 1:32 AM, Reindl Harald wrote: Am 01.04.2015 um 06:53 schrieb Dave Johansen: I added the call to mlockall() (it did have to be run as root) on a F21 machine with no swap and the slow down was

Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Dave Johansen
On Wed, Apr 1, 2015 at 10:39 AM, Reindl Harald h.rei...@thelounge.net wrote: Am 01.04.2015 um 19:36 schrieb Dave Johansen: On Wed, Apr 1, 2015 at 1:32 AM, Reindl Harald wrote: Am 01.04.2015 um 06:53 schrieb Dave Johansen: I added the call to mlockall() (it did have to be run

Re: Why does disk I/O slow down a CPU bound task?

2015-04-01 Thread Dave Johansen
On Wed, Apr 1, 2015 at 8:18 AM, Stephen John Smoogen smo...@gmail.com wrote: On 31 March 2015 at 22:53, Dave Johansen davejohan...@gmail.com wrote: On Tue, Mar 31, 2015 at 3:26 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Tue, Mar 31, 2015 at 12:21:55PM -0700, Dave Johansen wrote:

Re: Why does disk I/O slow down a CPU bound task?

2015-03-31 Thread Dave Johansen
On Tue, Mar 31, 2015 at 3:26 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Tue, Mar 31, 2015 at 12:21:55PM -0700, Dave Johansen wrote: You're right that is a problem because my purely CPU bound task was actually writing to disk every 10 seconds, so I've attached an updated version

Re: Why does disk I/O slow down a CPU bound task?

2015-03-31 Thread Dave Johansen
On Mon, Mar 30, 2015 at 10:02 PM, Nico Kadel-Garcia nka...@gmail.com wrote: On Mon, Mar 30, 2015 at 3:58 PM, Dave Johansen davejohan...@gmail.com wrote: I noticed on RHEL 6 that when a large amount of disk I/O is happening that CPU bound tasks slow down. I have been able to reproduce it in

Re: Why does disk I/O slow down a CPU bound task?

2015-03-31 Thread Dave Johansen
On Tue, Mar 31, 2015 at 10:44 AM, Richard W.M. Jones rjo...@redhat.com wrote: On Tue, Mar 31, 2015 at 08:32:16AM -0700, Dave Johansen wrote: I am not familiar with the low level details of disk I/O but I'm sure that they are far more complicated than my basic assumptions, but my concern is

Re: Why does disk I/O slow down a CPU bound task?

2015-03-31 Thread Richard W.M. Jones
On Tue, Mar 31, 2015 at 08:32:16AM -0700, Dave Johansen wrote: I am not familiar with the low level details of disk I/O but I'm sure that they are far more complicated than my basic assumptions, but my concern is how can a disk-bound process steal cycles from a CPU-bound one that is not access

Re: Why does disk I/O slow down a CPU bound task?

2015-03-31 Thread Richard W.M. Jones
On Tue, Mar 31, 2015 at 12:21:55PM -0700, Dave Johansen wrote: You're right that is a problem because my purely CPU bound task was actually writing to disk every 10 seconds, so I've attached an updated version that pre-allocates a vector and stores the results there so they can be dumped when

Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread Dave Johansen
I noticed on RHEL 6 that when a large amount of disk I/O is happening that CPU bound tasks slow down. I have been able to reproduce it in Fedora 21 as well and here are the instructions of how I can reproduce it with a simple test: 1) Build the disk_test.cc (the CPU bound task) and run it. 2)

Re: Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread M. Edward (Ed) Borasky
On Mon, Mar 30, 2015 at 12:58 PM, Dave Johansen davejohan...@gmail.com wrote: I noticed on RHEL 6 that when a large amount of disk I/O is happening that CPU bound tasks slow down. I have been able to reproduce it in Fedora 21 as well and here are the instructions of how I can reproduce it with

Re: Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread drago01
On Mon, Mar 30, 2015 at 9:58 PM, Dave Johansen davejohan...@gmail.com wrote: I noticed on RHEL 6 that when a large amount of disk I/O is happening that CPU bound tasks slow down. I have been able to reproduce it in Fedora 21 as well and here are the instructions of how I can reproduce it with a

Re: Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread M. Edward (Ed) Borasky
On Mon, Mar 30, 2015 at 2:43 PM, drago01 drag...@gmail.com wrote: https://lwn.net/Articles/572911/ https://lwn.net/Articles/467328/ Yeah, I vaguely remember that discussion. I went down this rabbit hole in mid-2008, wrote a couple of papers and moved on with my life. There's no software

Re: Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread Dave Johansen
On Mon, Mar 30, 2015 at 3:15 PM, M. Edward (Ed) Borasky zn...@znmeb.net wrote: On Mon, Mar 30, 2015 at 2:43 PM, drago01 drag...@gmail.com wrote: https://lwn.net/Articles/572911/ https://lwn.net/Articles/467328/ Thanks for the info. That's very helpful, but it looks like that discussion

Re: Why does disk I/O slow down a CPU bound task?

2015-03-30 Thread Nico Kadel-Garcia
On Mon, Mar 30, 2015 at 3:58 PM, Dave Johansen davejohan...@gmail.com wrote: I noticed on RHEL 6 that when a large amount of disk I/O is happening that CPU bound tasks slow down. I have been able to reproduce it in Fedora 21 as well and here are the instructions of how I can reproduce it with a