Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6309D64FCEF for ; Thu, 4 Sep 2008 17:48:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40277-05 for ; Thu, 4 Sep 2008 17:48:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by postgresql.org (Postfix) with ESMTP id 654E264FCEB for ; Thu, 4 Sep 2008 17:48:30 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so154730rvf.43 for ; Thu, 04 Sep 2008 13:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=dX/D2Fomr1pa/Uzw3gglyoVeumKXfpA2/vEr1j/94lM=; b=LhnNiwIiI73uMLxDx7V4eGn9doh42Xk9dXUpnK4el7sZoCv6HAkvD9g5QntQnTQhK3 ciY10SHzeFEItUokgD5IS5Q1leMyfJVib6kN3BWLYYvZV3ONpT7Gu1/uav+Jg72VFkJu POXnhysWQ+UiiPGgVerSyZHo7ox0w1iA3avjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gmB8+Qs4saA8AO9lgOGHdPbktbmNMmoSEYAgkMtlQeXQE0I/+Eg0kS7+6nVVYhHMFr Nhy/0+ncihZIq5t6qKOgsLhoNfQwhewp4Wy+JJ6rSWPaY5M49ucEs4eDCDqKEWC5UyXU wxl7o8JRceOEyfSJ3wpqxxT0zhO46TykrdhcE= Received: by 10.141.198.9 with SMTP id a9mr6008184rvq.238.1220561309029; Thu, 04 Sep 2008 13:48:29 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Thu, 4 Sep 2008 13:48:28 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 14:48:28 -0600 From: "Scott Marlowe" To: Ulrich Subject: Re: More shared_buffers instead of effective_cache_size? Cc: pgsql-performance@postgresql.org In-Reply-To: <48C03E9D.60508@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C035E2.3070407@gmx.net> <48C0395C.4000806@gmx.net> <48C03E9D.60508@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/66 X-Sequence-Number: 31379 On Thu, Sep 4, 2008 at 2:01 PM, Ulrich wrote: > Scott Marlowe wrote: >> >> On Thu, Sep 4, 2008 at 1:39 PM, Ulrich 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.