Hi,

> On 13 Nov 2026, at 4:20 AM, [email protected] wrote:
> 
> 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



The first number is counter of instances of the filtered string by awk and 
comes from the pipe in "uniq -c” command (man uniq),
the next pipe sorts the result and displays the top ten. So the outputs reads 
like:

<instance_counts> process_name PID

So dovecot is using 221 file descriptors. In all honesty these do not seem like 
“a lot” to me, but I don’t have a good sense of
the expected FDs used by dovecot under normal operations. I guess depends on 
the load.

Keep in mind that this is command gives you a “point in time” snapshot, so 
there might be spikes that are not visible.

Kind regards,

P.

Reply via email to