Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B0BD99FB902 for ; Sun, 13 May 2007 12:36:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 82537-06 for ; Sun, 13 May 2007 12:36:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by postgresql.org (Postfix) with ESMTP id 838809FB8F9 for ; Sun, 13 May 2007 12:36:18 -0300 (ADT) Received: from dynamic.hagander.net ([127.0.0.1]) (encrypted and authenticated) by svr2.hagander.net (Postfix) with ESMTP id 3E15DDCC959; Sun, 13 May 2007 17:36:17 +0200 (CEST) Message-ID: <4647309D.4090805@hagander.net> Date: Sun, 13 May 2007 17:37:01 +0200 From: Magnus Hagander User-Agent: Thunderbird 2.0.0.4pre (Windows/20070512) MIME-Version: 1.0 To: Heikki Linnakangas CC: "Jim C. Nasby" , Greg Smith , pgsql-hackers@postgresql.org Subject: Re: Performance monitoring References: <200704030814.33999.peter_e@gmx.net> <46443F02.6060300@enterprisedb.com> <46448DC8.4050102@enterprisedb.com> <20070512211948.GA58786@nasby.net> <4646B61C.1010103@enterprisedb.com> In-Reply-To: <4646B61C.1010103@enterprisedb.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/499 X-Sequence-Number: 103101 Heikki Linnakangas wrote: >>> Yeah, if we have the summary line we don't need the other lines and >>> vice versa. I have sympathy for parsing log files, I've done that a >>> lot in the past and I can see what you mean. Having the individual >>> lines is nice when you're monitoring a running system; you don't get >>> the summary line until the checkpoint is finished. I suppose we can >>> have both the individual lines and the summary, the extra lines >>> shouldn't hurt anyone, and you won't get them unless you turn on the >>> new log_checkpoints parameter anyway. >> >> Not to beat a dead horse, but do we really want to force folks to be >> parsing logs for performance monitoring? Especially if that log parsing >> is just going to result in data being inserted into a table anyway? >> >> I know there's concern about performance of the stats system and maybe >> that needs to be addressed, but pushing users to log parsing is a lot of >> extra effort, non-standard, likely to be overlooked, and doesn't play >> well with other tools. It also conflicts with all the existing >> statistics framework. > > There is two counters for checkpoints in pgstats, the number of timed > (triggered by checkpoint_timeout) and requested (triggered by > checkpoint_segments) checkpoints. > > Maybe we should improve the stats system so that we can collect events > with timestamps and durations, but in my experience log files actually > are the most reliable and universal way to collect real-time performance > information. Any serious tool has a generic log parser. The other > alternative is SNMP. I welcome the efforts on pgsnmpd.. pgsnmpd can't provide any information that's not in the backend. Unless we'd turn it into a log parser, which is not really something I think is a good idea. Log files are great for one kind of thing, "live statistics" through SNMP or the statistics collector for another kind. It only gets wrong when you put them in the wrong place. Things you poll regularly makes a lot more sense in some kind of live view than in a log file. //Magnus