Subject: Re: USB reserve memory patch
To: Jukka Marin <jmarin@kyyhky.embedtronics.fi>
From: Frank van der Linden <fvdl@netbsd.org>
List: port-i386
Date: 11/07/2004 18:41:59
On Sun, Nov 07, 2004 at 01:24:18PM +0200, 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.

Well, there is one typo in it, as Mark Davies pointed out to me:

> + #ifndef USB_MEM_RESERVE
> + #define USB_MEM_RESERVE (256 * 1024 * 1024)
> + #endif

Oops. That should be 256 kilobytes, not 256 megabytes :) If you change
that, things might be OK.

- Frank