I have some multithread apps on my server machine based on FreeBSD 7.2, so because of this I need to increase kern.threads.max_threads_per_proc to 4000 (default value is 1500). I changed it using "sysctl kern.threads.max_threads_per_proc=4096" and it looks like ok, but after reboot this option has default value again. I also tried to use /boot/loader.conf but it's still returning to default value.
This is what contains in loader.conf:
kern.maxdsiz=1073741824
kern.maxtsiz=1073741824
kern.maxssiz=268435456
kern.maxproc=10000
kern.maxprocperuid=9000
kern.threads.max_threads_per_proc=4000
And even with this settings "sysctl kern.threads.max_threads_per_proc" shows defalut value (1500) after reboot.
Please, tell me how can I change this permanently?