Subject: Re: USB reserve memory patch
To: Jukka Marin <jmarin@embedtronics.fi>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: port-i386
Date: 11/07/2004 14:33:20
Jukka Marin wrote:
> Is it possible that this patch could prevent adding a large swap
> partition?  I installed the patch to a 2.0_RC4 kernel, rebooted - and
> ended up with no swap space.  I ran "swapctl -A" and it sait it could
> not get memory.  My swap partition size was 16 GB.  I have never seen
> this before.
> 
> I then resized the swap partition to 5 GB and rebooted - and everything
> works now.  I'll try 8 GB next.
> 
> BTW, this machine has 1 GB of physical memory.

Note that there is kernel memory overhead using swap. IIRC it's
couple bytes per configured swap page, and it doesn't depend on
how much swap is actually used. That's probably why the attempt to
configure 16GB swap failed.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-