pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
slow vacuuming...
3+ messages / 3 participants
[nested] [flat]

* slow vacuuming...
@ 2000-11-13 15:36 David Powicki <dpowicki@oit.umass.edu>
  2000-11-13 16:31 ` Re: slow vacuuming... Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 3+ messages in thread

From: David Powicki @ 2000-11-13 15:36 UTC (permalink / raw)
  To: pgsql-admin




Hi,

    I'm running into major problems with slow vacuuming.  I'm running Postgres
6.5.3 on a Sun Enterprise 250 with dual 300 CPUs and 1 GB of ram.  Currently
there is only one db/table being used in postgres and it's not that big a data
structure (used for PHP session info with IMP).
------------------------------------

horde=> \d active_sessions;
Table    = active_sessions
+----------------------------------+----------------------------------+-------+
|              Field               |              Type                | Length|
+----------------------------------+----------------------------------+-------+
| sid                              | varchar() not null default ''    |    32 |
| name                             | varchar() not null default ''    |    32 |
| val                              | text                             |   var |
| changed                          | varchar() not null default ''    |    14 |
+----------------------------------+----------------------------------+-------+

----------------------------------------------

Each day the DB grows to ~70MB in size and takes upwards of 25 minutes to
vacuum.  A 70MB DB doesn't sound too big and 25 minutes is a painfully long time
to wait.

Any ideas?

David



--

David Powicki     Network Analyst/Postmaster     OIT Network Services
Voice: 413.545.1605  Fax: 413.545.3203    University of Massachusetts
email: dpowicki@nic.umass.edu             Amherst, MA 01003-4640





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: slow vacuuming...
  2000-11-13 15:36 slow vacuuming... David Powicki <dpowicki@oit.umass.edu>
@ 2000-11-13 16:31 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2000-11-14 01:07   ` Re: slow vacuuming... Hossein S. Zadeh <hossein@hossein.bf.rmit.edu.au>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephan Szabo @ 2000-11-13 16:31 UTC (permalink / raw)
  To: David Powicki <dpowicki@oit.umass.edu>; +Cc: pgsql-admin


That does seem like a long time...  If you have any indexes (I don't
remember if \d in 6.5 showed those) you might want to try dropping them,
doing the vacuum and recreating them and see if that's any faster.

Stephan Szabo
sszabo@bigpanda.com

On Mon, 13 Nov 2000, David Powicki wrote:

> Each day the DB grows to ~70MB in size and takes upwards of 25 minutes to
> vacuum.  A 70MB DB doesn't sound too big and 25 minutes is a painfully long time
> to wait.
> 
> Any ideas?




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: slow vacuuming...
  2000-11-13 15:36 slow vacuuming... David Powicki <dpowicki@oit.umass.edu>
  2000-11-13 16:31 ` Re: slow vacuuming... Stephan Szabo <sszabo@megazone23.bigpanda.com>
@ 2000-11-14 01:07   ` Hossein S. Zadeh <hossein@hossein.bf.rmit.edu.au>
  0 siblings, 0 replies; 3+ messages in thread

From: Hossein S. Zadeh @ 2000-11-14 01:07 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: David Powicki <dpowicki@oit.umass.edu>; pgsql-admin

On Mon, 13 Nov 2000, Stephan Szabo wrote:

> On Mon, 13 Nov 2000, David Powicki wrote:
> 
> > Each day the DB grows to ~70MB in size and takes upwards of 25 minutes to
> > vacuum.  A 70MB DB doesn't sound too big and 25 minutes is a painfully long time
> > to wait.

I have had the same problem; I think it only occurs if you have any BLOB
field. In my case, vacuum on a ~100MB table took around 40 minutes (on a
dual PII 450, 256MB RAM, all 10,000RPM SCSI HDDs).

Here's what I did; I created a script that rather than just running vacuum
did the followings:

create a temp table identical to the large table
insert into temp (select * from old);
drop old
vacuum
create the old table
insert into old (select * from temp);
drop temp
vacuum

You can ditch the last vacuum if you wish (I was just being pedantic :-)
This whole thing took less than a minute on the same machine!!!


cheers,
Hossein





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-11-14 01:07 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-13 15:36 slow vacuuming... David Powicki <dpowicki@oit.umass.edu>
2000-11-13 16:31 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2000-11-14 01:07   ` Hossein S. Zadeh <hossein@hossein.bf.rmit.edu.au>

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