pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff <threshar@torgo.978.org>
To: Greg Stark <gsstark@mit.edu>
Cc: Anjan Dave <adave@vantage.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why is this system swapping?
Date: Thu, 28 Apr 2005 08:13:43 -0400
Message-ID: <2425e7a6ce717809d308bcc9591f6693@torgo.978.org> (raw)
In-Reply-To: <87r7gv3hrx.fsf@stark.xeocode.com>
References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com>
	<8764y83wg7.fsf@stark.xeocode.com>
	<cbe3ad2481e7cf5fcde552427c98f540@torgo.978.org>
	<87r7gv3hrx.fsf@stark.xeocode.com>


On Apr 27, 2005, at 7:46 PM, Greg Stark wrote:

> In fact I think it's generally superior to having a layer like pgpool 
> having
> to hand off all your database communication. Having to do an extra 
> context
> switch to handle every database communication is crazy.
>

I suppose this depends on how many machines / how much traffic you have.

In one setup I run here I get away with 32 * 4 db connections instead 
of 500 * 4. Pretty simple to see the savings on the db machine. (Yes, 
it is a "bad design" as you said where static & dynamic content are 
served from the same box. However it also saves money since I don't 
need machines sitting around serving up pixel.gif vs 
myBigApplication.cgi)

--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/




view thread (10+ messages)

Message-ID: <2425e7a6ce717809d308bcc9591f6693@torgo.978.org>
Permalink:  ../2425e7a6ce717809d308bcc9591f6693@torgo.978.org/
Also on:    postgresql.org/message-id/2425e7a6ce717809d308bcc9591f6693@torgo.978.org

 · 

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: threshar@torgo.978.org, gsstark@mit.edu, adave@vantage.com
  Subject: Re: Why is this system swapping?
  In-Reply-To: <2425e7a6ce717809d308bcc9591f6693@torgo.978.org>

* 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