pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: xbdelacour@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Large database help
Date: Mon, 23 Apr 2001 00:46:46 +0200
Message-ID: <20010423004646.A4724@vestdata.no> (raw)
In-Reply-To: <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192>
References: <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192>

On Sun, Apr 22, 2001 at 05:12:20PM -0400, xbdelacour@yahoo.com wrote:
> My problem is this: during the query process the hard drive is being tagged 
> excessively, while the cpu's are idling at 50% (numbers from Linux command: 
> top), and this is bringing down the speed pretty dramatically since the 
> process is waiting on the hard disk. How do I get the database to be 
> completely resident in memory such that selects don't cause hdd activity? 
> How do I pin how exactly why the hard disk is being accessed?

50% idle on a 2 CPU system mean one CPU is busy and one is idle - as
expected if you run a single CPU-intensive job.

> I am setting 'echo 402653184 >/proc/sys/kernel/shmmax', which is being 
> reflected in top. I also specify '-B 48000' when starting postmaster. My 
> test DB is only 86MB, so in theory the disk has no business being active 
> once the data is read into memory unless I perform a write operation.. What 
> am I missing?

What does top say?
How much memory do each of your postgres processes take, and how much of
it is shared?
Is there any free memory?


-- 
Ragnar Kjørstad



view thread (17+ messages)  latest in thread

Message-ID: <20010423004646.A4724@vestdata.no>
Permalink:  ../20010423004646.A4724@vestdata.no/
Also on:    postgresql.org/message-id/20010423004646.A4724@vestdata.no

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: postgres@ragnark.vestdata.no, xbdelacour@yahoo.com
  Subject: Re: Large database help
  In-Reply-To: <20010423004646.A4724@vestdata.no>
  References: <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192> <20010423004646.A4724@vestdata.no>

* 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