From:
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To:
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Fuhr <mike(at)fuhr(dot)org>,
Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>,
Carlos Benkendorf <carlosbenkendorf(at)yahoo(dot)com(dot)br>,
PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject:
Re: Stats collector performance improvement
Date:
2006-01-03 16:43:23
Message-ID:
200601031643.k03GhNt21271@candle.pha.pa.us (view raw or flat )
Thread:
2005-12-12 18:33:27 from "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
2005-12-12 18:50:16 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-12 23:01:01 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-12-13 01:07:51 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-13 03:20:45 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-12-15 23:44:48 from Michael Fuhr <mike(at)fuhr(dot)org>
2005-12-16 00:06:39 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2005-12-16 05:44:58 from Kevin Brown <kevin(at)sysexperts(dot)com>
2005-12-16 13:17:25 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2005-12-17 02:44:19 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-01-02 18:40:40 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-01-02 18:45:21 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-01-02 19:13:47 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-01-02 20:20:24 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-01-02 21:03:20 from "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
2006-01-02 21:48:45 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-01-03 09:40:53 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2006-01-03 16:35:56 from "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
2006-01-03 23:28:34 from Greg Stark <gsstark(at)mit(dot)edu>
2006-01-03 21:42:53 from Hannu Krosing <hannu(at)skype(dot)net>
2006-01-08 16:49:12 from Greg Stark <gsstark(at)mit(dot)edu>
2006-01-09 15:48:21 from Hannu Krosing <hannu(at)skype(dot)net>
2006-01-02 21:48:15 from Hannu Krosing <hannu(at)skype(dot)net>
2006-01-03 04:06:57 from Jan Wieck <JanWieck(at)Yahoo(dot)com>
2006-01-03 09:54:57 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2006-01-03 16:43:23 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-01-05 00:39:42 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-15 04:05:38 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-15 06:09:43 from "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
2006-06-15 14:27:33 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-06-15 15:57:36 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-15 21:38:01 from Josh Berkus <josh(at)agliodbs(dot)com>
2006-06-15 21:42:16 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-06-15 21:46:29 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-16 01:34:12 from "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
2006-06-16 01:56:34 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-06-16 03:14:06 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-16 03:27:50 from "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
2006-06-16 03:57:22 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-16 04:48:27 from "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
2006-06-16 16:03:22 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-16 16:12:50 from Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
2006-06-16 16:24:03 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2006-06-16 18:14:47 from Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
2006-06-17 17:43:06 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2006-06-15 08:00:27 from "Larry Rosenman" <ler(at)lerctr(dot)org>
2006-06-15 19:58:27 from Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
2006-06-15 20:29:36 from Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Lists:
pgsql-hackers pgsql-patches pgsql-performance
Bruce Momjian wrote:
> Tom Lane wrote:
> A second improvement I discovered is that the statistics collector is
> calling gettimeofday() for every packet received, so it can determine
> the timeout for the select() call to write the flat file. I removed
> that behavior and instead used setitimer() to issue a SIGINT every
> 500ms, which was the original behavior. This eliminates the
> gettimeofday() call and makes the code cleaner. Second patch attached.
I have applied this second patch, with a few small stylistic
improvements.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
In response to
pgsql-performance by date
Next :From: Hannu KrosingDate: 2006-01-03 21:42:53
Subject : Re: Stats collector performance improvement
Previous :From : Jim C. NasbyDate : 2006-01-03 16:35:56
Subject : Re: Stats collector performance improvement
pgsql-hackers by date
Next :From: Jim C. NasbyDate: 2006-01-03 16:43:25
Subject : Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Previous :From : Jim C. NasbyDate : 2006-01-03 16:38:52
Subject : Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
pgsql-patches by date
Next :From: Joe ConwayDate: 2006-01-03 19:30:33
Subject : Re: [BUGS] BUG #2129: dblink problem
Previous :From : Jim C. NasbyDate : 2006-01-03 16:35:56
Subject : Re: Stats collector performance improvement