pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres performance slowly gets worse over a month
31+ messages / 15 participants
[nested] [flat]
* Postgres performance slowly gets worse over a month
@ 2002-07-23 17:59 Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
0 siblings, 1 reply; 31+ messages in thread
From: Robert M. Meyer @ 2002-07-23 17:59 UTC (permalink / raw)
To: pgsql-admin
I've been through the archives a lot, trying to figure this one out.
We are running Postgresql 7.2.1 on a RedHat 7.2 system with kernel
2.4.9-12smp on a two processor system. What we have noticed is that
performance slowly gets worse over the course of a month to the point
that we have to pg_dump the databases, wipe the data dir, initdb and
restore the databases. This takes as long as five hours (depending on
whether or not we remember to turn off 'fsync' during the pg_restore).
After the restore, performance is again stellar.
Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
the database. The performance will get so bad after a month that we
start to see load spikes in excess of 30. Normally, we don't see load
over 2.5 during the heaviest activity and generally less than 1.0 most
of the time.
We are using the database as part of a web application that is used
fairly intensively every day. We are using persistant connections with
the web server that lives on another machine. Apache's
MaxRequestsPerChild is set to 100 to prevent the things from growing to
insane sizes during the course of the day.
We build 7.2.1 from source using the config:
./configure --prefix=/usr/local/pgsql --enable-multibyte
Any insights would be most appreciated.
Thanks...
Bob
--
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-07-23 18:08 ` Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-24 18:30 ` Re: Postgres performance slowly gets worse over a month Chad R. Larson <clarson@eldocomp.com>
0 siblings, 2 replies; 31+ messages in thread
From: Naomi Walker @ 2002-07-23 18:08 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; pgsql-admin
>Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
>the database. The performance will get so bad after a month that we
>start to see load spikes in excess of 30. Normally, we don't see load
>over 2.5 during the heaviest activity and generally less than 1.0 most
>of the time.
Typically, performance is linked to your I/O, but my first guess in this
case has to do with your indices. As a test, next time performance gets
really rotten, drop your indicies and rebuild them. It cannot hurt, and
might just help.
The trick here is to see what is happening while it is tanking. What does
your disk configuration look like? Is it a raid or stripe where reads are
spread out among more than one controller? Do sar reports point to
anything in particular?
----------------------------------------------------------------------------
----------------------------------
Naomi Walker
Eldorado Computing, Inc
Chief Information Officer
nwalker@eldocomp.com
602-604-3100 x242
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
@ 2002-07-23 18:29 ` Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 19:43 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
1 sibling, 2 replies; 31+ messages in thread
From: Robert M. Meyer @ 2002-07-23 18:29 UTC (permalink / raw)
To: Naomi Walker <nwalker@eldocomp.com>; +Cc: pgsql-admin
Well, we're running a hardware, three disk RAID5, on an
sym53c896-0-<2,*>: FAST-20 WIDE SCSI 40.0 MB/s interface. This is a
Compaq 3500 system with a CR3500 raid controller. An md5sum of a 1.2Gig
file takes less than two minutes.
We tried rebuilding the indices but that didn't seem to help. We had an
outside consultant do the rebuild and he's not available now so I don't
know what command he ran to do it.
I've never used 'sar'. If you can believe it, I've been poking around
with Unix for the last 20 years and I've never even seen the 'man' page
for 'sar'. I probably should look into it. What flags would give me
the most information to help figger out what's going on here?
Of course the troubleshooting increment is going to be a month or more
so this will probably take some time to resolve :-)
Cheers!
Bob
On Tue, 2002-07-23 at 14:08, Naomi Walker wrote:
>
> >Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
> >the database. The performance will get so bad after a month that we
> >start to see load spikes in excess of 30. Normally, we don't see load
> >over 2.5 during the heaviest activity and generally less than 1.0 most
> >of the time.
> Typically, performance is linked to your I/O, but my first guess in this
> case has to do with your indices. As a test, next time performance gets
> really rotten, drop your indicies and rebuild them. It cannot hurt, and
> might just help.
>
> The trick here is to see what is happening while it is tanking. What does
> your disk configuration look like? Is it a raid or stripe where reads are
> spread out among more than one controller? Do sar reports point to
> anything in particular?
>
> ----------------------------------------------------------------------------
> ----------------------------------
> Naomi Walker
> Eldorado Computing, Inc
> Chief Information Officer
> nwalker@eldocomp.com
> 602-604-3100 x242
>
>
--
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-07-23 18:18 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
1 sibling, 1 reply; 31+ messages in thread
From: Marcos Garcia @ 2002-07-23 18:18 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; +Cc: pgsql-admin
I have the same problem.
My database is getting slower and slower.
I realized that the disk space used by the database is also increasing
and for me this is the reason for the bad performance.
what i have tryed:
- vacuumdb 4 times per day
- drop and create the indexes
The only solution I know is to make a dump and a restore.
In my case i can't stop my service, but i'm forced to do it.
To check that the problem wasn't in my code i made the following test:
------------------------------
AUTOCOMMIT = 1
FOR 1 to 120000{
INSERT RECORD
UPDATE RECORD
}
DELETE ALL INSERTED RECORDS
------------------------------
I have run this test program several times and after each time i have
run the vacummdb.
What i have realized is that every time i run this program the database
is growing and growing and running the vacummdb only recovers some
space.
How can this problem be solved???
Thanks,
M.P.Garcia
On Tue, 2002-07-23 at 19:29, Robert M. Meyer wrote:
> Well, we're running a hardware, three disk RAID5, on an
> sym53c896-0-<2,*>: FAST-20 WIDE SCSI 40.0 MB/s interface. This is a
> Compaq 3500 system with a CR3500 raid controller. An md5sum of a 1.2Gig
> file takes less than two minutes.
>
> We tried rebuilding the indices but that didn't seem to help. We had an
> outside consultant do the rebuild and he's not available now so I don't
> know what command he ran to do it.
>
> I've never used 'sar'. If you can believe it, I've been poking around
> with Unix for the last 20 years and I've never even seen the 'man' page
> for 'sar'. I probably should look into it. What flags would give me
> the most information to help figger out what's going on here?
>
> Of course the troubleshooting increment is going to be a month or more
> so this will probably take some time to resolve :-)
>
> Cheers!
>
> Bob
>
>
> On Tue, 2002-07-23 at 14:08, Naomi Walker wrote:
> >
> > >Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
> > >the database. The performance will get so bad after a month that we
> > >start to see load spikes in excess of 30. Normally, we don't see load
> > >over 2.5 during the heaviest activity and generally less than 1.0 most
> > >of the time.
> > Typically, performance is linked to your I/O, but my first guess in this
> > case has to do with your indices. As a test, next time performance gets
> > really rotten, drop your indicies and rebuild them. It cannot hurt, and
> > might just help.
> >
> > The trick here is to see what is happening while it is tanking. What does
> > your disk configuration look like? Is it a raid or stripe where reads are
> > spread out among more than one controller? Do sar reports point to
> > anything in particular?
> >
> > ----------------------------------------------------------------------------
> > ----------------------------------
> > Naomi Walker
> > Eldorado Computing, Inc
> > Chief Information Officer
> > nwalker@eldocomp.com
> > 602-604-3100 x242
> >
> >
> --
> Robert M. Meyer
> Sr. Network Administrator
> DigiVision Satellite Services
> 14 Lafayette Sq, Ste 410
> Buffalo, NY 14203-1904
> (716)332-1451
>
>
> ---------------------------(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
--
M.P.Garcia
PT Inovação, SA
Serviços e Redes Móveis
Rua José Ferreira Pinto Basto - 3810 Aveiro
Tel: 234 403 253 - Fax: 234 424 160
E-mail: marcos-p-garcia@ptinovacao.pt
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
@ 2002-07-23 20:45 ` Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
0 siblings, 1 reply; 31+ messages in thread
From: Michael G. Martin @ 2002-07-23 20:45 UTC (permalink / raw)
To: Marcos Garcia <marcos-p-garcia@ptinovacao.pt>; +Cc: Robert M. Meyer <rmeyer@installs.com>; pgsql-admin
Check this value in the postgresql.con file:
max_fsm_pages = 100000
I had the same problem with the db growing, index no longer being used,
despite vacuums each night. Somewhere, there is a thread on this.
Anyway, If you look at the vacuum stats each time your run vacuum, looks
to see how many pages are being updated between vacuums--i looked at the
removed x tuples in y pages value. Then, set this value to be greater
than the number of pages changed between vacuums. If more pages are
being updated between vacuums than what max_fsm_pages allows, the extra
pages won't be marked to be re-used--from what I understand. This then
results in the db growing and the optimizer starts to chose full table
scans since the db spans so many pages on the disk--at least this is
what happened in my db.
My db was growing greatly like, 10's of thousands of tuples being added
to the unused value each day. After bumping up the max_fsm_pages, my db
has grown much slower-as expected.
Do a vacuum full to get the database back to it normal size, then play
with the max_fsm_pages value to find a good value for you based on your
vacuum verbose output.
Hope that helps. It worked for me.
--Michael
Marcos Garcia wrote:
>I have the same problem.
>My database is getting slower and slower.
>
>I realized that the disk space used by the database is also increasing
>and for me this is the reason for the bad performance.
>
>what i have tryed:
>
>- vacuumdb 4 times per day
>- drop and create the indexes
>
>The only solution I know is to make a dump and a restore.
>In my case i can't stop my service, but i'm forced to do it.
>
>
>To check that the problem wasn't in my code i made the following test:
>
>------------------------------
>AUTOCOMMIT = 1
>
> FOR 1 to 120000{
>
> INSERT RECORD
> UPDATE RECORD
> }
>
> DELETE ALL INSERTED RECORDS
>------------------------------
>
>I have run this test program several times and after each time i have
>run the vacummdb.
>
>What i have realized is that every time i run this program the database
>is growing and growing and running the vacummdb only recovers some
>space.
>
>
>How can this problem be solved???
>
>
>Thanks,
>
>M.P.Garcia
>
>
>On Tue, 2002-07-23 at 19:29, Robert M. Meyer wrote:
>
>
>>Well, we're running a hardware, three disk RAID5, on an
>>sym53c896-0-<2,*>: FAST-20 WIDE SCSI 40.0 MB/s interface. This is a
>>Compaq 3500 system with a CR3500 raid controller. An md5sum of a 1.2Gig
>>file takes less than two minutes.
>>
>>We tried rebuilding the indices but that didn't seem to help. We had an
>>outside consultant do the rebuild and he's not available now so I don't
>>know what command he ran to do it.
>>
>>I've never used 'sar'. If you can believe it, I've been poking around
>>with Unix for the last 20 years and I've never even seen the 'man' page
>>for 'sar'. I probably should look into it. What flags would give me
>>the most information to help figger out what's going on here?
>>
>>Of course the troubleshooting increment is going to be a month or more
>>so this will probably take some time to resolve :-)
>>
>>Cheers!
>>
>>Bob
>>
>>
>>On Tue, 2002-07-23 at 14:08, Naomi Walker wrote:
>>
>>
>>>>Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
>>>>the database. The performance will get so bad after a month that we
>>>>start to see load spikes in excess of 30. Normally, we don't see load
>>>>over 2.5 during the heaviest activity and generally less than 1.0 most
>>>>of the time.
>>>>
>>>>
>>>Typically, performance is linked to your I/O, but my first guess in this
>>>case has to do with your indices. As a test, next time performance gets
>>>really rotten, drop your indicies and rebuild them. It cannot hurt, and
>>>might just help.
>>>
>>>The trick here is to see what is happening while it is tanking. What does
>>>your disk configuration look like? Is it a raid or stripe where reads are
>>>spread out among more than one controller? Do sar reports point to
>>>anything in particular?
>>>
>>>----------------------------------------------------------------------------
>>>----------------------------------
>>>Naomi Walker
>>>Eldorado Computing, Inc
>>>Chief Information Officer
>>>nwalker@eldocomp.com
>>>602-604-3100 x242
>>>
>>>
>>>
>>>
>>--
>>Robert M. Meyer
>>Sr. Network Administrator
>>DigiVision Satellite Services
>>14 Lafayette Sq, Ste 410
>>Buffalo, NY 14203-1904
>>(716)332-1451
>>
>>
>>---------------------------(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] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
@ 2002-07-24 11:14 ` Gaetano Mendola <mendola@bigfoot.com>
2002-07-24 14:00 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 14:04 ` Re: Postgres performance slowly gets worse over a month Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 2 replies; 31+ messages in thread
From: Gaetano Mendola @ 2002-07-24 11:14 UTC (permalink / raw)
To: Michael G. Martin <michael@vpmonline.com>; +Cc: pgsql-admin
"Michael G. Martin" <michael@vpmonline.com> wrote:
> Check this value in the postgresql.con file:
>
> max_fsm_pages = 100000
>
> I had the same problem with the db growing, index no longer being used,
> despite vacuums each night. Somewhere, there is a thread on this.
>
> Anyway, If you look at the vacuum stats each time your run vacuum, looks
> to see how many pages are being updated between vacuums--i looked at the
> removed x tuples in y pages value. Then, set this value to be greater
> than the number of pages changed between vacuums. If more pages are
> being updated between vacuums than what max_fsm_pages allows, the extra
> pages won't be marked to be re-used--from what I understand. This then
> results in the db growing and the optimizer starts to chose full table
> scans since the db spans so many pages on the disk--at least this is
> what happened in my db.
Can you explain me this line that I obatin in the log
after a vacuum analyze ?
--Relation ua_user_data_exp--
2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192,
Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen
393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356;
EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec.
I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356"
Ciao
Gaetano
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
@ 2002-07-24 14:00 ` Michael G. Martin <michael@vpmonline.com>
1 sibling, 0 replies; 31+ messages in thread
From: Michael G. Martin @ 2002-07-24 14:00 UTC (permalink / raw)
To: pgsql-admin
I believe, from a quick glance at the file vacuum.c, the first number
is the total amount of free pages the database now occupies. The second
number is how much is actually available for new tuples to be created in.
--Michael
Gaetano Mendola wrote:
>"Michael G. Martin" <michael@vpmonline.com> wrote:
>
>
>>Check this value in the postgresql.con file:
>>
>>max_fsm_pages = 100000
>>
>>I had the same problem with the db growing, index no longer being used,
>>despite vacuums each night. Somewhere, there is a thread on this.
>>
>>Anyway, If you look at the vacuum stats each time your run vacuum, looks
>>to see how many pages are being updated between vacuums--i looked at the
>>removed x tuples in y pages value. Then, set this value to be greater
>>than the number of pages changed between vacuums. If more pages are
>>being updated between vacuums than what max_fsm_pages allows, the extra
>>pages won't be marked to be re-used--from what I understand. This then
>>results in the db growing and the optimizer starts to chose full table
>>scans since the db spans so many pages on the disk--at least this is
>>what happened in my db.
>>
>>
>
>
>Can you explain me this line that I obatin in the log
>after a vacuum analyze ?
>
> --Relation ua_user_data_exp--
>2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192,
>Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen
>393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356;
>EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec.
>
>I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356"
>
>
>Ciao
>Gaetano
>
>
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
@ 2002-07-24 14:04 ` Robert Treat <xzilla@users.sourceforge.net>
2002-07-25 00:17 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
1 sibling, 1 reply; 31+ messages in thread
From: Robert Treat @ 2002-07-24 14:04 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: Michael G. Martin <michael@vpmonline.com>; pgsql-admin
This is before my morning coffee, so someone please correct me if I am
wrong, but that should be the amount of space in your table that is
available for reuse before new pages need to be added. Whether it is
actually used is determined by a combination of factors including the
amount of insert/update activity on your system and the size of your
free space map. If you want to recover all of that space, you'll need to
do a vacuum full. As it looks now you could probably start vacuuming
this table more frequently to keep this number from growing so quickly.
Robert Treat
On Wed, 2002-07-24 at 07:14, Gaetano Mendola wrote:
>
> "Michael G. Martin" <michael@vpmonline.com> wrote:
> > Check this value in the postgresql.con file:
> >
> > max_fsm_pages = 100000
> >
> > I had the same problem with the db growing, index no longer being used,
> > despite vacuums each night. Somewhere, there is a thread on this.
> >
> > Anyway, If you look at the vacuum stats each time your run vacuum, looks
> > to see how many pages are being updated between vacuums--i looked at the
> > removed x tuples in y pages value. Then, set this value to be greater
> > than the number of pages changed between vacuums. If more pages are
> > being updated between vacuums than what max_fsm_pages allows, the extra
> > pages won't be marked to be re-used--from what I understand. This then
> > results in the db growing and the optimizer starts to chose full table
> > scans since the db spans so many pages on the disk--at least this is
> > what happened in my db.
>
>
> Can you explain me this line that I obatin in the log
> after a vacuum analyze ?
>
> --Relation ua_user_data_exp--
> 2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192,
> Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen
> 393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356;
> EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec.
>
> I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356"
>
>
> Ciao
> Gaetano
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
2002-07-24 14:04 ` Re: Postgres performance slowly gets worse over a month Robert Treat <xzilla@users.sourceforge.net>
@ 2002-07-25 00:17 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-25 03:01 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-30 19:49 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
0 siblings, 2 replies; 31+ messages in thread
From: Marcos Garcia @ 2002-07-25 00:17 UTC (permalink / raw)
To: pgsql-admin
Since this conversation had started, the presented solutions for the
disk space (disk space of tables and indexes) problem were:
- reindex -> no space recovered
- frequent vacuums -> some space recovered, meanwhile the database
keeps growing
- vacuumm full -> some space recovered, meanwhile the database keeps
growing, quite similar to simple vacuum. we have also to keep in mind,
that the option "full", makes locks to the tables. Therefore, the
services around the database locks too, and with the growing of the
database the time spent for "vacumm full" increases, as well as the
downtime of the services around the database.
So, my doubts are:
- There's nothing we can do to avoid the growth of the database, only
slow down that growth.
- We, application developers that use postgresql databases have to
count with this problem.
Sorry if i'm being a little rude, but i'm in a real trouble.
Thanks in advance,
M.P.Garcia
On Wed, 2002-07-24 at 15:04, Robert Treat wrote:
> This is before my morning coffee, so someone please correct me if I am
> wrong, but that should be the amount of space in your table that is
> available for reuse before new pages need to be added. Whether it is
> actually used is determined by a combination of factors including the
> amount of insert/update activity on your system and the size of your
> free space map. If you want to recover all of that space, you'll need to
> do a vacuum full. As it looks now you could probably start vacuuming
> this table more frequently to keep this number from growing so quickly.
>
> Robert Treat
>
> On Wed, 2002-07-24 at 07:14, Gaetano Mendola wrote:
> >
> > "Michael G. Martin" <michael@vpmonline.com> wrote:
> > > Check this value in the postgresql.con file:
> > >
> > > max_fsm_pages = 100000
> > >
> > > I had the same problem with the db growing, index no longer being used,
> > > despite vacuums each night. Somewhere, there is a thread on this.
> > >
> > > Anyway, If you look at the vacuum stats each time your run vacuum, looks
> > > to see how many pages are being updated between vacuums--i looked at the
> > > removed x tuples in y pages value. Then, set this value to be greater
> > > than the number of pages changed between vacuums. If more pages are
> > > being updated between vacuums than what max_fsm_pages allows, the extra
> > > pages won't be marked to be re-used--from what I understand. This then
> > > results in the db growing and the optimizer starts to chose full table
> > > scans since the db spans so many pages on the disk--at least this is
> > > what happened in my db.
> >
> >
> > Can you explain me this line that I obatin in the log
> > after a vacuum analyze ?
> >
> > --Relation ua_user_data_exp--
> > 2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192,
> > Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen
> > 393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356;
> > EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec.
> >
> > I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356"
> >
> >
> > Ciao
> > Gaetano
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
M.P.Garcia
PT Inovação, SA
Serviços e Redes Móveis
Rua José Ferreira Pinto Basto - 3810 Aveiro
Tel: 234 403 253 - Fax: 234 424 160
E-mail: marcos-p-garcia@ptinovacao.pt
Attachments:
signature.asc (application/pgp-signature, 232B) download
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
2002-07-24 14:04 ` Re: Postgres performance slowly gets worse over a month Robert Treat <xzilla@users.sourceforge.net>
2002-07-25 00:17 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
@ 2002-07-25 03:01 ` Michael G. Martin <michael@vpmonline.com>
1 sibling, 0 replies; 31+ messages in thread
From: Michael G. Martin @ 2002-07-25 03:01 UTC (permalink / raw)
To: Marcos Garcia <marcos-p-garcia@ptinovacao.pt>; +Cc: pgsql-admin
I played with this tonight writing a small insert/update routine and
frequent vacuums. Here is what I came up with ( (PostgreSQL) 7.2.1 )
Once a table reaches a certain size, it will not auto shrink. This
behavior is common for performance reasons. The way to re-use space is
to run the vacuum which will mark deleted tuples as unused. Once your
table has unused tuples, inserts and updates will go into the unused
tuples areas before additional space is allocated. ( there may be some
additional restrictions on this--like does the new tuple fit and not
cross page boundaries--but I don't know enough to say exactly) .
In addition, max_fsm_pages has an impact on how many pages will be
available to be marked as re-usable. If you have a huge table and
changes are impacting more than the default 10,000 pages this is set to,
you will want to bump this number up. My problem was I saw my UnUsed
tuples always growing and not being re-used until I bumped this value
up. As I watched the vacuum verbose output each run, I notices more
than 10k pages were in fact changing between vacuums.
Your table will grow to an optimal size until the the amount of
inserts,updates,deletes balances out. Of course, if you insert more
than you delete, your database will always grow. But, if the number of
tuples at some point becomes fixed in the table, and you vacuum enough
in between all the inserts and updates, your table size will stop growing.
If you are vacuuming 4 times a day, yet the amount of tuples inserted
and updated exceeds the current UnUsed tuples, your table will continue
to grow. With the addition of the lazy vacuum, there should be no
problem increasing the frequency of your vacuums to accomodate the
excessive changes being done to the table. Get the changed tuples
marked unused as often as you can so as not to create a new tuple with
an update or insert.
Just how big are your tables getting? How often are you vacuuming now,
and how many tuples are marked as UnUsed and how many tuples are
changing between vacuums?
I have a large table with 20+million records which flattend out around
3.5 gigs. It only really gets updated once each day with a vacuum
following. Since I add to the table daily, i expect some growth. I
noticed the problem with this table growing to be 2x that size when the
unused tuples would not go down, but kept growing each day. Ager
changing max_fsm_pages like I mentioned above, the unused tuples stays
fairly fixed and the database only grows a little each day as expected.
Hope this helps get you out of trouble.
--Michael
Marcos Garcia wrote:
>Since this conversation had started, the presented solutions for the
>disk space (disk space of tables and indexes) problem were:
>
> - reindex -> no space recovered
>
> - frequent vacuums -> some space recovered, meanwhile the database
>keeps growing
>
> - vacuumm full -> some space recovered, meanwhile the database keeps
>growing, quite similar to simple vacuum. we have also to keep in mind,
>that the option "full", makes locks to the tables. Therefore, the
>services around the database locks too, and with the growing of the
>database the time spent for "vacumm full" increases, as well as the
>downtime of the services around the database.
>
>
>So, my doubts are:
>
> - There's nothing we can do to avoid the growth of the database, only
>slow down that growth.
>
> - We, application developers that use postgresql databases have to
>count with this problem.
>
>Sorry if i'm being a little rude, but i'm in a real trouble.
>
>Thanks in advance,
>
>
>M.P.Garcia
>
>On Wed, 2002-07-24 at 15:04, Robert Treat wrote:
>
>
>>This is before my morning coffee, so someone please correct me if I am
>>wrong, but that should be the amount of space in your table that is
>>available for reuse before new pages need to be added. Whether it is
>>actually used is determined by a combination of factors including the
>>amount of insert/update activity on your system and the size of your
>>free space map. If you want to recover all of that space, you'll need to
>>do a vacuum full. As it looks now you could probably start vacuuming
>>this table more frequently to keep this number from growing so quickly.
>>
>>Robert Treat
>>
>>On Wed, 2002-07-24 at 07:14, Gaetano Mendola wrote:
>>
>>
>>>"Michael G. Martin" <michael@vpmonline.com> wrote:
>>>
>>>
>>>>Check this value in the postgresql.con file:
>>>>
>>>>max_fsm_pages = 100000
>>>>
>>>>I had the same problem with the db growing, index no longer being used,
>>>>despite vacuums each night. Somewhere, there is a thread on this.
>>>>
>>>>Anyway, If you look at the vacuum stats each time your run vacuum, looks
>>>>to see how many pages are being updated between vacuums--i looked at the
>>>>removed x tuples in y pages value. Then, set this value to be greater
>>>>than the number of pages changed between vacuums. If more pages are
>>>>being updated between vacuums than what max_fsm_pages allows, the extra
>>>>pages won't be marked to be re-used--from what I understand. This then
>>>>results in the db growing and the optimizer starts to chose full table
>>>>scans since the db spans so many pages on the disk--at least this is
>>>>what happened in my db.
>>>>
>>>>
>>>Can you explain me this line that I obatin in the log
>>>after a vacuum analyze ?
>>>
>>> --Relation ua_user_data_exp--
>>>2002-07-21 05:00:02 [28492] DEBUG: Pages 1402: Changed 2, reaped 1192,
>>>Empty 0, New 0; Tup 4277: Vac 16207, Keep/VTL 0/0, Crash 0, UnUsed 1, MinLen
>>>393, MaxLen 680; Re-using: Free/Avail. Space 9148944/9141356;
>>>EndEmpty/Avail. Pages 0/1191. CPU 0.00s/0.03u sec.
>>>
>>>I'm wondering about "Re-using: Free/Avail. Space 9148944/9141356"
>>>
>>>
>>>Ciao
>>>Gaetano
>>>
>>>
>>>---------------------------(end of broadcast)---------------------------
>>>TIP 6: Have you searched our list archives?
>>>
>>>http://archives.postgresql.org
>>>
>>>
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 4: Don't 'kill -9' the postmaster
>>
>>
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Re: Postgres performance slowly gets worse over a month Gaetano Mendola <mendola@bigfoot.com>
2002-07-24 14:04 ` Re: Postgres performance slowly gets worse over a month Robert Treat <xzilla@users.sourceforge.net>
2002-07-25 00:17 ` Re: Postgres performance slowly gets worse over a month Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
@ 2002-07-30 19:49 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
1 sibling, 0 replies; 31+ messages in thread
From: Marcos Garcia @ 2002-07-30 19:49 UTC (permalink / raw)
To: pgsql-admin
My apologies, to all that told me that the reindex was the solution to
prevent the grouth of the database.
I had a script that i thought that would reindex my database, but wasn't
true.
I figure out ,that the grouth of my database was due to the indexes with
the following sql command:
dbname=# select relname, relpages,reltuples from pg_class order by
relpages desc limit 50;
relname | relpages | reltuples
---------------------------------+----------+-----------
sms_recv_unique_idclimsgidclien | 55800 | 39259
sms_recv_pkey | 39810 | 38948
sms_send_pkey | 22828 | 52048
The relpages * 8 Kbytes, gives =~ the disk space used by the
index/table (correct me if i'm wrong). As we can see from the query
result the disk space used by the indexes is very high.
After doing the reindex of the tables, that values droped down, as well
as the space used by the database.
Query result after reindex:
dbname=# select relname, relpages,reltuples from pg_class order by
relpages desc limit 50;
relname | relpages | reltuples
---------------------------------+----------+-----------
sms_recv_unique_idclimsgidclien | 222 | 40581
sms_recv_pkey | 174 | 40581
sms_send_pkey | 430 | 54004
As a conclusion, in databases with high turn-around the use of reindex
is imperative, combined with vacuums.
Thanks to all,
M.P.Garcia
---------------------------------------------------------------------
Do not forget to reindex the db after the delete, index's do not
manage them selves(if I remember correctly). The index will continue
to grow until it eats your file system, as it did with me.
By Marc Spitzer
---------------------------------------------------------------------
On Thu, 2002-07-25 at 01:17, Marcos Garcia wrote:
> Since this conversation had started, the presented solutions for the
> disk space (disk space of tables and indexes) problem were:
>
> - reindex -> no space recovered
>
> - frequent vacuums -> some space recovered, meanwhile the database
> keeps growing
>
> - vacuumm full -> some space recovered, meanwhile the database keeps
> growing, quite similar to simple vacuum. we have also to keep in mind,
> that the option "full", makes locks to the tables. Therefore, the
> services around the database locks too, and with the growing of the
> database the time spent for "vacumm full" increases, as well as the
> downtime of the services around the database.
>
>
> So, my doubts are:
>
> - There's nothing we can do to avoid the growth of the database, only
> slow down that growth.
>
> - We, application developers that use postgresql databases have to
> count with this problem.
>
> Sorry if i'm being a little rude, but i'm in a real trouble.
>
> Thanks in advance,
>
>
> M.P.Garcia
> `
> end
--
M.P.Garcia
PT Inovação, SA
Serviços e Redes Móveis
Rua José Ferreira Pinto Basto - 3810 Aveiro
Tel: 234 403 253 - Fax: 234 424 160
E-mail: marcos-p-garcia@ptinovacao.pt
Attachments:
signature.asc (application/pgp-signature, 231B) download
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-07-23 19:43 ` Marc Mitchell <marcm@eisolution.com>
2002-07-24 15:21 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 31+ messages in thread
From: Marc Mitchell @ 2002-07-23 19:43 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; Naomi Walker <nwalker@eldocomp.com>; +Cc: pgsql-admin
We recently ran into a similar problem with 7.1.
Let me start by saying: knowing the SQLs you are running, knowing "EXPLAIN"
and knowing pgmonitor go a LONG way in helping you identify the problem.
In our case, the problem came down to this: we had a table ("TABLE_A") with
~200,000 rows that was heavily used (1000 rows added per day). The most
common access to this table was via a foreign key of type int4 where any
select for a specific value would return normally 1 and never more than 10
rows. Obviously, there was an index on this foreign key and the index was
used (resulting in an "INDEXED SCAN") in most cases. However, the problem
was that half the rows in "TABLE_A" had no foreign key relationship and so
had this field set to zero. No one would ever do a select asking for all
rows where foreign key = 0 as that didn't make "Business sense". But,
since the database isn't aware of the business meaning of our data, the
stats gathered by the ANALYSE would think that the overall distribution of
the column for a unique value was between 2000 and 3000 rows.
Mathematically correct, but in reality not useful.
The result was that as the table grew and/or based on differences in the
sample of rows from the most recent nightly VUCUUM, the cost of an INDEX
SCAN (# of estimated rows * random_page_cost) would exceed the cost of a
straight SEQ SCAN (# of data pages in table). Thus, many applications
would start scanning the entire table. While any one scan would take 4
seconds (vs. fractions of a second using the index) and that wasn't too
bad, the result of many users doing this many times quickly made our
machine exhibit the same behavior that you describe.
Our short term fix was to turn down the value of random_page_cost.
However, as Tom Lane very rightly noted in response to a similar posting,
this is a total hack. Our goal is to switch to 7.2 in the hopes that the
"WHERE" extension to the "CREATE INDEX" command coupled with greater
control of the sample space used in statistics will be the true answer. We
also intend to look into whether setting this optional foreign key to be
nullable may effect things in 7.1 .
Overall, my point is that we were in a position where Postgres was
operating exactly as it was intended. There really wasn't any tuning to be
corrected or log file with a silver bullet message starting what to change.
It was all a matter of seeing what the load on the system was and why it
was taking as long as it was.
My advice: EXPLAIN is your friend. pgmonitor is your friend.
Of course, that's just my opinion - I could be wrong...
Marc Mitchell - Senior Technical Architect
Enterprise Information Solutions, Inc.
4910 Main Street
Downers Grove, IL 60515
marcm@eisolution.com
----- Original Message -----
From: "Robert M. Meyer" <rmeyer@installs.com>
To: "Naomi Walker" <nwalker@eldocomp.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Tuesday, July 23, 2002 1:29 PM
Subject: Re: [ADMIN] Postgres performance slowly gets worse over a month
> Well, we're running a hardware, three disk RAID5, on an
> sym53c896-0-<2,*>: FAST-20 WIDE SCSI 40.0 MB/s interface. This is a
> Compaq 3500 system with a CR3500 raid controller. An md5sum of a 1.2Gig
> file takes less than two minutes.
>
> We tried rebuilding the indices but that didn't seem to help. We had an
> outside consultant do the rebuild and he's not available now so I don't
> know what command he ran to do it.
>
> I've never used 'sar'. If you can believe it, I've been poking around
> with Unix for the last 20 years and I've never even seen the 'man' page
> for 'sar'. I probably should look into it. What flags would give me
> the most information to help figger out what's going on here?
>
> Of course the troubleshooting increment is going to be a month or more
> so this will probably take some time to resolve :-)
>
> Cheers!
>
> Bob
>
>
> On Tue, 2002-07-23 at 14:08, Naomi Walker wrote:
> >
> > >Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting
> > >the database. The performance will get so bad after a month that we
> > >start to see load spikes in excess of 30. Normally, we don't see load
> > >over 2.5 during the heaviest activity and generally less than 1.0 most
> > >of the time.
> > Typically, performance is linked to your I/O, but my first guess in
this
> > case has to do with your indices. As a test, next time performance
gets
> > really rotten, drop your indicies and rebuild them. It cannot hurt, and
> > might just help.
> >
> > The trick here is to see what is happening while it is tanking. What
does
> > your disk configuration look like? Is it a raid or stripe where reads
are
> > spread out among more than one controller? Do sar reports point to
> > anything in particular?
> >
>
> -------------------------------------------------------------------------
---
> > ----------------------------------
> > Naomi Walker
> > Eldorado Computing, Inc
> > Chief Information Officer
> > nwalker@eldocomp.com
> > 602-604-3100 x242
> >
> >
> --
> Robert M. Meyer
> Sr. Network Administrator
> DigiVision Satellite Services
> 14 Lafayette Sq, Ste 410
> Buffalo, NY 14203-1904
> (716)332-1451
>
>
> ---------------------------(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] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 19:43 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
@ 2002-07-24 15:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-07-24 18:04 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
0 siblings, 1 reply; 31+ messages in thread
From: Tom Lane @ 2002-07-24 15:21 UTC (permalink / raw)
To: Marc Mitchell <marcm@eisolution.com>; +Cc: Robert M. Meyer <rmeyer@installs.com>; Naomi Walker <nwalker@eldocomp.com>; pgsql-admin
"Marc Mitchell" <marcm@eisolution.com> writes:
> However, the problem
> was that half the rows in "TABLE_A" had no foreign key relationship and so
> had this field set to zero. No one would ever do a select asking for all
> rows where foreign key = 0 as that didn't make "Business sense". But,
> since the database isn't aware of the business meaning of our data, the
> stats gathered by the ANALYSE would think that the overall distribution of
> the column for a unique value was between 2000 and 3000 rows.
> Our short term fix was to turn down the value of random_page_cost.
> However, as Tom Lane very rightly noted in response to a similar posting,
> this is a total hack. Our goal is to switch to 7.2 in the hopes that the
> "WHERE" extension to the "CREATE INDEX" command coupled with greater
> control of the sample space used in statistics will be the true
> answer.
Actually, 7.2 should fix this without any need for messing with partial
indexes. The new statistics code will realize that zero is an outlier,
and will estimate scans for other target values differently.
regards, tom lane
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 19:43 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
2002-07-24 15:21 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-07-24 18:04 ` Marc Mitchell <marcm@eisolution.com>
2002-07-24 18:06 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 31+ messages in thread
From: Marc Mitchell @ 2002-07-24 18:04 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Marc Mitchell" <marcm@eisolution.com>
Cc: "Robert M. Meyer" <rmeyer@installs.com>; "Naomi Walker"
<nwalker@eldocomp.com>; <pgsql-admin@postgresql.org>
Sent: Wednesday, July 24, 2002 10:21 AM
Subject: Re: [ADMIN] Postgres performance slowly gets worse over a month
> "Marc Mitchell" <marcm@eisolution.com> writes:
> > Our short term fix was to turn down the value of random_page_cost.
> > However, as Tom Lane very rightly noted in response to a similar
posting,
> > this is a total hack. Our goal is to switch to 7.2 in the hopes that
the
> > "WHERE" extension to the "CREATE INDEX" command coupled with greater
> > control of the sample space used in statistics will be the true
> > answer.
>
> Actually, 7.2 should fix this without any need for messing with partial
> indexes. The new statistics code will realize that zero is an outlier,
> and will estimate scans for other target values differently.
That's welcome news. Two follow-up questions if you could:
1) Is there any inherit value or "dis-value" to using a partial index in
this case? Given that 50% of the table has a value the we have no need to
be supported via an index, is there any reason not to use a partial index?
2) If we stay in 7.1, would changing the foriegn key field from "NOT NULL"
(where we currently populate with zero) to nullable (where we would
populate instead with null) have any effect on performace? The hope would
be that nulls might be treated differently within the 7.1 stats gathering
process than non-null values. This would be a better, albeit still
temporary, solution in our current environment than the random_page_access
hack we chose for now.
Thanks,
Marc Mitchell
Enterprise Information Solutions, Inc.
4910 Main Street
Downers Grove, IL 60515
marcm@eisolution.com
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 19:43 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
2002-07-24 15:21 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
2002-07-24 18:04 ` Re: Postgres performance slowly gets worse over a month Marc Mitchell <marcm@eisolution.com>
@ 2002-07-24 18:06 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 31+ messages in thread
From: Tom Lane @ 2002-07-24 18:06 UTC (permalink / raw)
To: Marc Mitchell <marcm@eisolution.com>; +Cc: pgsql-admin
"Marc Mitchell" <marcm@eisolution.com> writes:
> 1) Is there any inherit value or "dis-value" to using a partial index in
> this case? Given that 50% of the table has a value the we have no need to
> be supported via an index, is there any reason not to use a partial index?
It probably would be a win, just on the basis of reducing the size and
amount of update activity for the index.
> 2) If we stay in 7.1, would changing the foriegn key field from "NOT NULL"
> (where we currently populate with zero) to nullable (where we would
> populate instead with null) have any effect on performace? The hope would
> be that nulls might be treated differently within the 7.1 stats gathering
> process than non-null values.
In fact they are, and this very likely would be a cleaner solution
anyway. Seems like NULL might be a semantically clearer representation
of the row's status than zero. You could still do something with a
partial index excluding the nulls in 7.2, I think.
regards, tom lane
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
@ 2002-07-24 18:30 ` Chad R. Larson <clarson@eldocomp.com>
2002-07-24 18:39 ` Re: Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
1 sibling, 1 reply; 31+ messages in thread
From: Chad R. Larson @ 2002-07-24 18:30 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; Naomi Walker <nwalker@eldocomp.com>; +Cc: pgsql-admin
At 11:29 AM 7/23/02 , Robert M. Meyer wrote:
>I've never used 'sar'. If you can believe it, I've been poking around
>with Unix for the last 20 years and I've never even seen the 'man' page
>for 'sar'. I probably should look into it. What flags would give me the
>most information to help figger out what's going on here?
SAR stands for System Activity Reporting and is a SysVish think. You'll
find it on Solaris and SCO Unix. I don't know if it exists under Red Hat.
-crl
--
Chad R. Larson (CRL22) chad@eldocomp.com
Eldorado Computing, Inc. 602-604-3100
5353 North 16th Street, Suite 400
Phoenix, Arizona 85016-3228
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Re: Postgres performance slowly gets worse over a month Naomi Walker <nwalker@eldocomp.com>
2002-07-24 18:30 ` Re: Postgres performance slowly gets worse over a month Chad R. Larson <clarson@eldocomp.com>
@ 2002-07-24 18:39 ` Robert M. Meyer <rmeyer@installs.com>
0 siblings, 0 replies; 31+ messages in thread
From: Robert M. Meyer @ 2002-07-24 18:39 UTC (permalink / raw)
To: Chad R. Larson <clarson@eldocomp.com>; +Cc: Naomi Walker <nwalker@eldocomp.com>; pgsql-admin
Yep, it's on RedHat 7.2 but I've never used it. I didn't use it on
Solaris, either. I've never needed it (lest-wise, I didn't THINK I
needed it) until now so I suppose I need to check it out.
Cheers!
Bob
On Wed, 2002-07-24 at 14:30, Chad R. Larson wrote:
> At 11:29 AM 7/23/02 , Robert M. Meyer wrote:
> >I've never used 'sar'. If you can believe it, I've been poking around
> >with Unix for the last 20 years and I've never even seen the 'man' page
> >for 'sar'. I probably should look into it. What flags would give me the
> >most information to help figger out what's going on here?
>
> SAR stands for System Activity Reporting and is a SysVish think. You'll
> find it on Solaris and SCO Unix. I don't know if it exists under Red Hat.
>
>
> -crl
> --
> Chad R. Larson (CRL22) chad@eldocomp.com
> Eldorado Computing, Inc. 602-604-3100
> 5353 North 16th Street, Suite 400
> Phoenix, Arizona 85016-3228
>
--
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
@ 2002-07-26 13:35 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
0 siblings, 1 reply; 31+ messages in thread
From: Joshua Daniel Franklin @ 2002-07-26 13:35 UTC (permalink / raw)
To: pgsql-admin
> I played with this tonight writing a small insert/update routine and
> frequent vacuums. Here is what I came up with ( (PostgreSQL) 7.2.1 )
>
This is some great info, thanks.
> In addition, max_fsm_pages has an impact on how many pages will be
> available to be marked as re-usable. If you have a huge table and
> changes are impacting more than the default 10,000 pages this is set to,
> you will want to bump this number up. My problem was I saw my UnUsed
> tuples always growing and not being re-used until I bumped this value
> up. As I watched the vacuum verbose output each run, I notices more
> than 10k pages were in fact changing between vacuums.
>
This has made me think about something we've been doing. We've got one
db that is used basically read-only; every day ~15000 records are added,
but very rarely are any deleted. What we've been doing is just letting it
sit until it gets close to too big for the filesystem, then lopping off
the earliest 6 months worth of records. The question is, is it best
to do this then set the max_fsm_pages to a huge number and vacuum full?
Or should I change it so scripts remove the oldest day and vacuum before
adding the next days?
Or just rebuild the db every time. :)
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
@ 2002-07-26 13:50 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
0 siblings, 1 reply; 31+ messages in thread
From: Michael G. Martin @ 2002-07-26 13:50 UTC (permalink / raw)
To: Joshua Daniel Franklin <joshuadfranklin@yahoo.com>; +Cc: pgsql-admin
I believe the more frequently you vacuum, the faster it will go, so that
may be the driving factor in deciding. Personally, each day, I'd add
the new tuples then remove the no-longer needed tuples, make sure
max_fsm_pages is large enough to handle all the pages removed in the
largest table, then run a vacuum analyze on the table or entire
database. Run it each night and it will be nice and fast and you
shouldn't ever need to worry about locking the entire table with a
vacuum full or spend time to re-create the table and indicies.
That's what I do which I think is the most automated,maintainance-free
solution. I currently run a lazy vacuum analyze each night after making
my large changes. My tables don't change enough during the day to
require mid-day vacuums.
--Michael
Joshua Daniel Franklin wrote:
>>I played with this tonight writing a small insert/update routine and
>>frequent vacuums. Here is what I came up with ( (PostgreSQL) 7.2.1 )
>>
>>
>>
>This is some great info, thanks.
>
>
>
>>In addition, max_fsm_pages has an impact on how many pages will be
>>available to be marked as re-usable. If you have a huge table and
>>changes are impacting more than the default 10,000 pages this is set to,
>>you will want to bump this number up. My problem was I saw my UnUsed
>>tuples always growing and not being re-used until I bumped this value
>>up. As I watched the vacuum verbose output each run, I notices more
>>than 10k pages were in fact changing between vacuums.
>>
>>
>>
>This has made me think about something we've been doing. We've got one
>db that is used basically read-only; every day ~15000 records are added,
>but very rarely are any deleted. What we've been doing is just letting it
>sit until it gets close to too big for the filesystem, then lopping off
>the earliest 6 months worth of records. The question is, is it best
>to do this then set the max_fsm_pages to a huge number and vacuum full?
>Or should I change it so scripts remove the oldest day and vacuum before
>adding the next days?
>
>Or just rebuild the db every time. :)
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
@ 2002-07-26 14:45 ` Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 15:10 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 15:35 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 31+ messages in thread
From: Joshua Daniel Franklin @ 2002-07-26 14:45 UTC (permalink / raw)
To: Michael G. Martin <michael@vpmonline.com>; +Cc: pgsql-admin
Perhaps I wasn't clear. There really aren't any (daily) "no-longer needed
tuples", just added ones. I am under the impression that vacuum is just for
freeing up tuples to be re-used, so the only time it needs to be run is after
the 6-monthly tuple massacre, at which time I would also need to set
max_fsm_pages to a huge number.
--- "Michael G. Martin" <michael@vpmonline.com> wrote:
> I believe the more frequently you vacuum, the faster it will go, so that
> may be the driving factor in deciding. Personally, each day, I'd add
> the new tuples then remove the no-longer needed tuples, make sure
> max_fsm_pages is large enough to handle all the pages removed in the
> largest table, then run a vacuum analyze on the table or entire
> database. Run it each night and it will be nice and fast and you
> shouldn't ever need to worry about locking the entire table with a
> vacuum full or spend time to re-create the table and indicies.
>
> That's what I do which I think is the most automated,maintainance-free
> solution. I currently run a lazy vacuum analyze each night after making
> my large changes. My tables don't change enough during the day to
> require mid-day vacuums.
>
> --Michael
>
> Joshua Daniel Franklin wrote:
> >
> >>In addition, max_fsm_pages has an impact on how many pages will be
> >>available to be marked as re-usable. If you have a huge table and
> >>changes are impacting more than the default 10,000 pages this is set to,
> >>you will want to bump this number up. My problem was I saw my UnUsed
> >>tuples always growing and not being re-used until I bumped this value
> >>up. As I watched the vacuum verbose output each run, I notices more
> >>than 10k pages were in fact changing between vacuums.
> >>
> >This has made me think about something we've been doing. We've got one
> >db that is used basically read-only; every day ~15000 records are added,
> >but very rarely are any deleted. What we've been doing is just letting it
> >sit until it gets close to too big for the filesystem, then lopping off
> >the earliest 6 months worth of records. The question is, is it best
> >to do this then set the max_fsm_pages to a huge number and vacuum full?
> >Or should I change it so scripts remove the oldest day and vacuum before
> >adding the next days?
> >
> >Or just rebuild the db every time. :)
> >
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
@ 2002-07-26 15:10 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 15:38 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
1 sibling, 1 reply; 31+ messages in thread
From: Michael G. Martin @ 2002-07-26 15:10 UTC (permalink / raw)
To: Joshua Daniel Franklin <joshuadfranklin@yahoo.com>; +Cc: pgsql-admin
Yea, you're correct. I think you'll be able to avoid the vacuum full
and re-use the tuples by making sure max_fsm_pages is large enough to
handle the number of pages changed by the 6-month massacre. After your
vacuum, note the unused tuples and page size of the table. Then, as you
incremently add new stuff over the next 6 months, you should see the
unused tuples decrease while the page size remains failry fixed. The
only other thing you may want to do more frequently is analyze if the
new tuples might change some statistics during the 6-month interval.
--Michael
Joshua Daniel Franklin wrote:
>Perhaps I wasn't clear. There really aren't any (daily) "no-longer needed
>tuples", just added ones. I am under the impression that vacuum is just for
>freeing up tuples to be re-used, so the only time it needs to be run is after
>the 6-monthly tuple massacre, at which time I would also need to set
>max_fsm_pages to a huge number.
>
>--- "Michael G. Martin" <michael@vpmonline.com> wrote:
>
>
>>I believe the more frequently you vacuum, the faster it will go, so that
>>may be the driving factor in deciding. Personally, each day, I'd add
>>the new tuples then remove the no-longer needed tuples, make sure
>>max_fsm_pages is large enough to handle all the pages removed in the
>>largest table, then run a vacuum analyze on the table or entire
>>database. Run it each night and it will be nice and fast and you
>>shouldn't ever need to worry about locking the entire table with a
>>vacuum full or spend time to re-create the table and indicies.
>>
>>That's what I do which I think is the most automated,maintainance-free
>>solution. I currently run a lazy vacuum analyze each night after making
>>my large changes. My tables don't change enough during the day to
>>require mid-day vacuums.
>>
>>--Michael
>>
>>Joshua Daniel Franklin wrote:
>>
>>
>>>>In addition, max_fsm_pages has an impact on how many pages will be
>>>>available to be marked as re-usable. If you have a huge table and
>>>>changes are impacting more than the default 10,000 pages this is set to,
>>>>you will want to bump this number up. My problem was I saw my UnUsed
>>>>tuples always growing and not being re-used until I bumped this value
>>>>up. As I watched the vacuum verbose output each run, I notices more
>>>>than 10k pages were in fact changing between vacuums.
>>>>
>>>>
>>>>
>>>This has made me think about something we've been doing. We've got one
>>>db that is used basically read-only; every day ~15000 records are added,
>>>but very rarely are any deleted. What we've been doing is just letting it
>>>sit until it gets close to too big for the filesystem, then lopping off
>>>the earliest 6 months worth of records. The question is, is it best
>>>to do this then set the max_fsm_pages to a huge number and vacuum full?
>>>Or should I change it so scripts remove the oldest day and vacuum before
>>>adding the next days?
>>>
>>>Or just rebuild the db every time. :)
>>>
>>>
>>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>---------------------------(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] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 15:10 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
@ 2002-07-26 15:38 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 16:11 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
0 siblings, 1 reply; 31+ messages in thread
From: Michael G. Martin @ 2002-07-26 15:38 UTC (permalink / raw)
To: Joshua Daniel Franklin <joshuadfranklin@yahoo.com>; +Cc: pgsql-admin
I look at it like this:
Your database takes up space X after a full vacuum and is ready for the
next 6 months of inserts. Then , over the next 6 months it grows by
space Y, it now occupies X+Y Space.
You then remove a bunch of old tuples. Space is still X+Y. You now
have 2 basic options:
1. Run a vacuum full -- this locks the entier table, and de-fragments
all unused space, so space is now back to X. Table will grow incremently
by Y over the next 6 months again.
2. Run a lazy vacuum-- no lock, no de-fragment, space is still X+Y.
Assuming max_fsm_pages was large enough to hold all the changed pages,
over the next 6 months, the space remains fixed at about X+Y. You are
now re-using the unused table space.
Either solution will work. If you really want to cut disk space, choose
1. If you want to keep the space at about it optimal size and avoid any
downtime, choose 2.
--Michael
Michael G. Martin wrote:
> Yea, you're correct. I think you'll be able to avoid the vacuum full
> and re-use the tuples by making sure max_fsm_pages is large enough to
> handle the number of pages changed by the 6-month massacre. After your
> vacuum, note the unused tuples and page size of the table. Then, as
> you incremently add new stuff over the next 6 months, you should see
> the unused tuples decrease while the page size remains failry fixed.
> The only other thing you may want to do more frequently is analyze if
> the new tuples might change some statistics during the 6-month interval.
>
> --Michael
>
> Joshua Daniel Franklin wrote:
>
>>Perhaps I wasn't clear. There really aren't any (daily) "no-longer needed
>>tuples", just added ones. I am under the impression that vacuum is just for
>>freeing up tuples to be re-used, so the only time it needs to be run is after
>>the 6-monthly tuple massacre, at which time I would also need to set
>>max_fsm_pages to a huge number.
>>
>>--- "Michael G. Martin" <michael@vpmonline.com> wrote:
>>
>>
>>>I believe the more frequently you vacuum, the faster it will go, so that
>>>may be the driving factor in deciding. Personally, each day, I'd add
>>>the new tuples then remove the no-longer needed tuples, make sure
>>>max_fsm_pages is large enough to handle all the pages removed in the
>>>largest table, then run a vacuum analyze on the table or entire
>>>database. Run it each night and it will be nice and fast and you
>>>shouldn't ever need to worry about locking the entire table with a
>>>vacuum full or spend time to re-create the table and indicies.
>>>
>>>That's what I do which I think is the most automated,maintainance-free
>>>solution. I currently run a lazy vacuum analyze each night after making
>>>my large changes. My tables don't change enough during the day to
>>>require mid-day vacuums.
>>>
>>>--Michael
>>>
>>>Joshua Daniel Franklin wrote:
>>>
>>>
>>>>>In addition, max_fsm_pages has an impact on how many pages will be
>>>>>available to be marked as re-usable. If you have a huge table and
>>>>>changes are impacting more than the default 10,000 pages this is set to,
>>>>>you will want to bump this number up. My problem was I saw my UnUsed
>>>>>tuples always growing and not being re-used until I bumped this value
>>>>>up. As I watched the vacuum verbose output each run, I notices more
>>>>>than 10k pages were in fact changing between vacuums.
>>>>>
>>>>>
>>>>>
>>>>This has made me think about something we've been doing. We've got one
>>>>db that is used basically read-only; every day ~15000 records are added,
>>>>but very rarely are any deleted. What we've been doing is just letting it
>>>>sit until it gets close to too big for the filesystem, then lopping off
>>>>the earliest 6 months worth of records. The question is, is it best
>>>>to do this then set the max_fsm_pages to a huge number and vacuum full?
>>>>Or should I change it so scripts remove the oldest day and vacuum before
>>>>adding the next days?
>>>>
>>>>Or just rebuild the db every time. :)
>>>>
>>>>
>>>>
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! Health - Feel better, live better
>>http://health.yahoo.com
>>
>>---------------------------(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] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 15:10 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 15:38 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
@ 2002-07-26 16:11 ` Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 17:34 ` Re: Postgres performance slowly gets worse over a month Marc Spitzer <marc@oscar.eng.cv.net>
0 siblings, 1 reply; 31+ messages in thread
From: Joshua Daniel Franklin @ 2002-07-26 16:11 UTC (permalink / raw)
To: Michael G. Martin <michael@vpmonline.com>; +Cc: pgsql-admin
Thanks, this is exactly what I was thinking.
--- "Michael G. Martin" <michael@vpmonline.com> wrote:
> You then remove a bunch of old tuples. Space is still X+Y. You now
> have 2 basic options:
>
> 1. Run a vacuum full -- this locks the entier table, and de-fragments
> all unused space, so space is now back to X. Table will grow incremently
> by Y over the next 6 months again.
> 2. Run a lazy vacuum-- no lock, no de-fragment, space is still X+Y.
> Assuming max_fsm_pages was large enough to hold all the changed pages,
> over the next 6 months, the space remains fixed at about X+Y. You are
> now re-using the unused table space.
>
> Either solution will work. If you really want to cut disk space, choose
> 1. If you want to keep the space at about it optimal size and avoid any
> downtime, choose 2.
>
> --Michael
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 15:10 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 15:38 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 16:11 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
@ 2002-07-26 17:34 ` Marc Spitzer <marc@oscar.eng.cv.net>
0 siblings, 0 replies; 31+ messages in thread
From: Marc Spitzer @ 2002-07-26 17:34 UTC (permalink / raw)
To: pgsql-admin
On Fri, Jul 26, 2002 at 09:11:25AM -0700, Joshua Daniel Franklin wrote:
> Thanks, this is exactly what I was thinking.
>
> --- "Michael G. Martin" <michael@vpmonline.com> wrote:
> > You then remove a bunch of old tuples. Space is still X+Y. You now
> > have 2 basic options:
> >
> > 1. Run a vacuum full -- this locks the entier table, and de-fragments
> > all unused space, so space is now back to X. Table will grow incremently
> > by Y over the next 6 months again.
> > 2. Run a lazy vacuum-- no lock, no de-fragment, space is still X+Y.
> > Assuming max_fsm_pages was large enough to hold all the changed pages,
> > over the next 6 months, the space remains fixed at about X+Y. You are
> > now re-using the unused table space.
> >
> > Either solution will work. If you really want to cut disk space, choose
> > 1. If you want to keep the space at about it optimal size and avoid any
> > downtime, choose 2.
> >
> > --Michael
>
Do not forget to reindex the db after the delete, index's do not
manage them selves(if I remember correctly). The index will continue
to grow until it eats your file system, as it did with me. Also if
you do not reindex regulary it can take a looong time to do, much like
vacuum. Also bigger indexes mean slower queries.
marc
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> ---------------------------(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] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Re: Postgres performance slowly gets worse over a month Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
@ 2002-07-26 15:35 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 31+ messages in thread
From: Tom Lane @ 2002-07-26 15:35 UTC (permalink / raw)
To: Joshua Daniel Franklin <joshuadfranklin@yahoo.com>; +Cc: Michael G. Martin <michael@vpmonline.com>; pgsql-admin
Joshua Daniel Franklin <joshuadfranklin@yahoo.com> writes:
> Perhaps I wasn't clear. There really aren't any (daily) "no-longer needed
> tuples", just added ones. I am under the impression that vacuum is just for
> freeing up tuples to be re-used, so the only time it needs to be run is after
> the 6-monthly tuple massacre, at which time I would also need to set
> max_fsm_pages to a huge number.
If you do VACUUM FULL after each "tuple massacre" (which you'd better,
since the point AFAICT is to cut the total disk space used by the file)
then there's not really any need for bumping up max_fsm_pages. The
post-vacuum-full state of the table isn't going to have a whole lot
of embedded free space ...
regards, tom lane
^ permalink raw reply [nested|flat] 31+ messages in thread
* Postgres performance slowly gets worse over a month
@ 2002-08-08 18:06 Robert M. Meyer <rmeyer@installs.com>
2002-08-08 19:09 ` Re: Postgres performance slowly gets worse over a month Tim Ellis <Tim.Ellis@gamet.com>
2002-08-08 20:01 ` Re: Postgres performance slowly gets worse over a month Tom Lane <tgl@sss.pgh.pa.us>
2002-08-08 20:55 ` Re: Postgres performance slowly gets worse over a month Andrew Sullivan <andrew@libertyrms.info>
2002-08-11 13:04 ` Re: Postgres performance slowly gets worse over a month Brian McCane <bmccane@mccons.net>
0 siblings, 4 replies; 31+ messages in thread
From: Robert M. Meyer @ 2002-08-08 18:06 UTC (permalink / raw)
To: pgsql-admin
Back on July 23, I posted on our performance problem. At that time, I
got several suggestions about what to do to try to fix it. Well, it's
happening again...
To recap, we have a web based application that utilizes a postgres
backend for handling orders and scheduling. Gradually, the average load
on the system climbs until we dump the database, drop it and reload it
from the dumps. This occurs slowly (weeks, rather than hours) and will
eventually get so bad that no work can get done. Another point is that
the progression of performance appears to be geometric, rather than
linear. I also notice that the size of the data directory starts at
about 4.5 Gig and climbs throughout this process. It's currently at
6.3Gig.
We do a full vacuum every night. We have adjusted max_fsm_pages to
1000000 and max_fsm_relations to 10000 (we were seeing deleted tuples in
the 50K range on some of our tables). We are using ADODB 2.12 in PHP on
Apache 1.3.26 to access the database. We've tried rebuilding all of the
indexes and that didn't help. We're going to try it again because we
wound up corrupting our indexes in the system tables while trying to
drop and recreate a table that got partially created before a system
crash. We suspect that we may have had other problems at the time. We
have a contractor that did the reindex for us so I'm not sure of the
process at this point. I suspect that it's something like;
1. shut down postgres
2. run 'postgres -O -P' to start a single user instantiation of the
engine
3. type 'reindex' to get it to do it
4. exit postgres and restart the DB with pg_ctl
Does that sound about right?
Any other suggestions? We're looking to do something soon before the
load gets out of hand. We have done full DB dumps and restores to fix
this in the past and it takes 4-5 hours in the middle of the night since
we can't take the system down during the day 'cuz we have about 1100
people sitting on their hands when we do it. One of the suggestions was
to use 'pgmonitor' to keep watch over what's happening but transaction
go through too quickly and nothing seems to tie the system up for any
period of time. We also notice that while the load keeps increasing,
the actual CPU time is very small. We'll see loads above 3 with each
CPU (we have two) sitting with 80%+ idle time.
As a recap, this is happening on a Compaq Proliant 3500 system with a
five disk raid5 in hardware.
--
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-08-08 18:06 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-08-08 19:09 ` Tim Ellis <Tim.Ellis@gamet.com>
3 siblings, 0 replies; 31+ messages in thread
From: Tim Ellis @ 2002-08-08 19:09 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; +Cc: pgsql-admin
On 08 Aug 2002 14:06:57 -0400
"Robert M. Meyer" <rmeyer@installs.com> wrote:
> Back on July 23, I posted on our performance problem. At that time, I
> got several suggestions about what to do to try to fix it. Well, it's
> happening again...
> [snip]
> Any other suggestions? We're looking to do something soon before the
> load gets out of hand.
With all due respect, the depth of your problem indicates to me you need a
database administrator. Someone who understands the database and the
hardware and performance/tuning principles.
(in case you think I'm hinting about something, I'm not available for work
right now -- you really do need to hire/contract a DBA sort)
> One of the suggestions was
> to use 'pgmonitor' to keep watch over what's happening but transaction
> go through too quickly and nothing seems to tie the system up for any
> period of time. We also notice that while the load keeps increasing,
> the actual CPU time is very small. We'll see loads above 3 with each
> CPU (we have two) sitting with 80%+ idle time.
First guess: analyze your queries. It's gotten me through a number of
problems that sound just like this. As the data set grows, a poorly formed
query will chew more and more I/O time.
--
Tim Ellis
Senior Database Architect
Gamet, Inc.
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-08-08 18:06 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-08-08 20:01 ` Tom Lane <tgl@sss.pgh.pa.us>
3 siblings, 0 replies; 31+ messages in thread
From: Tom Lane @ 2002-08-08 20:01 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; +Cc: pgsql-admin
"Robert M. Meyer" <rmeyer@installs.com> writes:
> Back on July 23, I posted on our performance problem. At that time, I
> got several suggestions about what to do to try to fix it. Well, it's
> happening again...
Given that you've increased the FSM size *and* are doing a full vacuum
every night (I hope with analyze option as well!), it seems unlikely
that your tables are physically growing --- I suspect there may be an
index growth problem instead. But you should try to check that.
Try doing
select relkind,sum(relpages) from pg_class group by relkind;
every so often (preferably just after a vacuum run) to see how the space
totals change over time.
> 1. shut down postgres
> 2. run 'postgres -O -P' to start a single user instantiation of the
> engine
> 3. type 'reindex' to get it to do it
> 4. exit postgres and restart the DB with pg_ctl
IIRC, that only rebuilds indexes on the system tables. You mentioned
that you'd rebuilt user indexes too --- how did you go about that
exactly?
> We also notice that while the load keeps increasing,
> the actual CPU time is very small. We'll see loads above 3 with each
> CPU (we have two) sitting with 80%+ idle time.
The load must be all disk I/O then. Do you have adequate RAM in this
thing? What have you set shared_buffers to?
More generally, what's your typical query mix? Have you checked for
inefficient plans on the most common queries?
regards, tom lane
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-08-08 18:06 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-08-08 20:55 ` Andrew Sullivan <andrew@libertyrms.info>
3 siblings, 0 replies; 31+ messages in thread
From: Andrew Sullivan @ 2002-08-08 20:55 UTC (permalink / raw)
To: pgsql-admin
On Thu, Aug 08, 2002 at 02:06:57PM -0400, Robert M. Meyer wrote:
> have a contractor that did the reindex for us so I'm not sure of the
> process at this point. I suspect that it's something like;
> 1. shut down postgres
> 2. run 'postgres -O -P' to start a single user instantiation of the
> engine
> 3. type 'reindex' to get it to do it
> 4. exit postgres and restart the DB with pg_ctl
>
> Does that sound about right?
What you are talking about there is reindexing the system tables.
But "recreating the indexes" as a solution to file growth and
performance problems is not this. Instead, what you do is drop the
index and recreate it. At least, that's what I have gathered from
the "reindex" scripts that were sent to the -general list a little
while ago.
> Any other suggestions?
Yes. As someone else suggested, it sounds like you need a full-time
DBA, at least for a little while.
A
--
----
Andrew Sullivan 87 Mowat Avenue
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M6K 3E3
+1 416 646 3304 x110
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
2002-08-08 18:06 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
@ 2002-08-11 13:04 ` Brian McCane <bmccane@mccons.net>
3 siblings, 0 replies; 31+ messages in thread
From: Brian McCane @ 2002-08-11 13:04 UTC (permalink / raw)
To: Robert M. Meyer <rmeyer@installs.com>; +Cc: pgsql-admin
Robert,
I got your email but I am currently at the Mayo clinic with my
wife, so I can't give you much help. If you download:
ftp://china.maxbaud.net/pub/PostgreSQL/fixtable.pl
This is my perl script which will do a live/hot reindex of your tables.
You can run the command and it will give you a really short description of
options. It should not let you run the script unless yo give it a group
of options that actually make sense. I usually run it something like:
fixtable.pl -t foo -I bar
This will recreate ALL indexes (-I) on table foo (-t foo) in the bar
database. I use this thing more often than I would like because I get
as much as 1million records changed on a daily basis in one of my tables
and the indexes make a big difference in performance (I assume because of
disk fragmentation on the large file size).
- brian
On 8 Aug 2002, Robert M. Meyer wrote:
>
> Back on July 23, I posted on our performance problem. At that time, I
> got several suggestions about what to do to try to fix it. Well, it's
> happening again...
>
> To recap, we have a web based application that utilizes a postgres
> backend for handling orders and scheduling. Gradually, the average load
> on the system climbs until we dump the database, drop it and reload it
> from the dumps. This occurs slowly (weeks, rather than hours) and will
> eventually get so bad that no work can get done. Another point is that
> the progression of performance appears to be geometric, rather than
> linear. I also notice that the size of the data directory starts at
> about 4.5 Gig and climbs throughout this process. It's currently at
> 6.3Gig.
>
> We do a full vacuum every night. We have adjusted max_fsm_pages to
> 1000000 and max_fsm_relations to 10000 (we were seeing deleted tuples in
> the 50K range on some of our tables). We are using ADODB 2.12 in PHP on
> Apache 1.3.26 to access the database. We've tried rebuilding all of the
> indexes and that didn't help. We're going to try it again because we
> wound up corrupting our indexes in the system tables while trying to
> drop and recreate a table that got partially created before a system
> crash. We suspect that we may have had other problems at the time. We
> have a contractor that did the reindex for us so I'm not sure of the
> process at this point. I suspect that it's something like;
> 1. shut down postgres
> 2. run 'postgres -O -P' to start a single user instantiation of the
> engine
> 3. type 'reindex' to get it to do it
> 4. exit postgres and restart the DB with pg_ctl
>
> Does that sound about right?
>
> Any other suggestions? We're looking to do something soon before the
> load gets out of hand. We have done full DB dumps and restores to fix
> this in the past and it takes 4-5 hours in the middle of the night since
> we can't take the system down during the day 'cuz we have about 1100
> people sitting on their hands when we do it. One of the suggestions was
> to use 'pgmonitor' to keep watch over what's happening but transaction
> go through too quickly and nothing seems to tie the system up for any
> period of time. We also notice that while the load keeps increasing,
> the actual CPU time is very small. We'll see loads above 3 with each
> CPU (we have two) sitting with 80%+ idle time.
>
> As a recap, this is happening on a Compaq Proliant 3500 system with a
> five disk raid5 in hardware.
>
> --
> Robert M. Meyer
> Sr. Network Administrator
> DigiVision Satellite Services
> 14 Lafayette Sq, Ste 410
> Buffalo, NY 14203-1904
> (716)332-1451
>
>
> ---------------------------(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
>
Wm. Brian McCane | Life is full of doors that won't open
Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those
Usenet http://freenews.maxbaud.net/ | that open when you don't want them to.
Auction http://www.sellit-here.com/ | - Roger Zelazny "Blood of Amber"
^ permalink raw reply [nested|flat] 31+ messages in thread
* Re: Postgres performance slowly gets worse over a month
@ 2002-08-10 03:17 nikolaus@dilger.cc
0 siblings, 0 replies; 31+ messages in thread
From: nikolaus@dilger.cc @ 2002-08-10 03:17 UTC (permalink / raw)
To: rmeyer@installs.com; +Cc: pgsql-admin
Robert,
Sounds to me that you have some kind of fragmentation
causing the slow degredation of performance.
A dump/restore, which is basically a very drastic
defragmentation, is fixing it. It happens slowly and
there seems not to be a single big cause. More like
the sum of many little things. You also report that
there are a lot of deleted tuples (rows).
Don't know a quick and easy fix. Maybe its caused how
your application is designed. Inserting deleting many
rows. Probably frequent updates. Some rows using lots
of space and some very little. Anyway something is
causing very inefficient space use.
So I would agree with the other respondens that you
need a DBA to look at your database. Especially the
design itself.
Regards,
Nikolaus Dilger
"Robert M. Meyer" wrote:
>
> Back on July 23, I posted on our performance problem.
> At that time, I
> got several suggestions about what to do to try to fix
> it. Well, it's
> happening again...
>
> To recap, we have a web based application that
utilizes
> a postgres
> backend for handling orders and scheduling.
Gradually,
> the average load
> on the system climbs until we dump the database, drop
> it and reload it
> from the dumps. This occurs slowly (weeks, rather
than
> hours) and will
> eventually get so bad that no work can get done.
> Another point is that
> the progression of performance appears to be
geometric,
> rather than
> linear. I also notice that the size of the data
> directory starts at
> about 4.5 Gig and climbs throughout this process.
It's
> currently at
> 6.3Gig.
>
> We do a full vacuum every night. We have adjusted
> max_fsm_pages to
> 1000000 and max_fsm_relations to 10000 (we were seeing
> deleted tuples in
> the 50K range on some of our tables). We are using
> ADODB 2.12 in PHP on
> Apache 1.3.26 to access the database. We've tried
> rebuilding all of the
> indexes and that didn't help. We're going to try it
> again because we
> wound up corrupting our indexes in the system tables
> while trying to
> drop and recreate a table that got partially created
> before a system
> crash. We suspect that we may have had other problems
> at the time. We
> have a contractor that did the reindex for us so I'm
> not sure of the
> process at this point. I suspect that it's something
> like;
> 1. shut down postgres
> 2. run 'postgres -O -P' to start a single user
> instantiation of the
> engine
> 3. type 'reindex' to get it to do it
> 4. exit postgres and restart the DB with pg_ctl
>
> Does that sound about right?
>
> Any other suggestions? We're looking to do something
> soon before the
> load gets out of hand. We have done full DB dumps and
> restores to fix
> this in the past and it takes 4-5 hours in the middle
> of the night since
> we can't take the system down during the day 'cuz we
> have about 1100
> people sitting on their hands when we do it. One of
> the suggestions was
> to use 'pgmonitor' to keep watch over what's happening
> but transaction
> go through too quickly and nothing seems to tie the
> system up for any
> period of time. We also notice that while the load
> keeps increasing,
> the actual CPU time is very small. We'll see loads
> above 3 with each
> CPU (we have two) sitting with 80%+ idle time.
>
> As a recap, this is happening on a Compaq Proliant
3500
> system with a
> five disk raid5 in hardware.
>
> --
> Robert M. Meyer
> Sr. Network Administrator
> DigiVision Satellite Services
> 14 Lafayette Sq, Ste 410
> Buffalo, NY 14203-1904
> (716)332-1451
>
>
> ---------------------------(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] 31+ messages in thread
end of thread, other threads:[~2002-08-11 13:04 UTC | newest]
Thread overview: 31+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-07-23 17:59 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:08 ` Naomi Walker <nwalker@eldocomp.com>
2002-07-23 18:29 ` Robert M. Meyer <rmeyer@installs.com>
2002-07-23 18:18 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 20:45 ` Michael G. Martin <michael@vpmonline.com>
2002-07-24 11:14 ` Gaetano Mendola <mendola@bigfoot.com>
2002-07-24 14:00 ` Michael G. Martin <michael@vpmonline.com>
2002-07-24 14:04 ` Robert Treat <xzilla@users.sourceforge.net>
2002-07-25 00:17 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-25 03:01 ` Michael G. Martin <michael@vpmonline.com>
2002-07-30 19:49 ` Marcos Garcia <marcos-p-garcia@ptinovacao.pt>
2002-07-23 19:43 ` Marc Mitchell <marcm@eisolution.com>
2002-07-24 15:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-07-24 18:04 ` Marc Mitchell <marcm@eisolution.com>
2002-07-24 18:06 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-07-24 18:30 ` Chad R. Larson <clarson@eldocomp.com>
2002-07-24 18:39 ` Robert M. Meyer <rmeyer@installs.com>
2002-07-26 13:35 Re: Postgres performance slowly gets worse over a month Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 13:50 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 14:45 ` Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 15:10 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 15:38 ` Michael G. Martin <michael@vpmonline.com>
2002-07-26 16:11 ` Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2002-07-26 17:34 ` Marc Spitzer <marc@oscar.eng.cv.net>
2002-07-26 15:35 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-08-08 18:06 Postgres performance slowly gets worse over a month Robert M. Meyer <rmeyer@installs.com>
2002-08-08 19:09 ` Tim Ellis <Tim.Ellis@gamet.com>
2002-08-08 20:01 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-08-08 20:55 ` Andrew Sullivan <andrew@libertyrms.info>
2002-08-11 13:04 ` Brian McCane <bmccane@mccons.net>
2002-08-10 03:17 Re: Postgres performance slowly gets worse over a month nikolaus@dilger.cc
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