pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
tuning on ec2
3+ messages / 3 participants
[nested] [flat]

* tuning on ec2
@ 2011-04-26 15:15 Joel Reymont <joelr1@gmail.com>
  2011-05-12 03:38 ` Re: tuning on ec2 Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Joel Reymont @ 2011-04-26 15:15 UTC (permalink / raw)
  To: pgsql-performance

I'm running pgsql on an m1.large EC2 instance with 7.5gb available memory. 

The free command shows 7gb of free+cached. My understand from the docs is that I should dedicate 1.75gb to shared_buffers (25%) and set effective_cache_size to 7gb. 

Is this correct? I'm running 64-bit Ubuntu 10.10, e.g. 

Linux ... 2.6.35-28-virtual #50-Ubuntu SMP Fri Mar 18 19:16:26 UTC 2011 x86_64 GNU/Linux

	Thanks, Joel

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: tuning on ec2
  2011-04-26 15:15 tuning on ec2 Joel Reymont <joelr1@gmail.com>
@ 2011-05-12 03:38 ` Robert Haas <robertmhaas@gmail.com>
  2011-05-13 00:10   ` Re: tuning on ec2 Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Robert Haas @ 2011-05-12 03:38 UTC (permalink / raw)
  To: Joel Reymont <joelr1@gmail.com>; +Cc: pgsql-performance

On Tue, Apr 26, 2011 at 11:15 AM, Joel Reymont <joelr1@gmail.com> wrote:
> I'm running pgsql on an m1.large EC2 instance with 7.5gb available memory.
>
> The free command shows 7gb of free+cached. My understand from the docs is that I should dedicate 1.75gb to shared_buffers (25%) and set effective_cache_size to 7gb.

Sounds like a reasonable starting point.  You could certainly fiddle
around a bit - especially with shared_buffers - to see if some other
setting works better, but that should be in the ballpark.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: tuning on ec2
  2011-04-26 15:15 tuning on ec2 Joel Reymont <joelr1@gmail.com>
  2011-05-12 03:38 ` Re: tuning on ec2 Robert Haas <robertmhaas@gmail.com>
@ 2011-05-13 00:10   ` Josh Berkus <josh@agliodbs.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Josh Berkus @ 2011-05-13 00:10 UTC (permalink / raw)
  To: pgsql-performance


> Sounds like a reasonable starting point.  You could certainly fiddle
> around a bit - especially with shared_buffers - to see if some other
> setting works better, but that should be in the ballpark.

I tend to set it a bit higher on EC2 to discourage the VM from
overcommitting memory I need.  So, I'd do 2.5GB for that one.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-05-13 00:10 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-04-26 15:15 tuning on ec2 Joel Reymont <joelr1@gmail.com>
2011-05-12 03:38 ` Robert Haas <robertmhaas@gmail.com>
2011-05-13 00:10   ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox