Subject: vm.execmin: sysctl() failed with Invalid argument
To: None <current-users@NetBSD.org>
From: sigsegv <sigsegv@rambler.ru>
List: current-users
Date: 04/11/2005 18:24:48
# uname -a
NetBSD athlon1000 3.0_BETA NetBSD 3.0_BETA (CUSTOM) #2: Mon Apr 11 16:58:52 UTC 2005  roman@athlon1000:/opt/obj.i386_tbird/sys/arch/i386/compile/CUSTOM i386

Does anyone know what's going on here:

I boot the system with default sysctl values, then I edit /etc/sysctl.conf

vm.anonmin=80
vm.anonmax=95
vm.execmin=10
vm.execmax=60
vm.filemin=1
vm.filemax=1

Running sysctl to set new vm.* values produces the following error message:

# sysctl -f /etc/sysctl.conf
vfs.nfs.iothreads: 2 -> 2
vm.anonmin: 10 -> 80
vm.anonmax: 80 -> 95
sysctl: /etc/sysctl.conf#15: vm.execmin: sysctl() failed with Invalid argument
vm.execmax: 30 -> 60
vm.filemin: 10 -> 1
vm.filemax: 50 -> 1

Running sysctl the second time finally succeeds without errors:

# sysctl -f /etc/sysctl.conf
vfs.nfs.iothreads: 2 -> 2
vm.anonmin: 80 -> 80
vm.anonmax: 95 -> 95
vm.execmin: 5 -> 10
vm.execmax: 60 -> 60
vm.filemin: 1 -> 1
vm.filemax: 1 -> 1