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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 30, 2015 at 10:02 PM, Nico Kadel-Garcia <nkadel@xxxxxxxxx> wrote:
On Mon, Mar 30, 2015 at 3:58 PM, Dave Johansen <davejohansen@xxxxxxxxx> 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
> simple test:

Writing to disk is not "free". There is overhead in writing the data,
especially if the files are being re-arranged and the directory
structure revised, and there's overhead in doing it safely to avoid
accidental loss of data.

There are options to improve such performance, such as using the
'noatime' option, or using well optimized filesystems. But there are
certainly limits.

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 the disk at all. The lwn.net articles that drago01 linked to helped shed some light on what's going on, but it sounds like there is still some potential work that could be done to help improve the situation.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux