Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2007 19:54:46 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: cardbus not powered when ACPI is enabled
Message-ID:  <20070430175445.GB88409@e.0x20.net>
In-Reply-To: <200704301336.41897.jhb@freebsd.org>
References:  <20070423193112.GU46992@e.0x20.net> <200704301208.59312.jhb@freebsd.org> <20070430170204.GA88409@e.0x20.net> <200704301336.41897.jhb@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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:
> > > > 
> > > > I also encountered occasional "Panic: failed to create swap zone" when
> > > > CPU #1 was launched just before the disks get mounted. Could that be
> > > > related?
> > > 
> > > Ok, so for the default setup, the only problem is that panic?  That sounds 
> > > like running out of kvm possibly as the swapzone is preallocated from 
> kmem.  
> > > The system may be allocating too much for the swapzone, in which case you 
> can 
> > > explicitly set the size via the 'kern.maxswzone' tunable.  One possible 
> > > formula for this is:
> > > 
> > >     maxswzone = (swap + 1024) * 1024 * 9 / 2
> > > 
> > > Where 'swap' is the amount of swap in megabytes.
> > 
> > I added kern.maxswzone=13953024 (2004 MB swap) to loader.conf but after
> > a reboot the oid is still unknown. Do I need to set it somewhere else?
> 
> Unfortunately, it's just a tunable, there isn't a sysctl to see the current 
> setting.  You can, however, look at the 'vmstat -z' output.  You can figure 
> out the current swap zone size by multiplying the size and limit columns 
> for 'SWAPMETA'.  Something like this:
> 
>     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.

-- 
Lars Engels
E-Mail: lars.engels@0x20.net 	

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD4DBQFGNi1lKc512sD3afgRAkNlAJjWC5rFBHbw2FiOvjvPsWVMgqAkAJ97asc+
Em9OV1r4wBas1leHBGZxkw==
=nxJ2
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070430175445.GB88409>