pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Ulrich <ulrich.mierendorff@gmx.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: More shared_buffers instead of effective_cache_size?
Date: Thu, 4 Sep 2008 14:48:28 -0600
Message-ID: <dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com> (raw)
In-Reply-To: <48C03E9D.60508@gmx.net>
References: <48C035E2.3070407@gmx.net>
	<dcc563d10809041230h751129c4o93d68c083b8c72e9@mail.gmail.com>
	<48C0395C.4000806@gmx.net>
	<dcc563d10809041249w5ff1ed59pd8964da5e3d605e7@mail.gmail.com>
	<48C03E9D.60508@gmx.net>

On Thu, Sep 4, 2008 at 2:01 PM, Ulrich <ulrich.mierendorff@gmx.net> wrote:
> Scott Marlowe wrote:
>>
>> On Thu, Sep 4, 2008 at 1:39 PM, Ulrich <ulrich.mierendorff@gmx.net> wrote:
>>
>>>>
>>>> I wouldn't set shared_buffers that high
>>>> just because things like vacuum and sorts need memory too
>>>>
>>>
>>> Okay, I understand that vacuum uses memory, but I thought sorts are done
>>> in
>>> work_mem? I am only sorting the result of one query which will never
>>> return
>>> more than 500 rows.
>>>
>>
>> You can probably play with larger shared memory, but I'm betting that
>> the fact that you're running under a VM is gonna weigh eveything down
>> a great deal, to the point that you're tuning is going to have minimal
>> effect.
>>
>
> Hmm... Why do you think so? Is there a reason for it or do other people have
> problems with virtual servers and databases?
> I have reserved cpu power and reserved ram (okay, not much, but it is
> reserved ;-) ), the only thing I dont have is reserved file-cache.

Well, Databases tend to be IO bound, and VMs don't tend to focus on IO
performance as much as CPU/Memory performance.  Also, things like
shared memory likely don't get as much attention in a VM either.  Just
guessing, I haven't tested a lot of VMs.



view thread (6+ messages)

Message-ID: <dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com>
Permalink:  ../dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: scott.marlowe@gmail.com, ulrich.mierendorff@gmx.net
  Subject: Re: More shared_buffers instead of effective_cache_size?
  In-Reply-To: <dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com>
  References: <48C035E2.3070407@gmx.net> <dcc563d10809041230h751129c4o93d68c083b8c72e9@mail.gmail.com> <48C0395C.4000806@gmx.net> <dcc563d10809041249w5ff1ed59pd8964da5e3d605e7@mail.gmail.com> <48C03E9D.60508@gmx.net> <dcc563d10809041348y1866c84bn5b2f687cc0e1f5e7@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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