> On Nov 12, 2026, at 8:18 PM, Stuart Henderson <[email protected]>
> wrote:
>
> On 2026-11-12, Kirill A Korinsky <[email protected]> wrote:
>>> On Thu, 12 Nov 2026 23:52:08 +0100,
>>> [email protected] wrote:
>>>
>>> Hi all,
>>>
>>> I apologize for my ignorance. I suspect that a simple solution may exist
>>> for my problem.
>>>
>>> I set up an email server recently as well as rspamd and redis. However,
>>> redis is failing to start with rcctl as follows:
>>>
>>> # rcctl start redis
>>> redis(ok)
>>> # rcctl check redis
>>> redis(failed)
>>>
>>> # redis-server returns the following error
>>> # Accepting client connection: accept: Too many open files in system
>>>
>>> # grep maxclients /etc/redis/redis.conf
>>> # maxclients 10000
>>> maxclients 96
>>>
>>> # redis-server -v
>>> Redis server v=8.10.3 sha=00000000:0 malloc=libc bits=64
>>> build=9a7eb7c27d478a16
>>> # uname -a
>>> OpenBSD example.com 8.0 GENERIC#4 amd64
>>>
>>>
>>> I couldn't find a manual page for redis. Any pointers will be much
>>> appreciated.
>>>
>>
>> I think you need create /etc/login.conf.d/redis with content like that:
>>
>> redis:\
>> :datasize=10G:\
>> :openfiles-cur=1024:\
>> :openfiles-max=2048:\
>> :tc=daemon:
>>
>> See https://man.openbsd.org/login.conf and https://man.openbsd.org/rc.d.8
>> for details
>
> if it was "too many open files" (EMFILE), that might be an answer,
> but this is "too many open files _in system_" (ENFILE)
>
>
In other words, you need to adjust kern.maxfiles sysctl or find out what is
using all your file descriptors:
fstat | awk ‘{print $2, $3}’ | sort | uniq -c | sort -rn | head -n 10
To see the top ten processes by number of open file descriptors.