Skip to content

Commit

Permalink
config_manual/performance_tuning: Update service_* setting links
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and cmouse committed Jan 24, 2024
1 parent f5b4743 commit 659848f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/configuration_manual/performance_tuning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ CPU usage optimization
(via auth-worker processes), set
:dovecot_core:ref:`auth_cache_verify_password_with_worker=yes <auth_cache_verify_password_with_worker>`. (v2.2.34+)

- Services having :ref:`client_limit>1 <service_configuration-client_limit>`
and :ref:`process_limit>1 <service_configuration-process_limit>`, set
:ref:`process_min_avail <service_configuration-process_min_avail>` to the number of CPU cores.
- Services having :dovecot_core:ref:`service_client_limit` > 1
and :dovecot_core:ref:`service_process_limit` > 1, set
:dovecot_core:ref:`service_process_min_avail` to the number of CPU cores.

- To reduce forks by reusing existing processes for new requests
increase :ref:`service { service_count } <service_configuration-service_count>` from 1 to higher (e.g. 100)
increase :dovecot_core:ref:`service_service_count` from 1 to higher (e.g. 100)
for imap and pop3 services. It's better not to set it too high or
unlimited (0), because different users use different amounts of
memory, and it's wasteful when a lot of processes end up having a lot
Expand All @@ -84,10 +84,10 @@ little.

Note that these settings do not directly affect the memory usage:

- :ref:`service { vsz_limit } <service_configuration-vsz_limit>`: These are simply safe guards against
- :dovecot_core:ref:`service_vsz_limit`: These are simply safe guards against
potential memory leaks. If the process's virtual size reaches the
limit, the process is killed by the kernel.

- :ref:`service { process_limit } <service_configuration-process_limit>` and
:ref:`service { client_limit } <service_configuration-client_limit>`: These are mostly to
- :dovecot_core:ref:`service_process_limit` and
:dovecot_core:ref:`service_client_limit`: These are mostly to
avoid DoS attacks using up all your memory.

1 comment on commit 659848f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

🔴 Please review

See the 📜action log or 📝 job summary for details.

Unrecognized words (2)

mnt
SSHA

Previously acknowledged words that are now absent addhdrvar admins AEAD alloca Appe ATo authz BDAT BROKENCHAR CFLAGS CJK cmake cov CRLs ctlr dbg deref eip emacs etuid Expu fscrypt gcc GNUC Hotspot IAT idx INDEXCACHE INDEXPVT inlines ITERINDEX linelen mailboxdir MAILDIRBOX mkcert mmap mutf myscript newkey NFKD NOALTCHECK noindex opensource OSERROR Pbase pcre PGP PROT Ptest ptr reada RLIMIT sdc setcap splitrow srv ssha strsplit STW subdomain subfolders subkey subname subvalue templating Testmsg tmpmbox TYPECHECK uncompressing virtualenv VOLATILEDIR wikipedia WILLNEED 🫥
To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the [email protected]:dovecot/documentation.git repository
on the feature/config-rewrite branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.22/apply.pl' |
perl - 'https://github.com/dovecot/documentation/actions/runs/7637138819/attempts/1'
Errors (1)

See the 📜action log or 📝 job summary for details.

❌ Errors Count
❌ ignored-expect-variant 2

See ❌ Event descriptions for more information.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Please sign in to comment.