You should take into account mainly the following parameters.
shared_buffers work_mem maintenance_work_mem effective_cache_size
Aboutshared_buffers:
- Below 2GB,set to 20% of total system memory.
- Below 32GB,set to 25% of total system memory.
- Above 32GB,set to 8GB
Aboutwork_mem,this parameter can cause a huge speed-up if set properly,however it can use that amount of memory per planning node.
Here are some recommendations to set it up.
- Start low: 32-64MB
- Look for ‘temporary file’ lines in logs
- Set to 2-3x the largest temp file
Aboutmaintenance_work_mem,here are some recommandations:
- 10% of system memory,up to1GB
- Maybe even higher if you are having VACUUM problems
Abouteffective_cache_size,here are some guidelines.
- Set to the amount of file system cache available
- If you don’t kNow,set it to 50% of total system memory
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。