pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Miernik <public@public.miernik.name>
To: pgsql-performance@postgresql.org
Subject: how to fix problem then when two queries run at the same time, it takes longer to complete then if run in sequence
Date: Wed, 23 Jul 2008 17:21:12 +0200
Message-ID: <20080723152112.30A4.0.NOFFLE@turbacz.local> (raw)

I have a PostgreSQL database on a very low-resource Xen virtual machine,
48 MB RAM. When two queries run at the same time, it takes longer to
complete then if run in sequence. Is there perhaps a way to install
something like a query sequencer, which would process queries in a FIFO
manner, one at a time, even if a new query comes before the last one
running is finished, it would not give the new query to the server
before the one running now finishes? That would greatly improve
performance.

Any tips in general for running PostgreSQL on such low-resource machine?

I have:

shared_buffers = 5MB
work_mem = 1024kB

are these good values, or could perhaps changing something improve it a
bit? Any other parameters to look at?

-- 
Miernik
http://miernik.name/




view thread (18+ messages)  latest in thread

Message-ID: <20080723152112.30A4.0.NOFFLE@turbacz.local>
Permalink:  ../20080723152112.30A4.0.NOFFLE@turbacz.local/
Also on:    postgresql.org/message-id/20080723152112.30A4.0.NOFFLE@turbacz.local

 · 

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-performance@postgresql.org
  Cc: public@public.miernik.name
  Subject: Re: how to fix problem then when two queries run at the same time, it takes longer to complete then if run in sequence
  In-Reply-To: <20080723152112.30A4.0.NOFFLE@turbacz.local>
  References: <20080723152112.30A4.0.NOFFLE@turbacz.local>

* 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