Red Hat Enterprise Linux で dentry_cache サイズが持続的に増大します
Issue
- アプリケーションによって、名前が一意的に付けられる大量のファイル (~15,000/hour) が作成され、しばらくすると削除されます。
- 常に ~5000 程度のファイルが存在します。
- free コマンドで見るとメモリ使用率が非常に高くなっています。
- 調査によると dentry_cache が原因で使用率が高くなっていることが分かります。
- dentry_cache が、利用可能な (cached/free) メモリを使いきるとどうなりますか?
- dentry オブジェクトが、ファイルを削除しても解放されないのはなぜですか? プロセスの所有者ですか? java の delete メソッドのためのごみ箱 (非表示) がどこかにありますか?
- vfs_cache_pressure の詳細を教えてください。
- dentry_cache サイズを減らすために他に何ができますか?
- vm.drop_caches=2 は使用することができますか? 別の推奨される方法はありますか? どのぐらい安全ですか? これを cron ジョブとして実行できますか?
Environment
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
