From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 16:04:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CEF916A423 for ; Fri, 16 Sep 2005 16:04:04 +0000 (GMT) (envelope-from lesha@ns.divo.ru) Received: from sys135.3fn.net (sys135.3fn.net [216.195.33.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F3C43D45 for ; Fri, 16 Sep 2005 16:04:02 +0000 (GMT) (envelope-from lesha@ns.divo.ru) Received: from submit@sys135 (authenticated bits=0) by sys135.3fn.net (8.13.3/8.13.1) with ESMTP id j8GAWus9066740; Fri, 16 Sep 2005 03:32:58 -0700 (PDT) (envelope-from lesha@ns.divo.ru) From: AK Organization: OffshoreDrive.com To: Chuck Swiger Date: Fri, 16 Sep 2005 19:09:10 +0300 User-Agent: KMail/1.8.1 References: <200509161254.14108.lesha@ns.divo.ru> <432AE77E.2030509@mac.com> In-Reply-To: <432AE77E.2030509@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509161909.10463.lesha@ns.divo.ru> Cc: freebsd-questions@freebsd.org Subject: Re: "panic: getnewbuf: locked buf" on heavy load 5.4-STABLE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 16:04:04 -0000 Hello! On Friday 16 September 2005 18:40, Chuck Swiger wrote: > Please read "man crash" and the part of the handbook which talks about how > to obtain a crashdump or backtrace with more information about the panic > you see. > > You might consider putting both a backtrace and a dmesg from the system on > the web somewhere, and post links to that. To get a crashdump I should have swapspace >= total ram. Currently it is only 2G, I'm trying to think of smth. to get more swapspace. dmesg is available @ http://getfile.biz/dmesg.txt > > For some reason my 5.4 STABLE is dying each 4-5 hours with panic above. > > This is big Web server with Apache configured to 1500 MaxClients. All > > kernel tunings suggested for high load servers by freebsd handbook are in > > place. Hardware is Intel server board, P4-3.0 cpu with HT off, 3Gb ram, > > 1eide, 2sata. > By the way, you don't have enough RAM to handle 1500 concurrent Apache > processes, even with a minimal config (ie, no SSL, no mod_perl, no PHP). Mem: 1203M Active, 1293M Inact, 383M Wired, 125M Cache, 112M Buf, 4340K Free Looks like enough to me... > The busiest site I've ever administered needed between 100 and 150 apache > children in order to serve a load of ~2 million hits per day. Yes, if you run a "text only" site. This one is a "file download" site with more that 750Gb/day transfer. Limiting apache to 150 or even 500 connections will make it unavailable, as all slots will be occupied by active downloads. See http://getfile.biz/ for details. Thanks, Alex. -- OffshoreDrive.com - alex@offshoredrive.com secure online storage and content delivery solutions