From nobody@FreeBSD.org  Thu Jun 17 00:36:00 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AD8C9106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2010 00:36:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9C6A68FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2010 00:36:00 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5H0a0aJ033323
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2010 00:36:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5H0a0bE033319;
	Thu, 17 Jun 2010 00:36:00 GMT
	(envelope-from nobody)
Message-Id: <201006170036.o5H0a0bE033319@www.freebsd.org>
Date: Thu, 17 Jun 2010 00:36:00 GMT
From: Dominic Duklas <dodo1122@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: system freezes due to heavy io to the disks 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147926
>Category:       kern
>Synopsis:       [hang] system freezes due to heavy io to the disks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 17 00:40:00 UTC 2010
>Closed-Date:    
>Last-Modified:  Sat Jun 19 20:02:42 UTC 2010
>Originator:     Dominic Duklas
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD lain 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r209225: Wed Jun 16 01:47:01 BST 2010 root@lain:/usr/obj/usr/src/sys/LAIN amd64

>Description:
I'm currently running freebsd on my desktop (core i7 920, 6gb of ram). Since around January I'm having problems with the system freezing for short periods of time and eventually locking up due to heavy reads/writes to the disk. 
The cursor would freeze for a split second and songs in my music player (quodlibet) would skip completely (the error logs say that the music player was unable to access the song which was currently playing, even though my music collection is on a completely different hard drive than the os). 
After 10-20 minutes of the occasional freezes (the frequency is random, sometimes it can go without any freeze for some minutes or it can freeze many times in a short period of time) the system locks up completely and reboots itself. There is no crash dump produced by the kernel, nor anything shows in dmesg when the short freezes occur. 
I tried putting freebsd on a different hard drive, changing filesystems from zfs which I currently use to ufs but the issue doesn't go away. 
Today I tried using the geom rr sched which was recently committed to current to see whether it would make a difference, but it didn't help.
This issue is not related to swapping as ram usage never gets high enough, and is also not directly caused by heavy cpu usage, although it might be part of the problem.
I've done several clean installs of freebsd current since the issue first appeared.
>How-To-Repeat:
make -j8 buildworld would trigger it in my case, or 2 simultaneous while loops with extracting a large file archive or compiling something big like openoffice/gcc/boost from ports.
>Fix:


>Release-Note:
>Audit-Trail:

From: Andriy Gapon <avg@icyb.net.ua>
To: Dominic Duklas <dodo1122@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: amd64/147926: system freezes due to heavy io to the disks
Date: Sat, 19 Jun 2010 10:55:22 +0300

 You haven't let us know some important details.
 What disk controller do you have?
 What driver do you use for it (if there are multiple choices)?
 
 P.S. Why did you file this bug under amd64 category?  Have you tested how i386
 version of FreeBSD works on the same machine and came to conclusion that it's
 only amd64 version that is affected?
 
 -- 
 Andriy Gapon

From: dodo1122 <dodo1122@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: amd64/147926: system freezes due to heavy io to the disks
Date: Sat, 19 Jun 2010 19:27:58 +0100

 --0015174c16be1d81ad0489663bf5
 Content-Type: text/plain; charset=UTF-8
 
 > You haven't let us know some important details.
 > What disk controller do you have?
 > What driver do you use for it (if there are multiple choices)?
 
 Yeah sorry, completely forgot about this. My motherboard has the Intel
 X58/ICH10R chipset. Currently I'm using the ahci driver, but the problems
 started while I was using the normal ata driver (which caused me to switch
 the driver in the first place). Changing from ahci to ide emulation in bios
 does not help either.
 
 >
 > P.S. Why did you file this bug under amd64 category? Have you tested how
 i386
 > version of FreeBSD works on the same machine and came to conclusion that
 it's
 > only amd64 version that is affected?
 
 Sorry about this, I guess I should've filed it under misc category as I
 didn't test on i386 at all. It was pretty late at night over here when I
 filed this pr...
 
 --0015174c16be1d81ad0489663bf5--
Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 19 20:01:58 UTC 2010 
Responsible-Changed-Why:  
possibly not amd64-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147926 
>Unformatted:
