From owner-freebsd-stable@FreeBSD.ORG Wed Dec 11 09:50:17 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 01A45F22 for ; Wed, 11 Dec 2013 09:50:17 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8206A1204 for ; Wed, 11 Dec 2013 09:50:16 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id w62so6289574wes.17 for ; Wed, 11 Dec 2013 01:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PA2ZcehVnK9eyv35FEzZWm///CQNjycCWLiUXAfjdaw=; b=GCn+mqjpm9dTUkNUIGpIpuhbkluSRT4H/DBdOGlAv7mI37OuUKpzQBd/Gc2Yn7ey+B yVnKfodhSO2/+Q9f/0MIPbNzwWSkpxe0ejppvkezIHIcnqMblxtrjNbom/Ya6nuEoT5i xYnMPUXSisXDNDaqWU1F+GucJNdK5kOTFRCI5HcZ/QpJwuT5EOM0j0ePmQ/ZwGmlNt4R TsO68hleWD1SgC/LTkIEwkjRaNI4B4kuM2MPalyEgCCo95Yd7AHJh/I1S6SPUa1UCgDg TfuLLoLO5UUxBG0ZnA4x4QtV615pG7J+l9236MrF3hmdKLDOtTkm/Qj3nMHeaZ8WPiOb 8KJA== MIME-Version: 1.0 X-Received: by 10.194.58.136 with SMTP id r8mr622795wjq.4.1386755414856; Wed, 11 Dec 2013 01:50:14 -0800 (PST) Received: by 10.217.89.138 with HTTP; Wed, 11 Dec 2013 01:50:14 -0800 (PST) In-Reply-To: References: <20131206201329.GK59496@kib.kiev.ua> <20131207183044.GA19655@x2.osted.lan> <20131209170710.GU59496@kib.kiev.ua> Date: Wed, 11 Dec 2013 11:50:14 +0200 Message-ID: Subject: Re: stable/10 r258317 - UFS lock problem From: =?ISO-8859-1?Q?=D6zkan_KIRIK?= To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Peter Holm , freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 09:50:17 -0000 I tried disabling softupdates, I doesnt lock, but write performance was very very pooor. On Wed, Dec 11, 2013 at 11:49 AM, =D6zkan KIRIK wro= te: > Sorry for late response, > > All screen shots from ddb are at > http://89.252.153.9/okirik/freebsd_ufs_bug_report.zip > Archive contains, ps, show pcpu, show allpcpu, show lockedvnods, show > locks, show alllocks, trace, where, alltrace outputs. > > Thanks for your interests, > With best regards. > Ozkan KIRIK > > > On Mon, Dec 9, 2013 at 7:07 PM, Konstantin Belousov = wrote: > >> On Mon, Dec 09, 2013 at 01:55:27PM +0200, ?zkan KIRIK wrote: >> > Hi, >> > >> > I compiled GENERIC kernel with; >> > >> > makeoptions DEBUG=3D-g >> > options DDB >> > options INVARIANTS >> > options INVARIANT_SUPPORT >> > options WITNESS >> > options WITNESS_SKIPSPIN >> > options DEBUG_LOCKS >> > options DEBUG_VFS_LOCKS >> > options DIAGNOSTIC >> > >> > >> > When I run portsnap fetch extract, I catched these situations on >> console: >> > >> > lock order reversal: >> > 1st Oxfffffe0080531888 bufwait (bufwait) ? ,usr/src/sys/kern/vfs >> > bio.c:3050 >> > 2nd Oxfffff8000d48a400 dirhash (dirhash) >> > /usr/src/sys/ufs/ufs/ufs_dirhash.c:284 >> > KDB: stack backtrace: >> > kdb_trace_self_wrapper() at db_trace_self_wrapper.0x2b/frame >> > Oxfffffe009aaa3700 >> > db_backtrace() at kdb backtrace.0x39/frame Oxfffffe009aaa37b0 >> > witness_checkorder() at witness_checkorder.Oxd23/frame >> Oxfffffe009aaa3840 >> > _sx_xlock() at _sx xlock.0x75/frame Oxfffffe009aaa3880 >> > ufsdirhash_remove() at ufsdirhash remove.0x47/frame Oxfffffe009aaa38b0 >> > ufs_dirremove() at ufs_dirremove.0x11b/frame Oxfffffe009aaa3900 >> > ufs_rmdir() at ufs_rmdir.Oxe3/frame Oxfffffe009aaa3940 >> > VOP_RMDIR_APV() at VOP RHDIR APV.0x12d/frame Oxfffffe009aaa3970 >> > kern_rmdirat() at kern rmdirat.0x1b8/frame Oxfffffe009aaa3ae0 >> > amd64_syscall() at amd64_syscal1.0x282/frame Oxfffffe009aaa3bf0 >> > Xfast_syscall() at Xfast_syscall.Oxfb/frame Oxfffffe009aaa3bf0 >> > --- syscall (137. FreeBSD ELF64. sys_rmdir). rip =3D Ox80088alfa. rsp = =3D >> > Ox7fffffffd998, rbp =3D Ox7fffffffda60 --- >> > >> > >> > "ps" output over ssh is below: >> > >> > # ps ax | grep D+ >> > 29730 0 D+ 0:00.00 tar -xz --numeric-owner -f >> > >> /var/db/portsnap/files/cafbda170898ff0143598e1363c08fc3ac82ba2f4d43334fc= 53b251dbcd28063.gz >> > -C /usr/ports/games/highmoon/ (bsdtar) >> > >> > >> > >> > >> > >> > On Sun, Dec 8, 2013 at 9:38 PM, ?zkan KIRIK >> wrote: >> > >> > > Hi, >> > > >> > > You're right Peter. Now i am compiling with DDB option. >> > > But >> > > >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ker= neldebug-deadlocks.htmlpage, >> You did not read this page. >> >> Without information listed, I cannot even guess what the problem is. >> > >