<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Linux: When massive load on the disk makes the system freeze</title>
	<atom:link href="http://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 26 Mar 2026 13:15:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Dimitrios Charalampidis</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-1146</link>
		<dc:creator>Dimitrios Charalampidis</dc:creator>
		<pubDate>Fri, 04 Dec 2015 09:21:55 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-1146</guid>
		<description>I know this post is ages old and it seems odd, but I&#039;m having the exact same problem with kernel 4.2.5-1-ARCH! Is there anything I can do?</description>
		<content:encoded><![CDATA[<p>I know this post is ages old and it seems odd, but I&#8217;m having the exact same problem with kernel 4.2.5-1-ARCH! Is there anything I can do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oftedal</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-553</link>
		<dc:creator>David Oftedal</dc:creator>
		<pubDate>Mon, 27 Jun 2011 13:05:06 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-553</guid>
		<description>Thank you for that suggestion. I&#039;ve changed the IO scheduler on this system to deadline, and forwarded the suggestion to the bug report on Ubuntu Launchpad, to see if it&#039;ll solve the problem for the other people who&#039;ve reported it.</description>
		<content:encoded><![CDATA[<p>Thank you for that suggestion. I&#8217;ve changed the IO scheduler on this system to deadline, and forwarded the suggestion to the bug report on Ubuntu Launchpad, to see if it&#8217;ll solve the problem for the other people who&#8217;ve reported it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephane Carrez</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-487</link>
		<dc:creator>Stephane Carrez</dc:creator>
		<pubDate>Mon, 07 Mar 2011 22:18:14 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-487</guid>
		<description>I had similar freeze issues last year but I fixed them by using the deadline IO scheduler.  By default Linux uses cfg and this does not give good results for a desktop when you have intentive IOs.

In short, use

echo deadline &gt;  /sys/block/sda/queue/scheduler

For details, check
http://blog.vacs.fr/index.php?post/2010/08/28/Solving-Linux-system-lockup-when-intensive-disk-I/O-are-performed</description>
		<content:encoded><![CDATA[<p>I had similar freeze issues last year but I fixed them by using the deadline IO scheduler.  By default Linux uses cfg and this does not give good results for a desktop when you have intentive IOs.</p>
<p>In short, use</p>
<p>echo deadline &gt;  /sys/block/sda/queue/scheduler</p>
<p>For details, check<br />
<a href="http://blog.vacs.fr/index.php?post/2010/08/28/Solving-Linux-system-lockup-when-intensive-disk-I/O-are-performed" rel="nofollow">http://blog.vacs.fr/index.php?post/2010/08/28/Solving-Linux-system-lockup-when-intensive-disk-I/O-are-performed</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oftedal</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-479</link>
		<dc:creator>David Oftedal</dc:creator>
		<pubDate>Fri, 18 Feb 2011 21:23:36 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-479</guid>
		<description>I agree with Eli! :D

And happily, the problem IS much better in newer kernels. In 2.6.37 it was pretty bad, but in 2.6.38, it&#039;s down to a few seconds of stalling before it clears up. Perhaps in 2.6.39 it&#039;ll be milliseconds...?</description>
		<content:encoded><![CDATA[<p>I agree with Eli! :D</p>
<p>And happily, the problem IS much better in newer kernels. In 2.6.37 it was pretty bad, but in 2.6.38, it&#8217;s down to a few seconds of stalling before it clears up. Perhaps in 2.6.39 it&#8217;ll be milliseconds&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eli</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-477</link>
		<dc:creator>eli</dc:creator>
		<pubDate>Thu, 10 Feb 2011 22:58:45 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-477</guid>
		<description>This is not regular behavior, but a bug. If Linux is considered unfit for mission-critical tasks, then it&#039;s lost.

And it&#039;s solved in recent kernels, so the solution is to upgrade. If you don&#039;t mind the new bugs...</description>
		<content:encoded><![CDATA[<p>This is not regular behavior, but a bug. If Linux is considered unfit for mission-critical tasks, then it&#8217;s lost.</p>
<p>And it&#8217;s solved in recent kernels, so the solution is to upgrade. If you don&#8217;t mind the new bugs&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-476</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 10 Feb 2011 22:52:58 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-476</guid>
		<description>Actually, that&#039;s &quot;regular&quot; behaviour. I think it was always there and is because I/O throttling is a bit complicated due to buffering etc.

It (IMHO) has always been the case under Linux that when the kernel thinks there is an urgent need to write back dirty pages, it won&#039;t let anything else happen until the last dirty page has been synced to disc.

And yes, that&#039;s lame. It&#039;s a reason why linux is not suited for mission-critical stuff. There is no useful disk QoS. The developers all concentrate on the CPU scheduler -- which seems to be a pretty simple task because you just don&#039;t have to implement caching/buffering there because it is done in hardware already.

Maybe your situation could be improved by using a battery backed write cache controller? Another solution could be to limit those processes&#039; max memory usage, who do a lot of I/Os. Recent kernels support that via the cgroupfs. Interestingly, that also limits cache usage and thereby prevents cache draining by processes who read a lot of data that is never read twice.</description>
		<content:encoded><![CDATA[<p>Actually, that&#8217;s &#8220;regular&#8221; behaviour. I think it was always there and is because I/O throttling is a bit complicated due to buffering etc.</p>
<p>It (IMHO) has always been the case under Linux that when the kernel thinks there is an urgent need to write back dirty pages, it won&#8217;t let anything else happen until the last dirty page has been synced to disc.</p>
<p>And yes, that&#8217;s lame. It&#8217;s a reason why linux is not suited for mission-critical stuff. There is no useful disk QoS. The developers all concentrate on the CPU scheduler &#8212; which seems to be a pretty simple task because you just don&#8217;t have to implement caching/buffering there because it is done in hardware already.</p>
<p>Maybe your situation could be improved by using a battery backed write cache controller? Another solution could be to limit those processes&#8217; max memory usage, who do a lot of I/Os. Recent kernels support that via the cgroupfs. Interestingly, that also limits cache usage and thereby prevents cache draining by processes who read a lot of data that is never read twice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oftedal</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-474</link>
		<dc:creator>David Oftedal</dc:creator>
		<pubDate>Tue, 01 Feb 2011 23:44:57 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-474</guid>
		<description>↑ By the way... You have to wonder what part of the disk is being used in that second case (Python filling up memory), when the disk isn&#039;t being used for swap...</description>
		<content:encoded><![CDATA[<p>↑ By the way&#8230; You have to wonder what part of the disk is being used in that second case (Python filling up memory), when the disk isn&#8217;t being used for swap&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Oftedal</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-473</link>
		<dc:creator>David Oftedal</dc:creator>
		<pubDate>Tue, 01 Feb 2011 03:38:24 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-473</guid>
		<description>I&#039;m still having massive problems with this on 2.6.37, and now there&#039;s that kworker thing going on as well.

Copying files - The system grinds to a halt. It&#039;ll stall for hours.

Creating an endless list in Python - The system grinds to a halt again. No root privileges required.

The disk in question is encrypted with LUKS, and I remember there being a previous problem with LUKS-encrypted swap causing the same kind of stalling and the intense flashing of the disk LED. Perhaps using LUKS and/or LVM and/or other virtual block devices can cause some sort of race condition which stalls the system.

At any rate, life&#039;s too short for this kind of stuff. Time to look at PC-BSD!</description>
		<content:encoded><![CDATA[<p>I&#8217;m still having massive problems with this on 2.6.37, and now there&#8217;s that kworker thing going on as well.</p>
<p>Copying files &#8211; The system grinds to a halt. It&#8217;ll stall for hours.</p>
<p>Creating an endless list in Python &#8211; The system grinds to a halt again. No root privileges required.</p>
<p>The disk in question is encrypted with LUKS, and I remember there being a previous problem with LUKS-encrypted swap causing the same kind of stalling and the intense flashing of the disk LED. Perhaps using LUKS and/or LVM and/or other virtual block devices can cause some sort of race condition which stalls the system.</p>
<p>At any rate, life&#8217;s too short for this kind of stuff. Time to look at PC-BSD!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KernelSpace</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-465</link>
		<dc:creator>KernelSpace</dc:creator>
		<pubDate>Fri, 29 Oct 2010 22:09:13 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-465</guid>
		<description>Ah thanks for the clarification, I believe I was experiancing less lag when using the Debian 2.6.36 experimental kernel, but still freezes</description>
		<content:encoded><![CDATA[<p>Ah thanks for the clarification, I believe I was experiancing less lag when using the Debian 2.6.36 experimental kernel, but still freezes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eli</title>
		<link>https://billauer.se/blog/2010/10/disk-io-scheduler-load-dd-freeze-stall-hang/comment-page-1/#comment-464</link>
		<dc:creator>eli</dc:creator>
		<pubDate>Fri, 29 Oct 2010 21:03:07 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=759#comment-464</guid>
		<description>I didn&#039;t read all 1200+ posts of course, but it appears like they are talking about a system crash. I&#039;m talking about a temporary condition, which doesn&#039;t compromise the system&#039;s stability. So no, I wouldn&#039;t put my money on that.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t read all 1200+ posts of course, but it appears like they are talking about a system crash. I&#8217;m talking about a temporary condition, which doesn&#8217;t compromise the system&#8217;s stability. So no, I wouldn&#8217;t put my money on that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
