Re: /bsd: file: table is full

2017-03-01 Thread Ted Unangst
Peter Haag wrote:
> Hi list,
> I'm running a moderate busy OpenBSD 6.0 server for mail ( postfix, cyrus ) as 
> well as
> web server ( nginx,  php ) and experiance the following kernel messages:
> 
> /bsd: file: table is full
> 
> /bsd: process: table is full
> 
> Is there an advice or rule on how the values kern.maxfiles, kern.maxproc 
> should be set/increased
> in order to avoid hitting these limits, or is it simply an increase to what 
> every value is appropriate?

increase as necessary, but investigate better process limits. the system
limits are a last resort check against runaway processes, but it's better to
hit per process/user limits first.



/bsd: file: table is full

2017-03-01 Thread Peter Haag
Hi list,
I'm running a moderate busy OpenBSD 6.0 server for mail ( postfix, cyrus ) as 
well as
web server ( nginx,  php ) and experiance the following kernel messages:

/bsd: file: table is full

/bsd: process: table is full

Is there an advice or rule on how the values kern.maxfiles, kern.maxproc should 
be set/increased
in order to avoid hitting these limits, or is it simply an increase to what 
every value is appropriate?

On the application side, I already tried to optimize some values for IMAP etc. 
- fstat is the tool
of choice, but all tweeking seems not to fit into the default values of the 
kernel.


Many thanks

- Peter



signature.asc
Description: OpenPGP digital signature