From owner-freebsd-current@FreeBSD.ORG Wed Dec 23 18:31:49 2009 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 20004106566B; Wed, 23 Dec 2009 18:31:49 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id B7DD18FC14; Wed, 23 Dec 2009 18:31:48 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1594935qwb.7 for ; Wed, 23 Dec 2009 10:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XTLHJdIJpXErtYzSRKObWBS7xLtyy4L6EAVBN0ncNbk=; b=kHwdzzJOrSa3GtYHlL9nUZ1PrIJEpYV4GVlC3Ls13hTS0FyaJyqXAk6X4FcFrv2GaY Lt/gcFvqk6tTTlfe9xq/57ZoFJIkonPWAwZFIjsDutpYSyJLyO7ycs4ZA/YQavRntnXb 9iHz91wU6Tbrx9QnltEVaSsW1tbtrqf3nGFP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XwOoUhOg7g4Q9iJinCLq8fQRrAlsvu3yaScFtPbjC5sDbAa09OPl2VdrcTuIEHEHe5 0xFdLl8U5a2P4hEME6OLRqfNUCmuNrWskXHrHKZvVw6FrWgQsR11aL1Hia+ajFeTu3pf jFMgMkn+kIs5bxZL1lTxY9ahtLgGd+X8p9254= MIME-Version: 1.0 Received: by 10.224.71.14 with SMTP id f14mr5423139qaj.154.1261591338815; Wed, 23 Dec 2009 10:02:18 -0800 (PST) In-Reply-To: <3bbf2fe10912181004w2a1abff2re8f77fd6a8bc3233@mail.gmail.com> References: <39309F560B98453EBB9AEA0F29D9D80E@vosz.local> <3bbf2fe10912181004w2a1abff2re8f77fd6a8bc3233@mail.gmail.com> Date: Wed, 23 Dec 2009 10:02:18 -0800 Message-ID: <440b3e930912231002i46221520jc4c57e6c2dd697e8@mail.gmail.com> From: Ali Mashtizadeh To: Attilio Rao Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Alexander Zagrebin Subject: Re: 8.0-RELEASE: disk IO temporarily hangs up (ZFS or ATA related problem) 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, 23 Dec 2009 18:31:49 -0000 Hi Attilio, I tried your patch since I had a similar problem but in my case I usually seem to lockup 'zpool' or 'zfs' command line tools immediately. The txg_sync_thread [1] never makes the cv_broadcast for CV tx->tx_sync_done_cv. So the user utility is sitting in txg_wait_synced function at the cv_wait. It his related to the bug your patch is supposed to fix? [1] http://svn.freebsd.org/viewvc/base/head/sys/cddl/contrib/opensolaris/ut= s/common/fs/zfs/txg.c?view=3Dannotate Just to note I sync'ed my tree from BSD 8.0 to the top of STABLE_8 so far I've have had zero luck in getting ZFS working on any hard drive and even on md devices. Thanks, ~ Ali On Fri, Dec 18, 2009 at 10:04 AM, Attilio Rao wrote: > 2009/12/17 Alexander Zagrebin : >> Hi! >> >> I use onboard ICH7 SATA controller with two disks attached: >> >> atapci1: port >> 0x30c8-0x30cf,0x30ec-0x30ef,0x30c0-0x30c7,0x30e8-0x30eb,0x30a0-0x30af ir= q 19 >> at device 31.2 on pci0 >> atapci1: [ITHREAD] >> ata2: on atapci1 >> ata2: [ITHREAD] >> ata3: on atapci1 >> ata3: [ITHREAD] >> ad4: 1430799MB at ata2-master SATA150 >> ad6: 1430799MB at ata3-master SATA150 >> >> The disks are used for mirrored ZFS pool. >> I have noticed that the system periodically locks up on disk operations. >> After approx. 10 min of very slow disk i/o (several KB/s) the speed of d= isk >> operations restores to normal. >> gstat has shown that the problem is in ad6. > > Want you try this patch and report?: > http://people.freebsd.org/~attilio/lockmgr_lostwake.diff > > It should apply to STABLE_8 and if not, just report and I will help. > > Thanks, > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 Ali Mashtizadeh =D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87