pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Michael Riess <mlriess@gmx.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: 15,000 tables - next step
Date: Sat, 03 Dec 2005 14:32:21 -0500
Message-ID: <4391F2C5.9040009@Yahoo.com> (raw)
In-Reply-To: <dmshs4$2blb$1@news.hub.org>
References: <dmqjou$2a10$1@news.hub.org>
	<4391BF0F.9000208@Yahoo.com>
	<dmsgke$24so$1@news.hub.org>
	<20051203162642.GA29022@surnet.cl>
	<dmshs4$2blb$1@news.hub.org>

On 12/3/2005 11:41 AM, Michael Riess wrote:

> Alvaro Herrera schrieb:
>> Michael Riess wrote:
>> 
>>> Shared memory ... I currently use 1500 buffers for 50 connections, and 
>>> performance really suffered when I used 3000 buffers. The problem is 
>>> that it is a 1GB machine, and Apache + Tomcat need about 400MB.
>> 
>> Well, I'd think that's were your problem is.  Not only you have a
>> (relatively speaking) small server -- you also share it with other
>> very-memory-hungry services!  That's not a situation I'd like to be in.
>> Try putting Apache and Tomcat elsewhere, and leave the bulk of the 1GB
>> to Postgres. 
> 
> No can do. I can try to switch to a 2GB machine, but I will not use 
> several machines. Not for a 5GB database. ;-)

What version of PostgreSQL are we talking about? If it is anything older 
than 8.0, you should upgrade at least to that. With 8.0 or better try 
20000 shared buffers or more. It is well possible that going from 1500 
to 3000 buffers made things worse. Your buffer cache can't even hold the 
system catalog in shared memory. If those 50 backends serve all those 
500 apps at the same time, they suffer from constant catalog cache 
misses and don't find the entries in the shared buffers either.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



view thread (10+ messages)  latest in thread

Message-ID: <4391F2C5.9040009@Yahoo.com>
Permalink:  ../4391F2C5.9040009@Yahoo.com/
Also on:    postgresql.org/message-id/4391F2C5.9040009@Yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: JanWieck@Yahoo.com, mlriess@gmx.de
  Subject: Re: 15,000 tables - next step
  In-Reply-To: <4391F2C5.9040009@Yahoo.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