From owner-freebsd-stable@FreeBSD.ORG Sun May 14 02:20:59 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D74716A403 for ; Sun, 14 May 2006 02:20:59 +0000 (UTC) (envelope-from mikej@rogers.com) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by mx1.FreeBSD.org (Postfix) with SMTP id B523943D46 for ; Sun, 14 May 2006 02:20:58 +0000 (GMT) (envelope-from mikej@rogers.com) Received: (qmail 18844 invoked from network); 14 May 2006 02:20:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ogmuXUcyiYfgSqUnC66pBJTRFMtDEaYUne1W7rUip7srAMEg1hC3YA9i6dRlJ5wwZNwDEI6D1Ex7zXl1DBJxTsthkuxEi0nfC5YFqfFE0qff+D/6ZA8LrogSbjp9clHVswcSsxRXlKVw3gy7sqVZTosCR4dR864KPvKFYJ04X78= ; Received: from unknown (HELO ?70.31.50.218?) (mikej@rogers.com@70.31.50.218 with plain) by smtp100.rog.mail.re2.yahoo.com with SMTP; 14 May 2006 02:20:58 -0000 Message-ID: <44669436.8010705@rogers.com> Date: Sat, 13 May 2006 22:21:42 -0400 From: Mike Jakubik User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Rostislav Krasny References: <20060514051009.13b1b854.rosti.bsd@gmail.com> In-Reply-To: <20060514051009.13b1b854.rosti.bsd@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: DOH! ata_alloc_composite failed! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 02:20:59 -0000 Rostislav Krasny wrote: > Hi, > > >> May 13 03:01:29 ns1 kernel: DOH! ata_alloc_composite failed! >> May 13 03:01:29 ns1 last message repeated 2 times >> > > I'm not a FreeBSD developer but after looking at the source code I can > say that that kernel message goes from src/sys/dev/ata/ata-raid.c > because ata_alloc_composite() returns NULL in one of two or in both > locations in that file. That ata_alloc_composite() is actually a macro, > defined in src/sys/dev/ata/ata-all.h so: > > #define ata_alloc_composite() uma_zalloc(ata_composite_zone, M_NOWAIT | M_ZERO) > > ata_composite_zone is a global variable, that is initialized by ata_init() > in src/sys/dev/ata/ata-all.c with a value returned by uma_zcreate(). > > The uma_zalloc() is a wrapper of uma_zalloc_arg() and the uma_zcreate() is > a wrapper of uma_zalloc_internal(). > > I'm not familiar with UMA and looking on the code deeper just complicate > things. Try to rebuild the kernel with "options WITNESS". That could > help the kernel to produce more informative error/warning messages > about your problem. > > You can also uncomment following #define's in src/sys/vm/uma_core.c > > /* I should really use ktr.. */ > /* > #define UMA_DEBUG 1 > #define UMA_DEBUG_ALLOC 1 > #define UMA_DEBUG_ALLOC_1 1 > */ > > rebuild the kernel and get more debug messages on the console. But that > will most likely make your machine working very slow. So try it at your > own risk and only if "options WITNESS" didn't help to get informative > enough logs. > > After all send your logs to FreeBSD developers. > Thanks for the info. I will try putting WITNESS in the kernel. This box has been running 6.1-RC fine for about 2 weeks. Hopefully i can catch this again. I just hope nothing blows up, as it is a production server, doing radius authentication for a medium sized ISP.