Lists: | pgsql-hackers |
---|
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | pgstat wait timeout |
Date: | 2011-12-15 16:55:48 |
Message-ID: | 1323968148476-5078125.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hi,
I am having a scenario where I get consistent warnings in the pglog folder:
2011-12-11 00:00:03 JST WARNING: pgstat wait timeout
2011-12-11 00:00:14 JST WARNING: pgstat wait timeout
2011-12-11 00:00:24 JST WARNING: pgstat wait timeout
2011-12-11 00:00:31 JST WARNING: pgstat wait timeout
2011-12-11 00:00:44 JST WARNING: pgstat wait timeout
2011-12-11 00:00:52 JST WARNING: pgstat wait timeout
2011-12-11 00:01:03 JST WARNING: pgstat wait timeout
2011-12-11 00:01:11 JST WARNING: pgstat wait timeout
.
.
.
This is impacting database performance.
The issue persists even when I use the database minimally.
I have tried fine-tuning the Auto-vacuum parameters:
Change the parameter autovacuum_vacuum_cost_delay to 40ms ::: Issue is
reproduced 4 hours after this change
Change the parameter autovacuum_max_workers to 20 ::: I got the warning
message 2 times at times 17:20:12 and 17:20:20. After this, no warnings for
5 hours. Then I tried:
Change the parameter autovacuum_vacuum_cost_delay to: 60ms, Change the
parameter autovacuum_max_workers to: 10::: I got the warning message 2 times
at times 17:20:12 and 17:20:20. After this, no warnings for 5 hours
Any Ideas?
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5078125.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | "Tomas Vondra" <tv(at)fuzzy(dot)cz> |
---|---|
To: | "pratikchirania" <pratik(dot)chirania(at)hp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-15 17:13:54 |
Message-ID: | e0a8a093dac51e25144400fce86b78c8.squirrel@sq.gransy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 15 Prosinec 2011, 17:55, pratikchirania wrote:
> Hi,
>
> I am having a scenario where I get consistent warnings in the pglog
> folder:
>
> 2011-12-11 00:00:03 JST WARNING: pgstat wait timeout
> 2011-12-11 00:00:14 JST WARNING: pgstat wait timeout
> 2011-12-11 00:00:24 JST WARNING: pgstat wait timeout
> 2011-12-11 00:00:31 JST WARNING: pgstat wait timeout
> 2011-12-11 00:00:44 JST WARNING: pgstat wait timeout
> 2011-12-11 00:00:52 JST WARNING: pgstat wait timeout
> 2011-12-11 00:01:03 JST WARNING: pgstat wait timeout
> 2011-12-11 00:01:11 JST WARNING: pgstat wait timeout
>
> This is impacting database performance.
It's rather a sign that the I/O is overloaded, although in some cases it
may actually be the cause.
> The issue persists even when I use the database minimally.
Yes, because the file is written periodically - twice a second IIRC. If
the file is large, this may be an issue. What is the pgstat.stat size
(should be in data/global).
> I have tried fine-tuning the Auto-vacuum parameters:
Autovacuum has nothing to do with this.
> Any Ideas?
Move the file to a RAM drive - there's even a config parameter
'stats_temp_directory' to do that. See
http://www.postgresql.org/docs/9.1/static/runtime-config-statistics.html
Tomas
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Tomas Vondra <tv(at)fuzzy(dot)cz> |
Cc: | pratikchirania <pratik(dot)chirania(at)hp(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-15 17:19:03 |
Message-ID: | CABUevEwb8fGXzRfh7o5qD7Xvzzetms3za7r0BHNYzV5Gv8usjg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Dec 15, 2011 at 18:13, Tomas Vondra <tv(at)fuzzy(dot)cz> wrote:
> On 15 Prosinec 2011, 17:55, pratikchirania wrote:
>> Hi,
>>
>> I am having a scenario where I get consistent warnings in the pglog
>> folder:
>>
>> 2011-12-11 00:00:03 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:00:14 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:00:24 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:00:31 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:00:44 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:00:52 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:01:03 JST WARNING: pgstat wait timeout
>> 2011-12-11 00:01:11 JST WARNING: pgstat wait timeout
>>
>> This is impacting database performance.
>
> It's rather a sign that the I/O is overloaded, although in some cases it
> may actually be the cause.
>
>> The issue persists even when I use the database minimally.
>
> Yes, because the file is written periodically - twice a second IIRC. If
> the file is large, this may be an issue. What is the pgstat.stat size
> (should be in data/global).
That was only true prior to 8.4. As of 8.4 it's only written when
necessary, which is usually a lot less than twice / second.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | "Tomas Vondra" <tv(at)fuzzy(dot)cz> |
---|---|
To: | "Magnus Hagander" <magnus(at)hagander(dot)net> |
Cc: | "Tomas Vondra" <tv(at)fuzzy(dot)cz>, "pratikchirania" <pratik(dot)chirania(at)hp(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-15 18:34:13 |
Message-ID: | 7360bf9e3c2abaafcee5d3f3150ae537.squirrel@sq.gransy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 15 Prosinec 2011, 18:19, Magnus Hagander wrote:
> On Thu, Dec 15, 2011 at 18:13, Tomas Vondra <tv(at)fuzzy(dot)cz> wrote:
>> On 15 Prosinec 2011, 17:55, pratikchirania wrote:
>>> Hi,
>>>
>>> I am having a scenario where I get consistent warnings in the pglog
>>> folder:
>>>
>>> 2011-12-11 00:00:03 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:00:14 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:00:24 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:00:31 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:00:44 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:00:52 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:01:03 JST WARNING: pgstat wait timeout
>>> 2011-12-11 00:01:11 JST WARNING: pgstat wait timeout
>>>
>>> This is impacting database performance.
>>
>> It's rather a sign that the I/O is overloaded, although in some cases it
>> may actually be the cause.
>>
>>> The issue persists even when I use the database minimally.
>>
>> Yes, because the file is written periodically - twice a second IIRC. If
>> the file is large, this may be an issue. What is the pgstat.stat size
>> (should be in data/global).
>
> That was only true prior to 8.4. As of 8.4 it's only written when
> necessary, which is usually a lot less than twice / second.
Thanks for the correction. Nevertheless, it would be useful to know what
is the size of the file and what is the I/O usage.
Pratik, can you post the size of the pgstat.stat file and post a few lines
of "iostat -x 1" collected when the "pgstat wait timeout" happens?
Tomas
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-15 18:42:03 |
Message-ID: | 1323974523985-5078391.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Size of pgstat.stat file: 86KB
I did not understand the second part. Where do I get "iostat -x 1" message?
(Its not present in any file in the pg_log folder)
I am using postgres 9.0.1
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5078391.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | "Tomas Vondra" <tv(at)fuzzy(dot)cz> |
---|---|
To: | "pratikchirania" <pratik(dot)chirania(at)hp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-15 18:55:52 |
Message-ID: | 73be530631b8305a5faeaf58a25b7914.squirrel@sq.gransy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 15 Prosinec 2011, 19:42, pratikchirania wrote:
> Size of pgstat.stat file: 86KB
That's pretty small.
> I did not understand the second part. Where do I get "iostat -x 1"
> message?
> (Its not present in any file in the pg_log folder)
iostat is not part of PostgreSQL, it's a tool used to display various I/O
metrics in Linux (and Unix in general). What OS are you using?
It seems the I/O subsystem is so busy it can't write the pgstat.stat on
time, so a warning is printed. You need to find out why the I/O is so
overutilized.
> I am using postgres 9.0.1
That's way too old. Upgrade to 9.0.6.
Tomas
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-19 15:02:46 |
Message-ID: | 1324306966099-5086379.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
OS: I am using Windows server 2003
Version upgrade: hmm.. Is there any fix/change related to this issue in
9.0.6?
If yes, I will upgrade in next scheduled downtime (I am using this as
production server)...
postgres queries are very occasionly used (a set of calls once in 30
minutes).. so I guess I am not calling my DB component heavily.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5086379.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-19 16:45:13 |
Message-ID: | CA+TgmoY8z1jyEsfoeQ9DC2mxOi+fC9zXWqwNGxX7aB8r82H8Qw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Dec 19, 2011 at 10:02 AM, pratikchirania <pratik(dot)chirania(at)hp(dot)com> wrote:
> Version upgrade: hmm.. Is there any fix/change related to this issue in
> 9.0.6?
You could read the release notes for those minor version upgrades.
Based on a quick look through the commit logs, and a quick grep of
release-9-0.sgml, I don't think so.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | pratikchirania <pratik(dot)chirania(at)hp(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-19 16:56:52 |
Message-ID: | 4EEF6CD4.8020006@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 12/19/2011 11:45 AM, Robert Haas wrote:
> On Mon, Dec 19, 2011 at 10:02 AM, pratikchirania<pratik(dot)chirania(at)hp(dot)com> wrote:
>> Version upgrade: hmm.. Is there any fix/change related to this issue in
>> 9.0.6?
> You could read the release notes for those minor version upgrades.
>
> Based on a quick look through the commit logs, and a quick grep of
> release-9-0.sgml, I don't think so.
Would this be alleviated by setting stats_temp_dir to point to a ramdisk?
cheers
andrew
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-20 10:13:30 |
Message-ID: | 1324376010440-5088497.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
>Would this be alleviated by setting stats_temp_dir to point to a ramdisk?
I am not aware how to do this. I am using a windows server OS.
The conf file has the entry : #stats_temp_directory = 'pg_stat_tmp'
What do I change it to? Please elucidate.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5088497.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2011-12-20 13:36:14 |
Message-ID: | 4EF08F4E.4060302@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 12/20/2011 05:13 AM, pratikchirania wrote:
>> Would this be alleviated by setting stats_temp_dir to point to a ramdisk?
> I am not aware how to do this. I am using a windows server OS.
> The conf file has the entry : #stats_temp_directory = 'pg_stat_tmp'
>
> What do I change it to? Please elucidate.
>
On Windows it appears you need third party software for a ramdisk.
Search google for info.
cheers
andrew
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2012-01-04 12:17:17 |
Message-ID: | 1325679437469-5119436.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
I have installed RAMdisk and pointed the parameter:
#stats_temp_directory = 'B:\pg_stat_tmp'
I also tried #stats_temp_directory = 'B:/pg_stat_tmp'
But, still there is no file created in the RAM disk.
The previous stat file is touched even after the change is made. (I have
restarted the service after effecting the change)
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5119436.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | "Tomas Vondra" <tv(at)fuzzy(dot)cz> |
---|---|
To: | "pratikchirania" <pratik(dot)chirania(at)hp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2012-01-04 12:24:13 |
Message-ID: | 1aee4538384b54fbf748f9fff4644995.squirrel@sq.gransy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 4 Leden 2012, 13:17, pratikchirania wrote:
> I have installed RAMdisk and pointed the parameter:
>
> #stats_temp_directory = 'B:\pg_stat_tmp'
> I also tried #stats_temp_directory = 'B:/pg_stat_tmp'
>
> But, still there is no file created in the RAM disk.
> The previous stat file is touched even after the change is made. (I have
> restarted the service after effecting the change)
You have to remove the '#' at the beginning, this way it's commented out.
Tomas
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2012-01-05 06:30:40 |
Message-ID: | 1325745040854-5121894.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Thanks, i missed that.
After doing these changes, following is the observation:
1. The size of the pgstat file is 86KB. Last edited was when i moved the
file location to RAMdisk.
2. The issue persists. I am seeing continuous logs:
2012-01-05 00:00:06 JST WARNING: pgstat wait timeout
2012-01-05 00:00:14 JST WARNING: pgstat wait timeout
2012-01-05 00:00:26 JST WARNING: pgstat wait timeout
.
.
.
2012-01-05 15:36:25 JST WARNING: pgstat wait timeout
2012-01-05 15:36:37 JST WARNING: pgstat wait timeout
2012-01-05 15:36:45 JST WARNING: pgstat wait timeout
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5121894.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2012-01-23 10:09:12 |
Message-ID: | 1327313352035-5165651.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hi,
Any ideas on this?
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5165651.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From: | pratikchirania <pratik(dot)chirania(at)hp(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pgstat wait timeout |
Date: | 2012-01-31 09:10:11 |
Message-ID: | 1328001011668-5444033.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hi,
I Disabled autovacuuming and the warnings stopped logging.
After enabling Autovacuuming, the warnings again started logging.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgstat-wait-timeout-tp5078125p5444033.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.