Subject: Re: bin/29774: sysctl can't raise kern.mbuf.nmbclusters
To: None <netbsd-bugs@netbsd.org>
From: Rui Paulo <rpaulo@netbsd-pt.org>
List: netbsd-bugs
Date: 03/23/2005 21:58:49
On 2005-03-23, Dennis Wecker <dennis@bingo-ev.de> wrote:
> The following reply was made to PR bin/29774; it has been noted by GNATS.
>
> From: Dennis Wecker <dennis@bingo-ev.de>
> To: gnats-bugs@netbsd.org
> Cc: dennis@bingo-ev.de
> Subject: Re: bin/29774: sysctl can't raise kern.mbuf.nmbclusters
> Date: Wed, 23 Mar 2005 19:32:28 +0100
>
>  On Wednesday, 23 Mar 2005 - 05:39:00PM +0000, tecneeq@tecneeq.de wrote:
> > >Number:         29774
> > >Category:       bin
> > >Synopsis:       sysctl can't raise kern.mbuf.nmbclusters
> > >Confidential:   no
> > >Severity:       non-critical
> > >Priority:       medium
> > >Responsible:    bin-bug-people
> > >State:          open
> > >Class:          sw-bug
> > >Submitter-Id:   net
> > >Arrival-Date:   Wed Mar 23 17:39:00 +0000 2005
> > >Originator:     Karsten Kruse
> > >Release:        NetBSD 3.0_BETA
> > >Organization:
> >         Homepage, Mac68k, A/UX-Links und Shorties: www.tecneeq.de
> >   ()    Linux/NetBSD-Anleitungen, Forum  und Chat: www.newbie-net.de
> >  <\/>
> >  _/\_   NetBSD - because Unix isn't just #include <linux.h>
> > >Environment:
> > 	
> > 	
> > System: NetBSD uberhost.newbie-net.de 3.0_BETA NetBSD 3.0_BETA (UBERHOST) #0: Tue Mar 22 22:29:34 CET 2005 karsten@uberhost.newbie-net.de:/mnt/data3/systems/netbsd/builds/NetBSD-3.0_BETA-x86-obj/sys/arch/i386/compile/UBERHOST i386
> > ident /sbin/sysctl                                         
> > /sbin/sysctl:
> >   $NetBSD: crt0.c,v 1.13 2003/07/26 19:24:27 salo Exp $
> >   $NetBSD: sysctl.c,v 1.97.2.2 2005/03/20 21:49:09 tron Exp $
> > Architecture: i386
> > Machine: i386
> > >Description:
> >   I try to raise kern.mbuf.nmbclusters from 1024 to 2048 wich,
> >   according to the manpage, should be possible. It is not.
> > 	
> > >How-To-Repeat:
> >   root@uberhost:~/home/karsten> sysctl kern.mbuf.nmbclusters
> >   kern.mbuf.nmbclusters = 1024
> >   root@uberhost:~/home/karsten> sysctl -w kern.mbuf.nmbclusters=2048
> >   sysctl: kern.mbuf.nmbclusters: sysctl() failed with Operation not permitted
>  
>  it's not possible to change the nmbclusters on all archs. 

I thought it was possible under PowerPC based Ports. So, the only way
besides rebuilding the kernel is by patching the binary using gdb ?

-- 
 Rui Paulo <rpaulo@netbsd-pt.org>        http://www.netbsd-pt.org/users/rpaulo/