From owner-freebsd-stable@FreeBSD.ORG Sat Dec 16 21:15:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0348116A407 for ; Sat, 16 Dec 2006 21:15:12 +0000 (UTC) (envelope-from hunreal@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EDE043CA4 for ; Sat, 16 Dec 2006 21:15:11 +0000 (GMT) (envelope-from hunreal@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so989038wxc for ; Sat, 16 Dec 2006 13:15:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CJVR/HCXK5c7pS8jfFUWfLaW9cMgwy0akqgwKw1nIzBYvzfuddTZmUNWFViLSHXOaLwa9Yut3XQXGWBmeH1bbZJ0CbFSLJhXBU81P0K7Jdd1x8oRJBOp7Qwaf/HpD3P9Yt6/qPTKglTICvxzm+DgtE2zsEqF3hWaMwKIeBQUh2g= Received: by 10.90.83.14 with SMTP id g14mr2374376agb.1166303710952; Sat, 16 Dec 2006 13:15:10 -0800 (PST) Received: by 10.90.84.18 with HTTP; Sat, 16 Dec 2006 13:15:10 -0800 (PST) Message-ID: <9b6b59500612161315w58d01d25n902f12e3a4f4b2b2@mail.gmail.com> Date: Sun, 17 Dec 2006 05:15:10 +0800 From: hshh To: "LI Xin" In-Reply-To: <9b6b59500612150646k4f902e65qb5ef6efa86dbc7c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9b6b59500612150001p706b361ava92ad96cdcd4791@mail.gmail.com> <45826FCA.2010709@delphij.net> <9b6b59500612150646k4f902e65qb5ef6efa86dbc7c6@mail.gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: SMP Kernel Panic while heavy load. 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: Sat, 16 Dec 2006 21:15:12 -0000 As LI Xin's said, I modified sys/kern/kern_descrip.c, [root@www] /web/dump# diff -c kern_descrip.c.bak /sys/kern/kern_descrip.c *** kern_descrip.c.bak Sun Dec 17 05:10:51 2006 --- /sys/kern/kern_descrip.c Sun Dec 17 02:37:01 2006 *************** *** 197,202 **** --- 197,203 ---- static int fdisused(struct filedesc *fdp, int fd) { + MPASS(fdp->fd_map != NULL); KASSERT(fd >= 0 && fd < fdp->fd_nfiles, ("file descriptor %d out of range (0, %d)", fd, fdp->fd_nfiles)); return ((fdp->fd_map[NDSLOT(fd)] & NDBIT(fd)) != 0); New backtrace: http://upload.hshh.org/homes/hshh/temp/panic/kgdb-1217.log Kernel config: http://upload.hshh.org/homes/hshh/temp/panic/kernel-1217.log On 12/15/06, hshh wrote: > After recompile kernel with new conf: > http://upload.hshh.org/homes/hshh/temp/panic/kernel-1215.log > It still panic while SMP enabled. > kgdb backtrace: > http://upload.hshh.org/homes/hshh/temp/panic/kgdb-1215.log > > On 12/15/06, LI Xin wrote: > > hshh wrote: > > > Hi, > > > My FreeBSD server panic while running SMP kernel. All work fine if > > > disable SMP feature. > > > > > > uname log: http://upload.hshh.org/homes/hshh/temp/panic/uname.log > > > My kernel conf: http://upload.hshh.org/homes/hshh/temp/panic/kernel.log > > > Backtrace log: http://upload.hshh.org/homes/hshh/temp/panic/kgdb.log > > > > Would you please disable ZEROCOPY_SOCKETS and try if things gets improved? > > > > Cheers, > > -- > > Xin LI http://www.delphij.net/ > > FreeBSD - The Power to Serve! > > > > > > > > >