Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

パラメーター "max_map_count" とは何ですか? サーバーのパフォーマンスへの影響はありますか?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • ソフトウェアベンダーは、vm.max_map_count の値を増やすことを提案しましたが、これはシステムに悪影響を及ぼす可能性はありますか?

Resolution

  • kernel-doc/Documentation/sysctl/vm.txt によると、以下のようになります。

    • このファイルには、プロセスが持つことが可能なメモリーマップ領域の最大数が含まれています。メモリーマップ領域は、mmap および mprotect によって直接、malloc を呼び出すことの副次的影響として使用されます。また、共有ライブラリーをロードするときにも使用されます。

    • ほとんどのアプリケーションで必要なマップは 1,000 未満ですが、特定のプログラム、特に malloc デバッガーでは、割り当てごとに最大 1 つまたは 2 つのマップなど、大量のマップを消費する可能性があります。

    • デフォルト値は 65530 です。

  • 値を下げると、プロセスが制限に達するとシステムがメモリー不足エラーを返すため、アプリケーションの動作に問題が生じる可能性があります。この制限を下げることの利点は、他のカーネルが使用するために lowmem を解放できることです。

  • 制限を上げると、サーバーのメモリー消費量が増加する可能性があります。ソフトウェアが要求した場合にのみメモリーが使用されるため、メモリーがすぐに消費されることはありませんが、サーバー上のアプリケーションのフットプリントが大きくなる可能性があります。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments