First of all, thank you so very much for your invaluable inputs! They are very
much appreciated. I appreciate your patience with me.
# fstat | awk ‘{print $2, $3}’ | sort | uniq -c | sort -rn | head -n 10
221 dovecot 34167
39 log 20257
38 rspamd 14829
36 rspamd 77311
30 rspamd 20730
24 smtpd-dispatcher 60996
23 rspamd 85175
20 syslogd 629
18 anvil 70215
17 redis-server 28099
Need help with a couple more things:
1. Does the first number indicate the number of open files by that process?
According to `man fstat` it looks like it is USER, but it doesn't make sense.
2. Does this mean that dovecot is eating up the open file pool? I am using the
default settings as below (/etc/login.conf.d/dovecot)
dovecot:\
:openfiles-cur=1024:\
:openfiles-max=2048:\
:tc=daemon:
These settings are evidently compatible with redis-6.2.24p0 but not 8.10.3.
What gives?
Hakan
November 12, 2026 at 7:28 PM, "Brian Brombacher" <[email protected]
mailto:[email protected]?to=%22Brian%20Brombacher%22%20%3Cbrian%40planetunix.net%3E
> wrote:
>
> >
> > 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] mailto:[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.
>