From owner-freebsd-current@FreeBSD.ORG Wed May 14 05:29:27 2008 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 95DDB106564A for ; Wed, 14 May 2008 05:29:27 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0DEB38FC12 for ; Wed, 14 May 2008 05:29:26 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl130-10.kln.forthnet.gr [77.49.249.10]) (authenticated bits=128) by igloo.linux.gr (8.14.2/8.14.2/Debian-4) with ESMTP id m4E5G9DR031751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 May 2008 08:16:16 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m4E5G9SJ003131; Wed, 14 May 2008 08:16:09 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m4E5G8mP003130; Wed, 14 May 2008 08:16:08 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: "Alan Cox" References: <87ve1iqbn7.fsf@kobe.laptop> Date: Wed, 14 May 2008 08:16:07 +0300 In-Reply-To: (Alan Cox's message of "Wed, 14 May 2008 00:00:44 -0500") Message-ID: <87zlqta2js.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m4E5G9DR031751 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.338, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.06, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: current@freebsd.org Subject: Re: repeated panics in vm_reserv_alloc_page() 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, 14 May 2008 05:29:27 -0000 Hi Alan, Thanks for the patch :) I'll rebuild right now, but it may be tricky reproducing the panic. Is it ok if I let it run for a couple of days or a bit more? I can't reliably reproduce the panic all the time, but it seems to happen faster when I stress the system a bit. On Wed, 14 May 2008 00:00:44 -0500, "Alan Cox" wrote: > Please let me know if the attached patch eliminates your panics. > > Regards, > Alan > > Index: vm/vm_page.c > =================================================================== > RCS file: /home/ncvs/src/sys/vm/vm_page.c,v > retrieving revision 1.369 > diff -p -u -r1.369 vm_page.c > --- vm/vm_page.c 6 Apr 2008 18:09:28 -0000 1.369 > +++ vm/vm_page.c 14 May 2008 04:40:59 -0000 > @@ -1063,7 +1063,7 @@ vm_page_alloc(vm_object_t object, vm_pin > mtx_unlock(&vm_page_queue_free_mtx); > return (NULL); > #if VM_NRESERVLEVEL > 0 > - } else if (object == NULL || > + } else if (object == NULL || object->type == OBJT_DEVICE || > (object->flags & OBJ_COLORED) == 0 || > (m = vm_reserv_alloc_page(object, pindex)) == NULL) { > #else