pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDB Performance
8+ messages / 7 participants
[nested] [flat]
* DB Performance
@ 2002-11-01 17:24 Gary DeSorbo <gdesorbo@pro-unlimited.com>
2002-11-02 15:44 ` Re: DB Performance Marc Mitchell <marcm@eisolution.com>
0 siblings, 1 reply; 8+ messages in thread
From: Gary DeSorbo @ 2002-11-01 17:24 UTC (permalink / raw)
To: pgsql-admin
I need to find a way to increase performance on my server.
We are currently using postgres as a back-end to our web-based corporate
wide application. The application is used for everything from collecting
large amount of data, updating current data and creating large reports based
on this data. At this point we have about 3000 users on the system and this
is going to grow rapidly.
We are running apache, mod-perl, sendmail, and postgres on our server. The
machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid
drives.
I have set the shared memory on the machine to 512MB.
Postgres is configured as follows:
sort_mem = 128672
shared_buffers = 60800
fsync = false
We will be purchasing new machines to split off the web server from the
database server.
What else can I do to help performance?
Will a beowulf cluster help to increase performance?
Any suggestions would be greatly appreciated.
Thanks,
Gary
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: DB Performance
2002-11-01 17:24 DB Performance Gary DeSorbo <gdesorbo@pro-unlimited.com>
@ 2002-11-02 15:44 ` Marc Mitchell <marcm@eisolution.com>
0 siblings, 0 replies; 8+ messages in thread
From: Marc Mitchell @ 2002-11-02 15:44 UTC (permalink / raw)
To: Gary DeSorbo <gdesorbo@pro-unlimited.com>; pgsql-admin
This may be low hanging fruit but...
1) Get your WAL files onto their own disk. This is fairly easy to do and
has had very good payback for us.
2) Use pgmonitor to observe activity, identify long running queries, and
assess indexing opportunities.
3) Keep those daily vacuum/analyze going.
Hope this helps.
Marc Mitchell - Senior Application Architect
Enterprise Information Solutions, Inc.
Downers Grove, IL 60515
marcm@eisolution.com
----- Original Message -----
From: "Gary DeSorbo" <gdesorbo@pro-unlimited.com>
To: <pgsql-admin@postgresql.org>
Sent: Friday, November 01, 2002 11:24 AM
Subject: [ADMIN] DB Performance
> I need to find a way to increase performance on my server.
>
> We are currently using postgres as a back-end to our web-based corporate
> wide application. The application is used for everything from collecting
> large amount of data, updating current data and creating large reports
based
> on this data. At this point we have about 3000 users on the system and
this
> is going to grow rapidly.
>
>
> We are running apache, mod-perl, sendmail, and postgres on our server.
The
> machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid
> drives.
>
> I have set the shared memory on the machine to 512MB.
>
> Postgres is configured as follows:
>
> sort_mem = 128672
> shared_buffers = 60800
> fsync = false
>
>
> We will be purchasing new machines to split off the web server from the
> database server.
>
> What else can I do to help performance?
> Will a beowulf cluster help to increase performance?
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
>
> Gary
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
^ permalink raw reply [nested|flat] 8+ messages in thread
* DB Performance
@ 2002-11-01 17:29 Gary DeSorbo <gdesorbo@pro-unlimited.com>
2002-11-01 18:53 ` Re: DB Performance Steve Wolfe <nw@codon.com>
0 siblings, 1 reply; 8+ messages in thread
From: Gary DeSorbo @ 2002-11-01 17:29 UTC (permalink / raw)
To: pgsql-admin
To: pgsql-admin@postgresql.org
From: Gary DeSorbo <isasitis@uchicago.edu>
Subject: DB Performance
Cc:
Bcc:
X-Attachments:
I need to find a way to increase performance on my server.
We are currently using postgres as a back-end to our web-based corporate
wide application. The application is used for everything from collecting
large amount of data, updating current data and creating large reports based
on this data. At this point we have about 3000 users on the system and this
is going to grow rapidly.
We are running apache, mod-perl, sendmail, and postgres on our server. The
machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid
drives.
I have set the shared memory on the machine to 512MB.
Postgres is configured as follows:
sort_mem = 128672
shared_buffers = 60800
fsync = false
We will be purchasing new machines to split off the web server from the
database server.
What else can I do to help performance?
Will a beowulf cluster help to increase performance?
Any suggestions would be greatly appreciated.
Thanks,
Gary
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: DB Performance
2002-11-01 17:29 DB Performance Gary DeSorbo <gdesorbo@pro-unlimited.com>
@ 2002-11-01 18:53 ` Steve Wolfe <nw@codon.com>
0 siblings, 0 replies; 8+ messages in thread
From: Steve Wolfe @ 2002-11-01 18:53 UTC (permalink / raw)
To: pgsql-admin
> I need to find a way to increase performance on my server.
> We are running apache, mod-perl, sendmail, and postgres on our server.
The
> machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid
> drives.
> What else can I do to help performance?
> Will a beowulf cluster help to increase performance?
Moving the web serving off of the DB machine will probably help, but
there's a chance you'll need more horsepower still. There are several
things that could be your bottleneck - CPU power, I/O, etc.. When your DB
machine is under heavy load, is the CPU utilized completely? If not, then
you may very well be running into I/O problems between the memory and the
bus.
Remember that in a dual P3 setup (this is a P3, right?), you've got a
133 MHz memory and front-side bus, but both processers are fighting for
that, giving each one an effective 66 MHz. That's not very much. Moving
to an architecture with more bandwidth would probably improve things
significantly. In our case, moving from a quad Xeon 700 to a dual Athlon
MP2000+ dropped our system loads in *half*. That's attributable not only
to the increase in CPU power, but also to the doubling of the FSB/memory
bandwidth. I've often wondered how a P4 system, with the 400 MHz or 566
MHz FSB would work as a database server, but haven't had the chance to
play with any.
After all of the hardware advice, you could also do some profiling of
your queries, and try and optimize them better. I've seen very simple
optimizations drop query costs by a factor of nearly 100 before - and if
those types of queries are being executed very often, that can add up to a
very large increase in performance.
You could also look into connection pooling. In our environment, which
may be similar to yours, we make a very large number of database
connections throughout the day. Some are for big, nasty reporting-type
queries, many are for small, fairly trivial queries. In rudimentary
tests, connection pooling increased our throughput by anywhere from 50% to
600%.
steve
^ permalink raw reply [nested|flat] 8+ messages in thread
* DB Performance
@ 2002-11-01 17:56 Gary DeSorbo <isasitis@uchicago.edu>
2002-11-01 18:04 ` Re: DB Performance Tom Lane <tgl@sss.pgh.pa.us>
2002-11-01 18:09 ` Re: DB Performance mallah@trade-india.com
2002-11-01 23:07 ` Re: DB Performance Vincent Janelle <random@goblinstudios.com>
0 siblings, 3 replies; 8+ messages in thread
From: Gary DeSorbo @ 2002-11-01 17:56 UTC (permalink / raw)
To: pgsql-admin
I need to find a way to increase performance on my server.
We are currently using postgres as a back-end to our web-based
corporate wide application. The application is used for everything
from collecting large amount of data, updating current data and
creating large reports based on this data. At this point we have
about 3000 users on the system and this is going to grow rapidly.
We are running apache, mod-perl, sendmail, and postgres on our
server. The machine is a dual 900Mhz processor with 2 gigs of ram,
and fast 10k raid drives.
I have set the shared memory on the machine to 512MB.
Postgres is configured as follows:
sort_mem = 128672
shared_buffers = 60800
fsync = false
We will be purchasing new machines to split off the web server from
the database server.
What else can I do to help performance?
Will a beowulf cluster help to increase performance?
Any suggestions would be greatly appreciated.
Thanks,
Gary
Gary DeSorbo
isasitis@uchicago.edu
Cell: 415.606.3857
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: DB Performance
2002-11-01 17:56 DB Performance Gary DeSorbo <isasitis@uchicago.edu>
@ 2002-11-01 18:04 ` Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 0 replies; 8+ messages in thread
From: Tom Lane @ 2002-11-01 18:04 UTC (permalink / raw)
To: Gary DeSorbo <isasitis@uchicago.edu>; +Cc: pgsql-admin
Gary DeSorbo <isasitis@uchicago.edu> writes:
> Postgres is configured as follows:
> sort_mem = 128672
> shared_buffers = 60800
> fsync = false
Yipes. Back off that sort_mem setting --- that's 128M *per sort*,
which will undoubtedly run you out of memory (or at least into serious
swapping) as soon as several processes try to do concurrent sorts.
Something in the vicinity of 5 or 10 meg is probably more reasonable.
If you have multiple drives consider relocating the WAL (pg_xlog/)
onto a different drive, preferably one that normally doesn't touch
anything but WAL.
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: DB Performance
2002-11-01 17:56 DB Performance Gary DeSorbo <isasitis@uchicago.edu>
@ 2002-11-01 18:09 ` mallah@trade-india.com
2 siblings, 0 replies; 8+ messages in thread
From: mallah@trade-india.com @ 2002-11-01 18:09 UTC (permalink / raw)
To: isasitis@uchicago.edu; +Cc: pgsql-admin
The first step definitely would have to split of the DB server.
Secondly u shud check the application part, is it some specific
queries that take too much time? in that case consider optimising
the queries.
to identify the slow queries you could use pg_stat_activity view
for log the time of various queries.
Also make sure that regualr mantainece task like VACUUM ANALYZE are
run on periodic basis.
Lastly you could pump in lots of RAM , SCSI RAID5 and Xeons ;-)
into the new m/c
Also such question shud be asked in performance list .
Regds
Mallah.
> I need to find a way to increase performance on my server.
>
> We are currently using postgres as a back-end to our web-based
> corporate wide application. The application is used for everything from collecting large
> amount of data, updating current data and
> creating large reports based on this data. At this point we have
> about 3000 users on the system and this is going to grow rapidly.
>
>
> We are running apache, mod-perl, sendmail, and postgres on our
> server. The machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid drives.
>
> I have set the shared memory on the machine to 512MB.
>
> Postgres is configured as follows:
>
> sort_mem = 128672
> shared_buffers = 60800
> fsync = false
>
>
> We will be purchasing new machines to split off the web server from the database server.
>
> What else can I do to help performance?
> Will a beowulf cluster help to increase performance?
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
>
> Gary
> Gary DeSorbo
> isasitis@uchicago.edu
> Cell: 415.606.3857
>
> ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and
> unsubscribe commands go to majordomo@postgresql.org
-----------------------------------------
Get your free web based email at trade-india.com.
"India's Leading B2B eMarketplace.!"
http://www.trade-india.com/
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: DB Performance
2002-11-01 17:56 DB Performance Gary DeSorbo <isasitis@uchicago.edu>
@ 2002-11-01 23:07 ` Vincent Janelle <random@goblinstudios.com>
2 siblings, 0 replies; 8+ messages in thread
From: Vincent Janelle @ 2002-11-01 23:07 UTC (permalink / raw)
To: Gary DeSorbo <isasitis@uchicago.edu>; +Cc: pgsql-admin
also check for application logic that loops when you could retrieve a
single result with a group by statement, perform nightly
maintaince/recreation of indexes, and vacuums.
a beowulf cluster will not help with postgres due to the use of shared
memory.
checking the logs to see that you're not recycling wal files too often
is also useful.
On Fri, 1 Nov 2002 09:56:09 -0800
Gary DeSorbo <isasitis@uchicago.edu> wrote:
> I need to find a way to increase performance on my server.
>
> We are currently using postgres as a back-end to our web-based
> corporate wide application. The application is used for everything
> from collecting large amount of data, updating current data and
> creating large reports based on this data. At this point we have
> about 3000 users on the system and this is going to grow rapidly.
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2002-11-02 15:44 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-01 17:24 DB Performance Gary DeSorbo <gdesorbo@pro-unlimited.com>
2002-11-02 15:44 ` Marc Mitchell <marcm@eisolution.com>
2002-11-01 17:29 DB Performance Gary DeSorbo <gdesorbo@pro-unlimited.com>
2002-11-01 18:53 ` Steve Wolfe <nw@codon.com>
2002-11-01 17:56 DB Performance Gary DeSorbo <isasitis@uchicago.edu>
2002-11-01 18:04 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-11-01 18:09 ` mallah@trade-india.com
2002-11-01 23:07 ` Vincent Janelle <random@goblinstudios.com>
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