[Dovecot] inotify max_user instances

Charles Marcus CMarcus at Media-Brokers.com
Mon Jan 6 21:28:35 EET 2014


On 2014-01-06 1:33 PM, Charles Marcus <CMarcus at Media-Brokers.com> wrote:
> Timo, last year when you remoted into our server and performed the 
> migration from courier-imap, we ran into this issue, and you solved it 
> by doing:
>
> echo 1024 > /proc/sys/fs/inotify/max_user_instances
>
> Then you said you were going to solve this permanently by changing the 
> init script...
>
> Here is what you said (this is from the skype chat):
>
> [2012-06-04 10:40:43 AM] timosirainen: probably put to dovecot init 
> script or something

Actually found this a but later during the chat, which looks much 
better. I guess when you said 'it looks up a good value from doveconf', 
that one could specify the value in the config file and it would use 
whatever was there?

Anyway, here is what you said (to refresh your memory):

> timosirainen: i can do that. btw i've today been building RPMs for dovecot
> timosirainen: and in that init.d script i'm also adding this
> timosirainen: i'll make it somewhat automatic though
> timosirainen:  if [ "$INOTIFY_INSTANCES" != "" ]; then
>    if [ "$INOTIFY_INSTANCES" = "auto" ]; then
>      INOTIFY_INSTANCES=`$doveadm config -h service/imap/process_limit`
>      if [ "$INOTIFY_INSTANCES" = 0 ]; then
>        INOTIFY_INSTANCES=`$doveadm config -h default_process_limit`
>      fi
>      increase_proc_value /proc/sys/fs/inotify/max_user_watches 
> $INOTIFY_INSTANCES
>      increase_proc_value /proc/sys/fs/inotify/max_user_instances 
> $INOTIFY_INSTANCES
>    fi
>  fi
> timosirainen: it looks up a good value from doveconf



More information about the dovecot mailing list