Subject: Re: USB reserve memory patch
To: Frank van der Linden <fvdl@NetBSD.org>
From: Steven M. Bellovin <smb@research.att.com>
List: port-i386
Date: 11/07/2004 12:55:38
In message <20041107174159.GA21287@vaasje.org>, Frank van der Linden writes:
>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.
>

Without that fix, the USB stuff worked well, but my machine was slow.  
With it, things have been working very well.

		--Steve Bellovin, http://www.research.att.com/~smb