Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 53DC0476ED3 for ; Fri, 6 Sep 2002 10:22:08 -0400 (EDT) Received: from gilmore.ael.be (gilmore.ael.be [158.64.60.71]) by postgresql.org (Postfix) with ESMTP id 08C4A476EC1 for ; Fri, 6 Sep 2002 10:22:07 -0400 (EDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by gilmore.ael.be (Postfix) with ESMTP id C9D47173465; Fri, 6 Sep 2002 16:22:07 +0200 (CEST) X-Mailbox-Line: From tycho@fruru.com Fri Sep 6 16:22:07 2002 Received: from localhost (localhost.localdomain [127.0.0.1]) by gilmore.ael.be (Postfix) with ESMTP id 4DA1C173465; Fri, 6 Sep 2002 16:22:07 +0200 (CEST) Subject: Re: VACUUM on multi-CPU systems? From: Tycho Fruru To: Jeff Boes Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-a6p6VZAfvQufzCEqyOeQ" X-Mailer: Ximian Evolution 1.0.8 Date: 06 Sep 2002 16:19:59 +0200 Message-Id: <1031322000.1117.25.camel@kungfoo.conostix.com> Mime-Version: 1.0 X-Spam-Status: No, hits=-8.6 required=5.0 tests=IN_REP_TO,PGP_SIGNATURE_2,SUBJ_ENDS_IN_Q_MARK, DOUBLE_CAPSWORD,PGP_SIGNATURE version=2.31 X-Spam-Level: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/88 X-Sequence-Number: 5627 --=-a6p6VZAfvQufzCEqyOeQ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-09-06 at 16:14, Jeff Boes wrote: > On Mon, 26 Aug 2002 12:04:23 -0400, Jeff Boes wrote: >=20 > > 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., > >=20 > > psql -a < > \t > > \o /tmp/db_maint.$$ > > select distinct on (relname) 'VACUUM FULL ANALYZE "' || relname || '";' > > from pg_class > > where relkind=3D'r' > > \g > > \o > > EOF > >=20 > > (generates a script that looks like > >=20 > > VACUUM FULL ANALYZE table1; > > VACUUM FULL ANALYZE table2; > >=20 > > etc.) > >=20 > > and then started two psql sessions each processing half of the file? >=20 > 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 --=20 Tycho Fruru tycho@fruru.com "Prediction is extremely difficult. Especially about the future." - Niels Bohr --=-a6p6VZAfvQufzCEqyOeQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9eLmP1LN2DzK8eaURAk11AJ4s7oLfb+VCzz4Ryf5jNsDzbzIuJwCgjNqy TkPpZDzM3t5GToUv0Qez/bo= =lDRP -----END PGP SIGNATURE----- --=-a6p6VZAfvQufzCEqyOeQ--