Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fixing PR port-i386/45946 (Kernel locks up in VMEM system)



On Fri, Feb 10, 2012 at 2:31 PM, Matthias Scheler 
<tron%zhadum.org.uk@localhost> wrote:
>
>        Hello,
>
> NetBSD-current has recently stopped working on my 3GB NetBSD virtual machine
> because of the KMEM changes.
>
> Lars Heidieker proposed the following change:
>
> Index: sys/arch/i386/include/param.h
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/i386/include/param.h,v
> retrieving revision 1.75
> diff -u -r1.75 param.h
> --- sys/arch/i386/include/param.h       4 Feb 2012 17:56:16 -0000       1.75
> +++ sys/arch/i386/include/param.h       10 Feb 2012 13:27:42 -0000
> @@ -129,7 +129,7 @@
>  * logical pages.
>  */
>  #define        NKMEMPAGES_MIN_DEFAULT  ((8 * 1024 * 1024) >> PAGE_SHIFT)
> -#define        NKMEMPAGES_MAX_DEFAULT  ((280 * 1024 * 1024) >> PAGE_SHIFT)
> +#define        NKMEMPAGES_MAX_DEFAULT  ((360 * 1024 * 1024) >> PAGE_SHIFT)
>
>  /*
>  * Mach derived conversion macros
>
> And this change fixes all the problems I have observed.
>
> Is there any reason not to commit that? I'm particular wondering what
> influence the patch will have on machines with low amounts of memory.
>

Hi,
there is no influence on machines with low memory.
It should go in.

I'll make a patch this evening including such adjustments for macppc
etc. and reducing the quantum caching in the kmem_arena a bit.

Kind regards,
Lars


Home | Main Index | Thread Index | Old Index