pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres & large tables on average machine
6+ messages / 5 participants
[nested] [flat]
* Postgres & large tables on average machine
@ 2002-03-29 18:37 Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:42 ` Re: Postgres & large tables on average machine Peter Eisentraut <peter_e@gmx.net>
2002-03-29 18:45 ` Re: Postgres & large tables on average machine Nigel J. Andrews <nandrews@investsystems.co.uk>
0 siblings, 2 replies; 6+ messages in thread
From: Nicholay P. Chuprynin @ 2002-03-29 18:37 UTC (permalink / raw)
To: pgsql-admin
Hello, All!
Resently I had to create and manage the (relatively) large table.
In the mean time it's about 8 million rows, and surely will grow above
this size.
The problem is that queries takes absolutely not acceptable time.
Database located on average Celeron 400 machine with 128 Mb of RAM and
UDMA 33 capable IDE drive.
I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
My question is what could be done in order to improve the performance?
I mean, is that normal behavior for Postgres on such computer or I
encounter a misconfiguration?
Nicholay
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres & large tables on average machine
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
@ 2002-03-29 18:42 ` Peter Eisentraut <peter_e@gmx.net>
2002-03-30 00:58 ` Re: Postgres & large tables on average machine Fred Moyer <fred@digicamp.com>
1 sibling, 1 reply; 6+ messages in thread
From: Peter Eisentraut @ 2002-03-29 18:42 UTC (permalink / raw)
To: Nicholay P. Chuprynin <kolyan@infoport.uz>; +Cc: pgsql-admin
Nicholay P. Chuprynin writes:
> Resently I had to create and manage the (relatively) large table.
> In the mean time it's about 8 million rows, and surely will grow above
> this size.
> The problem is that queries takes absolutely not acceptable time.
> Database located on average Celeron 400 machine with 128 Mb of RAM and
> UDMA 33 capable IDE drive.
> I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
> My question is what could be done in order to improve the performance?
> I mean, is that normal behavior for Postgres on such computer or I
> encounter a misconfiguration?
It is perfectly normal for queries to take an absolutely unacceptable
amount of time, but without providing any sort of detail about the
involved schema and data it's impossible to figure out if the performance
could be improved.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres & large tables on average machine
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:42 ` Re: Postgres & large tables on average machine Peter Eisentraut <peter_e@gmx.net>
@ 2002-03-30 00:58 ` Fred Moyer <fred@digicamp.com>
2002-03-30 01:24 ` Re: Postgres & large tables on average machine Jeremy Buchmann <jeremy@wellsgaming.com>
0 siblings, 1 reply; 6+ messages in thread
From: Fred Moyer @ 2002-03-30 00:58 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; Nicholay P. Chuprynin <kolyan@infoport.uz>; +Cc: pgsql-admin
Your UDMA 33 bus will limit disk reads to 33 Mbytes/sec so there is your
first bottleneck. Get a 66 mhz PCI ide adapter (Promise is cheap) and that
will increase your disk speed dramatically.
Also you won't be able to do much with 128 Mb of ram, put in as much as you
can. That box is likely 66 mhz front side bus so that will be a bottleneck
once you max out the ram.
If you are planning on that table growing you will need a bigger box with
scsi/raid and lots of ram. Biggest factor when the table gets above the
available ram though is how fast you can pipe data though the processor from
the disk. Get something like a dual athlon motherboard that is a big front
side bus and use a 64 bit, 66 mhz scsi raid controller.
On the other hand, if you don't want to go big then at least get an PCI IDE
controller and put another 384M ram in - it will make a big difference.
Don't forget to (man) hdparm to maximize your I/O.
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Peter Eisentraut
Sent: Friday, March 29, 2002 10:43 AM
To: Nicholay P. Chuprynin
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Postgres & large tables on average machine
Nicholay P. Chuprynin writes:
> Resently I had to create and manage the (relatively) large table.
> In the mean time it's about 8 million rows, and surely will grow above
> this size.
> The problem is that queries takes absolutely not acceptable time.
> Database located on average Celeron 400 machine with 128 Mb of RAM and
> UDMA 33 capable IDE drive.
> I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
> My question is what could be done in order to improve the performance?
> I mean, is that normal behavior for Postgres on such computer or I
> encounter a misconfiguration?
It is perfectly normal for queries to take an absolutely unacceptable
amount of time, but without providing any sort of detail about the
involved schema and data it's impossible to figure out if the performance
could be improved.
--
Peter Eisentraut peter_e@gmx.net
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres & large tables on average machine
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:42 ` Re: Postgres & large tables on average machine Peter Eisentraut <peter_e@gmx.net>
2002-03-30 00:58 ` Re: Postgres & large tables on average machine Fred Moyer <fred@digicamp.com>
@ 2002-03-30 01:24 ` Jeremy Buchmann <jeremy@wellsgaming.com>
2002-03-30 10:26 ` Re: Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Buchmann @ 2002-03-30 01:24 UTC (permalink / raw)
To: Nicholay P. Chuprynin <kolyan@infoport.uz>; +Cc: pgsql-admin
Fred Moyer wrote:
> Your UDMA 33 bus will limit disk reads to 33 Mbytes/sec so there is your
> first bottleneck. Get a 66 mhz PCI ide adapter (Promise is cheap) and that
> will increase your disk speed dramatically.
> Also you won't be able to do much with 128 Mb of ram, put in as much as you
> can. That box is likely 66 mhz front side bus so that will be a bottleneck
> once you max out the ram.
>
[snip]
>
>>Resently I had to create and manage the (relatively) large table.
>>In the mean time it's about 8 million rows, and surely will grow above
>>this size.
>>The problem is that queries takes absolutely not acceptable time.
>>Database located on average Celeron 400 machine with 128 Mb of RAM and
>>UDMA 33 capable IDE drive.
>>I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
>>My question is what could be done in order to improve the performance?
>>I mean, is that normal behavior for Postgres on such computer or I
>>encounter a misconfiguration?
Also, the Celeron processor is cache-starved. If you can switch it out
for a P3 at even the same clock speed, it'd be worth it. A while back,
someone posted benchmarks where he just changed the processor from a
Celeron to a P3 of the same clock speed and the P3 was twice as fast.
Databases are I/O bound. Anything you can stuff into cache is worth it.
This is why lots of memory, big disk caches, disk controller caches, and
processor caches help so much.
--Jeremy
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres & large tables on average machine
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:42 ` Re: Postgres & large tables on average machine Peter Eisentraut <peter_e@gmx.net>
2002-03-30 00:58 ` Re: Postgres & large tables on average machine Fred Moyer <fred@digicamp.com>
2002-03-30 01:24 ` Re: Postgres & large tables on average machine Jeremy Buchmann <jeremy@wellsgaming.com>
@ 2002-03-30 10:26 ` Nicholay P. Chuprynin <kolyan@infoport.uz>
0 siblings, 0 replies; 6+ messages in thread
From: Nicholay P. Chuprynin @ 2002-03-30 10:26 UTC (permalink / raw)
To: pgsql-admin
Thanks a lot!
Although I wasn't clear enough in my questions I got pretty informative
answers.
Now I see, that I need faster hardware or to rethink the whole problem,
which is somewhat cheaper and much more interesting.
Thanks again for your answers.
Nicholay
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres & large tables on average machine
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
@ 2002-03-29 18:45 ` Nigel J. Andrews <nandrews@investsystems.co.uk>
1 sibling, 0 replies; 6+ messages in thread
From: Nigel J. Andrews @ 2002-03-29 18:45 UTC (permalink / raw)
To: pgsql-admin
On Fri, 29 Mar 2002, Nicholay P. Chuprynin wrote:
>
> Hello, All!
> Resently I had to create and manage the (relatively) large table.
> In the mean time it's about 8 million rows, and surely will grow above
> this size.
> The problem is that queries takes absolutely not acceptable time.
> Database located on average Celeron 400 machine with 128 Mb of RAM and
> UDMA 33 capable IDE drive.
> I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
> My question is what could be done in order to improve the performance?
> I mean, is that normal behavior for Postgres on such computer or I
> encounter a misconfiguration?
>
> Nicholay
It all depends. We'd need more information about the DB and the query before
being able to say anything. Have you tried EXPLAINing the query?
I have a 1 million row table in a DB hosted on a 333MHz Celeron, 96MB. A full
sequential scan takes something like 30 seconds (I think) whereas queries using
an index are sub second.
--
Nigel J. Andrews
Director
---
Logictree Systems Limited
Computer Consultants
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2002-03-30 10:26 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-29 18:37 Postgres & large tables on average machine Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:42 ` Peter Eisentraut <peter_e@gmx.net>
2002-03-30 00:58 ` Fred Moyer <fred@digicamp.com>
2002-03-30 01:24 ` Jeremy Buchmann <jeremy@wellsgaming.com>
2002-03-30 10:26 ` Nicholay P. Chuprynin <kolyan@infoport.uz>
2002-03-29 18:45 ` Nigel J. Andrews <nandrews@investsystems.co.uk>
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