Subject: Re: NMBCLUSTERS setting issues
To: Andy Ruhl <acruhl@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 07/05/2005 21:20:39
On Tue, Jul 05, 2005 at 09:58:04AM -0700, Andy Ruhl wrote:
> I ran into the problem described here:
> 
> http://www.netbsd.org/Documentation/kernel/#mclpool-limit
> 
> There are 3 possible ways to get around this that I know of:
> 
> 1. Set the sysctl for kern.mbuf.nmbclusters higher
> 2. Use gdb to edit the kernel
> 3. Recompile the kernel
> 
> It might be possible to use userconf, I don't know, this page doesn't
> describe it though.
> 
> On my standard 2.0.2 i386 machine (GENERIC kernel), option #1 fails
> with "operation not permitted" when I try to set it to 2048.

#1 will work only for some architectures. I know it works on alpha,
and doesn't work on i386. I don't know for others.

> #2 causes
> gdb to core dump. So my only option left is #3, which I really didn't
> want to do on this particular machine.

Although gdb core dumped, it should have changed the value in the kernel
binary.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--