| From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
|---|---|
| To: | Miernik <public(at)public(dot)miernik(dot)name> |
| Cc: | pgsql-performance(at)postgresql(dot)org |
| 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 |
| Date: | 2008-07-23 17:25:35 |
| Message-ID: | dcc563d10807231025s617c6b16neb93c6348a658cdb@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Wed, Jul 23, 2008 at 9:21 AM, Miernik <public(at)public(dot)miernik(dot)name> wrote:
> 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?
Well, you're basically working on a really limited machine there. I'd
set shared buffers up by 1 meg at a time and see if that helps. But
you're basically looking at a very narrow problem that most people
won't ever run into. Why such an incredibly limited virtual machine?
Even my cell phone came with 256 meg built in two years ago.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2008-07-23 19:30:48 | Re: how to fix problem then when two queries run at the same time, it takes longer to complete then if run in sequence |
| Previous Message | Miernik | 2008-07-23 15:21:12 | how to fix problem then when two queries run at the same time, it takes longer to complete then if run in sequence |