pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Ron Peacetree <rjpeace@earthlink.net>
Cc: PostgreSQL <martin@portant.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How much memory?
Date: Thu, 27 Oct 2005 17:55:17 -0500
Message-ID: <20051027225517.GU63747@pervasive.com> (raw)
In-Reply-To: <7021105.1130452773950.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net>
References: <7021105.1130452773950.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net>

On Thu, Oct 27, 2005 at 06:39:33PM -0400, Ron Peacetree wrote:
> Databases basically come in 4 sizes:
> 
> 1= The entire DB fits into memory.
> 2= The performance critical table(s) fit(s) into memory
> 3= The indexes of the performance critical table(s) fit into memory.
> 4= Neither the performance critical tables nor their indexes fit into memory.
> 
> Performance decreases (exponentially), and development + maintenance cost/difficulty/pain increases (exponentially), as you go down the list.
> 
> While it is often not possible to be in class "1" above, do everything you can to be in at least class "3" and do everything you can to avoid class "4".
> 
> At ~$75-$150 per GB as of this post, RAM is the cheapest investment you can make in a high perfomance, low hassle DBMS.  IWill's and Tyan's 16 DIMM slot mainboards are worth every penny.

And note that your next investment after RAM should be better disk IO.
More CPUs *generally* don't buy you much (if anything). My rule of
thumb: the only time your database should be CPU-bound is if you've got
a bad design*.

*NOTE: before everyone goes off about query parallelism and big
in-memory sorts and what-not, keep in mind I said "rule of thumb". :)
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (4+ messages)  latest in thread

Message-ID: <20051027225517.GU63747@pervasive.com>
Permalink:  ../20051027225517.GU63747@pervasive.com/
Also on:    postgresql.org/message-id/20051027225517.GU63747@pervasive.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: jnasby@pervasive.com, rjpeace@earthlink.net, martin@portant.com
  Subject: Re: How much memory?
  In-Reply-To: <20051027225517.GU63747@pervasive.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