PDA

View Full Version : Insufficient kern.maxfiles


alexthurgood
11-20-2006, 06:57 PM
My biggest gripe so far with PC-BSD is that the default number of nodes is insufficient. I always end up with the dreaded :

kern.maxfiles limit exceeded by uid 1001, please see tuning(7)

and the system goes down. This is one bug that really sucks, you shouldn't have to tinker with the fs just to be able to create and delete large numbers of small files - any amount of compiling will do that for you. Surely, some other default could be chose here ?

Alex

kiskete
01-11-2007, 01:26 PM
This was taken from "man tuning"

The kern.maxfiles sysctl determines how many open files the system sup-
ports. The default is typically a few thousand but you may need to bump
this up to ten or twenty thousand if you are running databases or large
descriptor-heavy daemons.

Try adding kern.maxfiles=25000 to your /etc/sysctl.conf