Re: Track the amount of time waiting due to cost_delay - Mailing list pgsql-hackers

From Imseih (AWS), Sami
Subject Re: Track the amount of time waiting due to cost_delay
Date
Msg-id 0EA474B6-BF88-49AE-82CA-C1A9A3C17727@amazon.com
Whole thread Raw
In response to Re: Track the amount of time waiting due to cost_delay  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Track the amount of time waiting due to cost_delay
List pgsql-hackers
> I'm not convinced that reporting the number of waits is useful. If we
> were going to report a possibly-inaccurate amount of actual waiting,
> then also reporting the number of waits might make it easier to figure
> out when the possibly-inaccurate number was in fact inaccurate. But I
> think it's way better to report an accurate amount of actual waiting,
> and then I'm not sure what we gain by also reporting the number of
> waits.

I think including the number of times vacuum went into sleep 
will help paint a full picture of the effect of tuning the vacuum_cost_delay 
and vacuum_cost_limit for the user, even if we are reporting accurate 
amounts of actual sleeping.

This is particularly true for autovacuum in which the cost limit is spread
across all autovacuum workers, and knowing how many times autovacuum
went to sleep will be useful along with the total time spent sleeping.

Regards,

Sami


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Track the amount of time waiting due to cost_delay
Next
From: Nathan Bossart
Date:
Subject: Re: Track the amount of time waiting due to cost_delay