mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
postgres: Tune effective_cache_size upwards, to 75%.
The previous 10/16ths is an odd value; various suggestions are around 75% of RAM, and in practice this is closer to what is observed.
This commit is contained in:
committed by
Tim Abbott
parent
49c307e136
commit
8850c3f85c
@@ -12,7 +12,7 @@ class zulip::profile::postgresql {
|
|||||||
}
|
}
|
||||||
$work_mem = zulipconf('postgresql', 'work_mem', sprintf('%dMB', $total_postgres_memory_mb / 256))
|
$work_mem = zulipconf('postgresql', 'work_mem', sprintf('%dMB', $total_postgres_memory_mb / 256))
|
||||||
$shared_buffers = zulipconf('postgresql', 'shared_buffers', sprintf('%dMB', $total_postgres_memory_mb / 4))
|
$shared_buffers = zulipconf('postgresql', 'shared_buffers', sprintf('%dMB', $total_postgres_memory_mb / 4))
|
||||||
$effective_cache_size = zulipconf('postgresql', 'effective_cache_size', sprintf('%dMB', $total_postgres_memory_mb * 10 / 16))
|
$effective_cache_size = zulipconf('postgresql', 'effective_cache_size', sprintf('%dMB', $total_postgres_memory_mb * 3 / 4))
|
||||||
$maintenance_work_mem = zulipconf('postgresql', 'maintenance_work_mem', sprintf('%dMB', $total_postgres_memory_mb / 16))
|
$maintenance_work_mem = zulipconf('postgresql', 'maintenance_work_mem', sprintf('%dMB', $total_postgres_memory_mb / 16))
|
||||||
$wal_buffers = zulipconf('postgresql', 'wal_buffers', undef)
|
$wal_buffers = zulipconf('postgresql', 'wal_buffers', undef)
|
||||||
$random_page_cost = zulipconf('postgresql', 'random_page_cost', undef)
|
$random_page_cost = zulipconf('postgresql', 'random_page_cost', undef)
|
||||||
|
|||||||
Reference in New Issue
Block a user