Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C0DC59FA0FB; Fri, 15 Dec 2006 08:25:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 09594-08; Fri, 15 Dec 2006 08:25:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svana.org (calyx.svana.org [125.62.87.134]) by postgresql.org (Postfix) with ESMTP id AB5579FA274; Fri, 15 Dec 2006 08:25:03 -0400 (AST) Received: from kleptog by svana.org with local (Exim 4.50) id 1GvC7Q-0001FC-8M; Fri, 15 Dec 2006 23:24:52 +1100 Date: Fri, 15 Dec 2006 13:24:52 +0100 From: Martijn van Oosterhout To: Gregory Stark Cc: Simon Riggs , Tom Lane , Kelly Burkhart , Evgeny Gridasov , pgsql-performance@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] EXPLAIN ANALYZE on 8.2 Message-ID: <20061215122452.GI958@svana.org> Reply-To: Martijn van Oosterhout References: <20061214163230.d46f0138.eugrid@fpm.kubsu.ru> <21146.1166112702@sss.pgh.pa.us> <20061214192920.c75385d6.eugrid@fpm.kubsu.ru> <21516.1166114475@sss.pgh.pa.us> <29450.1166141131@sss.pgh.pa.us> <1166178488.3882.56.camel@silverbirch.site> <20061215105008.GD958@svana.org> <87irgdiccg.fsf@enterprisedb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uJrvpPjGB3z5kYrA" Content-Disposition: inline In-Reply-To: <87irgdiccg.fsf@enterprisedb.com> X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/404 X-Sequence-Number: 22460 --uJrvpPjGB3z5kYrA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 15, 2006 at 12:15:59PM +0000, Gregory Stark wrote: > There are various attempts at providing better timing infrastructure at l= ow > overhead but I'm not sure what's out there currently. I expect to do this= what > we'll have to do is invent a pg_* abstraction that has various implementa= tions > on different architectures. On Solaris it can use DTrace internally, on L= inux > it might have something else (or more likely several different options > depending on the age and config options of the kernel).=20 I think we need to move to a sampling approach. setitimer is good, except it doesn't tell you if signals have been lost. Given they are most likely to be lost during high disk I/O, they're actually significant. I'm trying to think of a way around that. Then you don't need a cheap gettimeofday at all... Have a nice day, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to l= itigate. --uJrvpPjGB3z5kYrA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFgpQUIB7bNG8LQkwRAuREAJ9Eu251Ysze43TeR+39EO7LEoPmzwCgi6EX +YoCVnOkz0/b+SdQhVrCdGo= =/5fb -----END PGP SIGNATURE----- --uJrvpPjGB3z5kYrA--