Skip to content

Commit

Permalink
Adjusting the shared buffer space.
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Mar 26, 2009
1 parent 9da8c44 commit 3d24d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbooks/postgresql/attributes/postgresql.rb
Expand Up @@ -21,8 +21,8 @@
postgresql['postgresql.conf'][:port] = 5432

# Optimize'able stuff
postgresql[:shared_buffer_space] = (bytes * 0.10).to_i #10% of the total RAM
postgresql['postgresql.conf'][:shared_buffers] = (mbs * 0.10).to_i #100% of the buffer space
postgresql[:shared_buffer_space] = (bytes * 0.11).to_i #11% of the total RAM
postgresql['postgresql.conf'][:shared_buffers] = (mbs * 0.10).to_i #91% of the buffer space
postgresql['postgresql.conf'][:effective_cache_size] = (mbs * 0.75).to_i #75% of the total RAM

postgresql['postgresql.conf'][:maintenance_work_mem] = 384 #384MB
Expand Down

0 comments on commit 3d24d3c

Please sign in to comment.