pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: Query using SeqScan instead of IndexScan
Date: Sun, 2 Apr 2006 15:30:55 -0700
Message-ID: <200604021530.55251.josh@agliodbs.com> (raw)
In-Reply-To: <DFA31453-E99A-4BB9-80C7-520E0C72CAFA@clickspace.com>
References: <2F1712F1-E5E2-455E-A291-06F300A66549@clickspace.com>
	<200603292118.50033.josh@agliodbs.com>
	<DFA31453-E99A-4BB9-80C7-520E0C72CAFA@clickspace.com>

Brendan,

> But just as a follow up question to your #1 suggestion, I have 8 GB
> of ram in my production server. You're saying to set the
> effective_cache_size then to 5 GB roughly? Somewhere around 655360?
> Currently it is set to 65535. Is that something that's OS dependent?
> I'm not sure how much memory my server sets aside for disk caching.

Yes, about.  It's really a judgement call; you're looking for the approximate 
combined RAM available for disk caching and shared mem.  However, this is 
just used as a way of estimating the probability that the data you want is 
cached in memory, so you're just trying to be order-of-magnitude accurate, 
not to-the-MB accurate.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (18+ messages)  latest in thread

Message-ID: <200604021530.55251.josh@agliodbs.com>
Permalink:  ../200604021530.55251.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200604021530.55251.josh@agliodbs.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: josh@agliodbs.com
  Subject: Re: Query using SeqScan instead of IndexScan
  In-Reply-To: <200604021530.55251.josh@agliodbs.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