kern.maxfiles formula?

Matthias Buelow mkb at
Sun Jan 2 13:45:07 PST 2005

Kris Kennaway wrote:

> Having a hard limit is by design, or users could run your machine out
> of memory and cause it to panic.

# sysctl -w kern.maxfiles=20000
kern.maxfiles: 12328 -> 20000

Ok, I agree. Must've confused something here. I was under the impression 
that it was fixed at boot. The user issue could be tackled with ulimit, 
however probably not in a completely satisfactory way (with resource 
limits being per-process, not per-user. Sometimes a bit of VMS would be 
nice ;).


More information about the freebsd-questions mailing list