From owner-freebsd-current@FreeBSD.ORG Sat Jan 14 05:21:18 2006 Return-Path: X-Original-To: current@FreeBSD.org 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 EF47916A424; Sat, 14 Jan 2006 05:21:18 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1AB143D45; Sat, 14 Jan 2006 05:21:18 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 886001A3C1C; Fri, 13 Jan 2006 21:21:18 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C610F54A42; Sat, 14 Jan 2006 00:21:17 -0500 (EST) Date: Sat, 14 Jan 2006 00:21:17 -0500 From: Kris Kennaway To: green@FreeBSD.org, current@FreeBSD.org Message-ID: <20060114052117.GA16773@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: Extreme contigmalloc() slowness with mpt driver 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: Sat, 14 Jan 2006 05:21:19 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I have an amd64 machine with 16GB of RAM that takes ages to boot (~40 minutes on 7.0). This is because the mpt driver takes 20 minutes to attach (with 2 instances). This in turn is because the following code from dev/mpt/mpt_pci.c:mpt_dma_mem_alloc() takes about 5 seconds to execute, and it is run 256 times in a loop: error = bus_dmamap_create(mpt->buffer_dmat, 0, &req->dmap); When I set vm.old_contigmalloc=1, the system boots without delay. This points to a bug in contigmalloc. Kris --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDyIpMWry0BWjoQKURAuTRAKCnSlr80D7Db3NmKtO5ZO/tatkzRQCg2I3J oxsMNYZPV6QAXDI0hDi955Q= =lXTT -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--