pg.ddx.io pgsql-testers@postgresql.org mailing list archive
help / color / mirror / Atom feedvacuum in pg9beta4 much slower than in 8.4
4+ messages / 3 participants
[nested] [flat]
* vacuum in pg9beta4 much slower than in 8.4
@ 2010-08-15 15:03 Mario Splivalo <mario.splivalo@megafon.hr>
0 siblings, 1 reply; 4+ messages in thread
From: Mario Splivalo @ 2010-08-15 15:03 UTC (permalink / raw)
To: pgsql-testers
I think this is ok, but I'd just like a confirmation.
I have a db cluster with 6 databases, totaling around 6 GB of data.
In postgres 8.4 subsequent runs of 'vacuumdb -afvz' takes around 55
seconds (average from 10 runs). 'vacuumdb -avz' takes around 40 seconds
(average from 10 runs).
However, in postgres 9.0beta4, 'vacuumdb -avz' takes around 2 minutes
(average from 10 runs), and 'vacuumdb -afvz' takes around 12 minutes
(average from 4 runs).
I understand that VACUUM FULL in 9.0 copies all the data, but is it OK
that plain vacuum in 9.0 is slower than in 8.4?
Mike
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: vacuum in pg9beta4 much slower than in 8.4
@ 2010-08-16 06:44 Greg Smith <greg@2ndquadrant.com>
parent: Mario Splivalo <mario.splivalo@megafon.hr>
0 siblings, 1 reply; 4+ messages in thread
From: Greg Smith @ 2010-08-16 06:44 UTC (permalink / raw)
To: Mario Splivalo <mario.splivalo@megafon.hr>; +Cc: pgsql-testers
Mario Splivalo wrote:
> I understand that VACUUM FULL in 9.0 copies all the data, but is it OK
> that plain vacuum in 9.0 is slower than in 8.4?
It should be faster for tables with a lot of junk in them, but the new
VACUUM FULL is likely to be slower for ones that are already clean.
Note that one thing to be aware of is that depending on where you got
your 9.0 from, it may be compiled with debugging and assertion calls
that can slow certain operations down quite a bit. If you try this at a
command prompt:
postgres=# show debug_assertions;
debug_assertions
------------------
on
And that's on, you can expect that copy of 9.0 to be significantly
slower at a number of things than a similar 8.4.
--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com www.2ndQuadrant.us
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: vacuum in pg9beta4 much slower than in 8.4
@ 2010-08-16 09:34 Mario Splivalo <mario.splivalo@megafon.hr>
parent: Greg Smith <greg@2ndquadrant.com>
0 siblings, 1 reply; 4+ messages in thread
From: Mario Splivalo @ 2010-08-16 09:34 UTC (permalink / raw)
To: Greg Smith <greg@2ndquadrant.com>; +Cc: pgsql-testers
On 08/16/2010 08:44 AM, Greg Smith wrote:
> Mario Splivalo wrote:
>> I understand that VACUUM FULL in 9.0 copies all the data, but is it OK
>> that plain vacuum in 9.0 is slower than in 8.4?
>
> It should be faster for tables with a lot of junk in them, but the new
> VACUUM FULL is likely to be slower for ones that are already clean.
> Note that one thing to be aware of is that depending on where you got
> your 9.0 from, it may be compiled with debugging and assertion calls
> that can slow certain operations down quite a bit. If you try this at a
> command prompt:
>
> postgres=# show debug_assertions;
> debug_assertions
> ------------------
> on
>
> And that's on, you can expect that copy of 9.0 to be significantly
> slower at a number of things than a similar 8.4.
I downloaded source and compiled it myself, this is excerpt from the
config.log:
enable_debug='no'
enable_dtrace='no'
enable_nls='no'
enable_profiling='no'
postgres=# show debug_assertions;
debug_assertions
------------------
off
(1 row)
Yes, I run the tests on clean tables. I run VACUUM FULL, and after that
I mesured how long it takes for VACUUM ANALYZE and VACUUM ANALYZE FULL.
So, it is ok for VACUUM FULL (on clean tables) on 9.0b4 to be six times
slower than on 8.4. But is it ok for plain VACUUM to be two times slower?
Mike
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: vacuum in pg9beta4 much slower than in 8.4
@ 2010-08-16 17:12 Josh Berkus <josh@agliodbs.com>
parent: Mario Splivalo <mario.splivalo@megafon.hr>
0 siblings, 0 replies; 4+ messages in thread
From: Josh Berkus @ 2010-08-16 17:12 UTC (permalink / raw)
To: pgsql-testers
> Yes, I run the tests on clean tables. I run VACUUM FULL, and after that
> I mesured how long it takes for VACUUM ANALYZE and VACUUM ANALYZE FULL.
> So, it is ok for VACUUM FULL (on clean tables) on 9.0b4 to be six times
> slower than on 8.4. But is it ok for plain VACUUM to be two times slower?
On clean or on dirty tables?
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-08-16 17:12 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15 15:03 vacuum in pg9beta4 much slower than in 8.4 Mario Splivalo <mario.splivalo@megafon.hr>
2010-08-16 06:44 ` Greg Smith <greg@2ndquadrant.com>
2010-08-16 09:34 ` Mario Splivalo <mario.splivalo@megafon.hr>
2010-08-16 17:12 ` Josh Berkus <josh@agliodbs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox