From owner-freebsd-current@FreeBSD.ORG Mon Apr 30 17:54:47 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D71516A400; Mon, 30 Apr 2007 17:54:47 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 2E6C613C44C; Mon, 30 Apr 2007 17:54:47 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mail.0x20.net (Postfix, from userid 1002) id 15F5839786; Mon, 30 Apr 2007 19:54:46 +0200 (CEST) Date: Mon, 30 Apr 2007 19:54:46 +0200 From: Lars Engels To: John Baldwin Message-ID: <20070430175445.GB88409@e.0x20.net> Mail-Followup-To: Lars Engels , John Baldwin , freebsd-current@freebsd.org, Kevin Oberman References: <20070423193112.GU46992@e.0x20.net> <200704301208.59312.jhb@freebsd.org> <20070430170204.GA88409@e.0x20.net> <200704301336.41897.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IrhDeMKUP4DT/M7F" Content-Disposition: inline In-Reply-To: <200704301336.41897.jhb@freebsd.org> X-Editor: VIM - Vi IMproved 7.0 X-Operation-System: FreeBSD 5.5-RELEASE User-Agent: Mutt/1.5.11 Cc: freebsd-current@freebsd.org Subject: Re: cardbus not powered when ACPI is enabled 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: Mon, 30 Apr 2007 17:54:47 -0000 --IrhDeMKUP4DT/M7F Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 30, 2007 at 01:36:41PM -0400, John Baldwin wrote: > On Monday 30 April 2007 01:02:04 pm Lars Engels wrote: > > On Mon, Apr 30, 2007 at 12:08:58PM -0400, John Baldwin wrote: > > > On Friday 27 April 2007 04:57:52 pm Lars Engels wrote: > > > > On Thu, Apr 26, 2007 at 05:45:50PM -0400, John Baldwin wrote: > > > >=20 > > > > I also encountered occasional "Panic: failed to create swap zone" w= hen > > > > CPU #1 was launched just before the disks get mounted. Could that be > > > > related? > > >=20 > > > Ok, so for the default setup, the only problem is that panic? That s= ounds=20 > > > like running out of kvm possibly as the swapzone is preallocated from= =20 > kmem. =20 > > > The system may be allocating too much for the swapzone, in which case= you=20 > can=20 > > > explicitly set the size via the 'kern.maxswzone' tunable. One possib= le=20 > > > formula for this is: > > >=20 > > > maxswzone =3D (swap + 1024) * 1024 * 9 / 2 > > >=20 > > > Where 'swap' is the amount of swap in megabytes. > >=20 > > I added kern.maxswzone=3D13953024 (2004 MB swap) to loader.conf but aft= er > > a reboot the oid is still unknown. Do I need to set it somewhere else? >=20 > Unfortunately, it's just a tunable, there isn't a sysctl to see the curre= nt=20 > setting. You can, however, look at the 'vmstat -z' output. You can figu= re=20 > out the current swap zone size by multiplying the size and limit columns= =20 > for 'SWAPMETA'. Something like this: >=20 > vmstat -z | awk '/^SWAPMETA/ { printf "%d\n", $2 * $3 }' | bc There's a difference of 120 bytes between the vmstat output and maxswzone. Is that normal? But I think the panics are gone now. I booted five times with the cardbus card inserted when cpu #1 was launched and there was no panic. --=20 Lars Engels E-Mail: lars.engels@0x20.net =09 --IrhDeMKUP4DT/M7F Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD4DBQFGNi1lKc512sD3afgRAkNlAJjWC5rFBHbw2FiOvjvPsWVMgqAkAJ97asc+ Em9OV1r4wBas1leHBGZxkw== =nxJ2 -----END PGP SIGNATURE----- --IrhDeMKUP4DT/M7F--