From owner-freebsd-current@FreeBSD.ORG Wed Jul 6 11:38:02 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A512106566B for ; Wed, 6 Jul 2011 11:38:02 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B5CAC8FC0A for ; Wed, 6 Jul 2011 11:38:01 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA28399; Wed, 06 Jul 2011 14:37:57 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1QeQQX-0005nu-47; Wed, 06 Jul 2011 14:37:57 +0300 Message-ID: <4E144913.3060503@FreeBSD.org> Date: Wed, 06 Jul 2011 14:37:55 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.18) Gecko/20110626 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: arrowdodger <6yearold@gmail.com>, "O. Hartmann" References: <4E1421D9.7080808@zedat.fu-berlin.de> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: Heavy I/O blocks FreeBSD box for several seconds X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 11:38:02 -0000 on 06/07/2011 13:37 arrowdodger said the following: > 2011/7/6 O. Hartmann > >> When performing an update on the ports tree via "portsnap fetch update" or >> when checking out (or) large Subversion repositories or when copying large >> data files (~ 50 to 250 GB in size, results from numerical modelings) or >> when compiling world, FreeBD 9.0 and FreeBSD 8.2-STABLE tend to "freeze" for >> several seconds or drop overall performance dramatically for seconds. On >> boxes with only console- or terminal access (no GUI) a running 'vi' gets >> stuck for seconds while one of the processes producing heavy I/O is running, >> or the output of a 'cat' of a large file stops for several seconds. >> >> Using X11, this phenomenon gets even worse and the 'freezing' tends to >> persist sometimes for more than 10 or 15 seconds. >> > > I've also had (and still having) this problem on FreeBSD 7.2-RELEASE and > 8-STABLE with both UFS and ZFS. Though, i've been running FreeBSD not on > powerful servers, but on laptops (2-core CPU's, 2 GB of RAM). But still, > KDE4 on Linux performs much better during high disk IO. Just curious what your current value of sysctl kern.sched.preempt_thresh is. And if it's not 224 and if you haven't tried 224 yet, then could you please try it and see if there is any improvement? This assumes that you use SCHED_ULE (kern.sched.name is "ULE"). -- Andriy Gapon