From owner-freebsd-current@FreeBSD.ORG Wed Dec 3 10:11:15 2003 Return-Path: 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 A986716A4CF; Wed, 3 Dec 2003 10:11:15 -0800 (PST) Received: from fatpipi.cirx.org (fatpipi.cirx.org [211.23.144.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id A86C943FCB; Wed, 3 Dec 2003 10:11:10 -0800 (PST) (envelope-from clive@tongi.org) Received: from fatpipi.cirx.org (nullmail@internal-fxp.home [192.168.1.254]) by fatpipi.cirx.org (8.12.8p2/8.12.6) with SMTP id hB3IB8tM029953; Thu, 4 Dec 2003 02:11:08 +0800 (CST) (envelope-from clive@tongi.org) Received: (nullmailer pid 29951 invoked by uid 1000); Wed, 03 Dec 2003 18:11:08 -0000 Date: Thu, 4 Dec 2003 02:11:08 +0800 From: Clive Lin To: Scott Long Message-ID: <20031203181108.GA29680@fatpipi.cirx.org> References: <20031029161647.GA42024@fatpipi.cirx.org> <20031031010904.GA81366@ergobrains.co.jp> <20031031082550.GA35838@ergobrains.co.jp> <20031203165020.GA29007@fatpipi.cirx.org> <3FCE1D6F.30708@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FCE1D6F.30708@freebsd.org> X-Operating-System: FreeBSD i386 X-PGP-key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA008C03E User-Agent: Mutt/1.5.5.1i cc: freebsd-current@freebsd.org cc: YONETANI Tomokazu Subject: Re: ServeRAID semi show stopper (was Re: lots of "exclusive sleep mutex") X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 03 Dec 2003 18:11:15 -0000 On Wed, Dec 03, 2003 at 10:29:19AM -0700, Scott Long wrote: > Clive Lin wrote: > >Hi, > > > > Here comes more helpful ServeRAID related warnings: > > > >Bad malloc flags: 0 > >Stack backtrace: > >malloc() of "16" with the following non-sleepable locks held: > >exclusive sleep mutex g_xdown r = 0 (0xe1f31cbc) locked @ > >/usr/src/sys/geom/geom_io.c:355 > >Bad uma_zalloc flags: 0 > >Stack backtrace: > >malloc() of "16" with the following non-sleepable locks held: > >exclusive sleep mutex g_xdown r = 0 (0xe1f31cbc) locked @ > >/usr/src/sys/geom/geom_io.c:355 > >malloc() of "16" with the following non-sleepable locks held: > >exclusive sleep mutex g_xdown r = 0 (0xe1f31cbc) locked @ > >/usr/src/sys/geom/geom_io.c:355 > >malloc() of "16" with the following non-sleepable locks held: > >exclusive sleep mutex g_xdown r = 0 (0xe1f31cbc) locked @ > >/usr/src/sys/geom/geom_io.c:355 > >( ... repeats ... ) > The patch below will silence this warning. However, the real solution > is a lot more complicated and will have to wait for after 5.2. > > Scott > > > --- ips_commands.c 27 Nov 2003 08:37:36 -0000 1.7 > +++ ips_commands.c 3 Dec 2003 17:26:28 -0000 > @@ -165,7 +165,7 @@ > > void ips_start_io_request(ips_softc_t *sc, struct bio *iobuf) > { > - if(ips_get_free_cmd(sc, ips_send_io_request, iobuf, 0)){ > + if(ips_get_free_cmd(sc, ips_send_io_request, iobuf, > IPS_NOWAIT_FLAG)){ > device_printf(sc->dev, "no mem for command slots!\n"); > iobuf->bio_flags |= BIO_ERROR; > iobuf->bio_error = ENOMEM; Hi, It helps a lot to reduce my serial console traffic :) Now only few warns below appears under heavy disk access: ipsd0: iobuf error 12 ips0: no mem for command slots! Clive