From owner-freebsd-current@FreeBSD.ORG Thu Apr 28 05:43:11 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 365E7106564A; Thu, 28 Apr 2011 05:43:11 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 85EF78FC14; Thu, 28 Apr 2011 05:43:10 +0000 (UTC) Received: by bwz12 with SMTP id 12so2878985bwz.13 for ; Wed, 27 Apr 2011 22:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=DOLpMmySv03ZmPT5+9hX2RUsPqKKrvQecikaRA0Ofd8=; b=kLnPzHmyfTsumhncjLNBg3fBaFIhm0LZ9R0QSpFwjLqw11Owu7s0HtixHZFIZVZd1u o7/8dLrhPTspQ6C5UUpl7/CZkmfhw3tNLbg3ZfRC8KZvM5c+25oUqqgdpngRJBq0rPD9 HCTq3PVLmnIDZZGXfWmfH1dE4OJ5hCZr2ZAm0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=nCozVNlY838T3fhRXsT6V4Ud63SWuvMB+G6iI1ZSwhVcYkhUvFbcKGQykDzcfyFDoB +BJNsRGYFYvjpioJK9gGOYj/MuwKFaDzU1g1JnlOuzdispkQ/9kg+MJvGsfFpEpgHYYX 4Bs93YTMjhmKDlikOlTsJvPPFJ+ESiijdXlWg= Received: by 10.204.7.8 with SMTP id b8mr648940bkb.31.1303967807495; Wed, 27 Apr 2011 22:16:47 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 16sm786295bkm.6.2011.04.27.22.16.45 (version=SSLv3 cipher=OTHER); Wed, 27 Apr 2011 22:16:46 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DB8F833.7090604@FreeBSD.org> Date: Thu, 28 Apr 2011 08:16:35 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Doug Barton References: <4DB620CB.50302@FreeBSD.org> <20110426103741.GA25031@freebsd.org> <4DB8AA4B.1070502@FreeBSD.org> In-Reply-To: <4DB8AA4B.1070502@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , current@FreeBSD.org, Steve Wills Subject: Re: responsiveness during IO tasks 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: Thu, 28 Apr 2011 05:43:11 -0000 Doug Barton wrote: > On 04/26/2011 03:37, Alexander Best wrote: >> On Mon Apr 25 11, Steve Wills wrote: >> I've noticed lately that when doing heavy IO, my 9-CURRENT system (Fri >> Apr 15 23:33:46 EDT 2011) is quite unresponsive. I have two ZFS mirrors >> setup and run KDE4. The system has 12GB of RAM. >> >> When I, for example, copy an ISO image from one mirror to the other, the >> whole desktop becomes really slow during the copy. It takes a good 15 >> seconds to open a new tab in Konsole, switching windows takes a while, >> etc. Once the copy is finished, things are fine. It wasn't like this >> back before I upgraded from 8.2-RC1 to 9-CURRENT. Has anyone else >> noticed something similar, or is it just me? Is there any other info I >> can provide or something I should look for? >> >>> i've noticed this too. for me the situation is sometimes even worse. >>> during >>> heavy i/o the mouse cursor won't even respond. >> >>> i think this is a scheduler isse. maybe running a non-preemptive >>> kernel or >>> switching to the old 4bsd scheduler fixes it? > > Try backing up your src tree to r212540, clean /usr/obj, > buildworld/kernel and see if that helps. I just tracked down a big part > of my current problem (pun intended) to r212541, the one-shot timer > commit. I'm working on a larger post to describe my problems, but short > version is, up through r212540 I can load the system down as heavily as > I want, and while there may be some unresponsiveness it's at least > stable. If I update to one-shot timers the system wedges as soon as I > put load on it. No panic, not even a reboot, it just wedges solid > requiring it to be powered off. > > You should also test SCHED_4BSD to see if that improves your situation. > There have been a lot of reports about problems with SCHED_ULE with > heavy disk i/o. Moving to 4bsd helps me in terms of interactivity, but I > needed to find the crashing problem first. > > Doug (sorry mav) No problem, just let's hunt things down. I'll wait for that larger post. In meantime, if it is related to eventtimers, it would be good to collect more detailed information. You could try to make timer run during idle (kern.eventtimer.idletick). You could try to switch timer from one-shot to periodic mode (kern.eventtimer.periodic). You could also try to switch to another timer (kern.eventtimer.timer). -- Alexander Motin