From owner-freebsd-current@FreeBSD.ORG Thu Jun 16 12:44:06 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA26B16A41C; Thu, 16 Jun 2005 12:44:06 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from efnet-math.org (efnet-math.org [69.60.109.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4769D43D4C; Thu, 16 Jun 2005 12:44:06 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.1.12] ([63.170.138.118]) (authenticated bits=0) by efnet-math.org (8.13.1/8.13.1) with ESMTP id j5GChj3e017426 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Thu, 16 Jun 2005 08:43:48 -0400 In-Reply-To: <1118912651.860.17.camel@spirit> References: <1118912651.860.17.camel@spirit> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4A0C62C6-758B-4D54-9583-4B404EDD9643@FreeBSD.org> Content-Transfer-Encoding: 7bit From: Suleiman Souhlal Date: Thu, 16 Jun 2005 08:43:28 -0400 To: delphij@delphij.net X-Mailer: Apple Mail (2.730) Cc: jeff@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: Recent VFS locking vs kqueue 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, 16 Jun 2005 12:44:06 -0000 Hi On Jun 16, 2005, at 5:04 AM, Xin LI wrote: > Hi, Jeff and -current@, > > With a fresh -CURRENT kernel (today's source) I got the following > messages from console and /var/log/messages on my laptop, with a > "cvs -R > up -PdA 2>/dev/null" running on one console (which results in disk/fs > activities) and "tail -F /var/log/messages" (which uses kqueue > events). > > The kernel is built with ULE scheduler, PREEMPTION+FULL_PREEMPTION > enabled, and all debugging options, like INVARIANTS and WITESS turned > on. > > BTW. I have found something that can lead to panic: Negative nice > count, which indicates that there are some races in our code, but it > seems that the bug is not easy to exercise. Will report more > information/patches once I got some findings. > > Thanks in advance! > > Jun 16 16:44:09 spirit kernel: Acquiring lockmgr lock "ufs" with the > following non-sleepable locks held: > Jun 16 16:44:09 spirit kernel: exclusive sleep mutex kqueue r = 0 > (0xc1b60a00) locked @ /usr/src/sys/kern/kern_event.c:1524 > Jun 16 16:44:09 spirit kernel: exclusive sleep mutex vnode pollinfo > r = > 0 (0xc2074000) locked @ /usr/src/sys/kern/kern_event.c:1512 This has been reported before by Jun Kuriyama.. Unfortunately, I'm a little busy this week, so I've not had time to fix it yet, but hopefully, I'll have something this weekend. In the meantime, you can patch -R this: http://people.freebsd.org/ ~ssouhlal/testing/kqueue-hooks-20050603.diff . Bye. -- Suleiman Souhlal | ssouhlal@vt.edu The FreeBSD Project | ssouhlal@FreeBSD.org