pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
VACUUM on multi-CPU systems?
4+ messages / 3 participants
[nested] [flat]

* VACUUM on multi-CPU systems?
@ 2002-08-26 16:04  Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Jeff Boes @ 2002-08-26 16:04 UTC (permalink / raw)
  To: pgsql-admin

Does anyone have any thoughts on whether my database vacuum/full/analyze
might go faster on our 2-CPU system if I generated the VACUUM commands
into a script, e.g.,

    psql -a <<EOF
\t
\o /tmp/db_maint.$$
select distinct on (relname) 'VACUUM FULL ANALYZE "' || relname || '";'
from pg_class
where relkind='r' 
\g
\o
EOF

(generates a script that looks like

  VACUUM FULL ANALYZE table1;
  VACUUM FULL ANALYZE table2;

etc.)

and then started two psql sessions each processing half of the file?

-- 
Jeff Boes                                      vox 269.226.9550 ext 24
Database Engineer                                     fax 269.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com
           ...Nexcerpt... Extend your Expertise



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

* Re: VACUUM on multi-CPU systems?
@ 2002-09-06 14:14  Jeff Boes <jboes@nexcerpt.com>
  parent: Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Jeff Boes @ 2002-09-06 14:14 UTC (permalink / raw)
  To: pgsql-admin

On Mon, 26 Aug 2002 12:04:23 -0400, Jeff Boes wrote:

> Does anyone have any thoughts on whether my database vacuum/full/analyze
> might go faster on our 2-CPU system if I generated the VACUUM commands
> into a script, e.g.,
> 
>     psql -a <<EOF
> \t
> \o /tmp/db_maint.$$
> select distinct on (relname) 'VACUUM FULL ANALYZE "' || relname || '";'
> from pg_class
> where relkind='r'
> \g
> \o
> EOF
> 
> (generates a script that looks like
> 
>   VACUUM FULL ANALYZE table1;
>   VACUUM FULL ANALYZE table2;
> 
> etc.)
> 
> and then started two psql sessions each processing half of the file?

I didn't see any response to this, so I'll try just one more time and
then shut up ...
 

-- 
Jeff Boes                                      vox 269.226.9550 ext 24
Database Engineer                                     fax 269.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com
           ...Nexcerpt... Extend your Expertise



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

* Re: VACUUM on multi-CPU systems?
@ 2002-09-06 14:19  Tycho Fruru <tycho@fruru.com>
  parent: Jeff Boes <jboes@nexcerpt.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Tycho Fruru @ 2002-09-06 14:19 UTC (permalink / raw)
  To: Jeff Boes <jboes@nexcerpt.com>; +Cc: pgsql-admin

On Fri, 2002-09-06 at 16:14, Jeff Boes wrote:
> On Mon, 26 Aug 2002 12:04:23 -0400, Jeff Boes wrote:
> 
> > Does anyone have any thoughts on whether my database vacuum/full/analyze
> > might go faster on our 2-CPU system if I generated the VACUUM commands
> > into a script, e.g.,
> > 
> >     psql -a <<EOF
> > \t
> > \o /tmp/db_maint.$$
> > select distinct on (relname) 'VACUUM FULL ANALYZE "' || relname || '";'
> > from pg_class
> > where relkind='r'
> > \g
> > \o
> > EOF
> > 
> > (generates a script that looks like
> > 
> >   VACUUM FULL ANALYZE table1;
> >   VACUUM FULL ANALYZE table2;
> > 
> > etc.)
> > 
> > and then started two psql sessions each processing half of the file?
> 
> I didn't see any response to this, so I'll try just one more time and
> then shut up ...

I think that vacuum will be more rapidly disk-bound then CPU-bound.

So if you've got different spindles for your tables, go ahead and
perform multiple vacuum full's at the same time (even on a uniprocessor
machine)

The proof of the pudding is of course what you all know (and like !)
Tycho

-- 
Tycho Fruru			                tycho@fruru.com
"Prediction is extremely difficult. Especially about the future."
  - Niels Bohr

Attachments:

  signature.asc (application/pgp-signature, 188B) download

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

* Re: VACUUM on multi-CPU systems?
@ 2002-09-06 20:51  Andrew Sullivan <andrew@libertyrms.info>
  parent: Jeff Boes <jboes@nexcerpt.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Andrew Sullivan @ 2002-09-06 20:51 UTC (permalink / raw)
  To: pgsql-admin

On Fri, Sep 06, 2002 at 10:14:14AM -0400, Jeff Boes wrote:
> 
> I didn't see any response to this, so I'll try just one more time and
> then shut up ...

Sorry, I think I was still on vacation when I responded to this, and
I failed to change the Subject: header.  But you can see my response
at 

http://groups.google.com/groups?q=VACUUM+on+multi-CPU+systems+group:comp.databases.postgresql.*&...

(Nasty long line.  Sorry.)

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




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


end of thread, other threads:[~2002-09-06 20:51 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-26 16:04 VACUUM on multi-CPU systems? Jeff Boes <jboes@nexcerpt.com>
2002-09-06 14:14 ` Jeff Boes <jboes@nexcerpt.com>
2002-09-06 14:19   ` Tycho Fruru <tycho@fruru.com>
2002-09-06 20:51   ` Andrew Sullivan <andrew@libertyrms.info>

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