Re: measuring lwlock-related latency spikes
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndQuadrant.com>
To: Greg Stark <stark@mit.edu>
Cc: Robert Haas <robertmhaas@gmail.com>, pgsql-hackers@postgresql.org
Date: 2012-04-02T07:15:20Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add new files to NLS file lists
- 194b5ea3d072 9.2.0 cited
On Sun, Apr 1, 2012 at 11:12 PM, Greg Stark <stark@mit.edu> wrote: > On Sun, Apr 1, 2012 at 10:27 PM, Simon Riggs <simon@2ndquadrant.com> wrote: >> So lock starvation on the control lock would cause a long wait after >> each I/O, making it look like an I/O problem. > > Except that both of the locks involved in his smoking gun occur > *after* the control lock has already been acquired. The one that's > actually being blocked for a long time is in fact acquiring a shared > lock which the queue jumping couldn't be hurting. Not true, please refer to code at line 544, as I already indicated. My understanding of the instrumentation is that the lock acquired at line 526 will show as the blocker until we reach line 555, so anything in between could be responsible for the wait. (As long as there are multiple possibilities, I will remain convinced that the cause could be any of them.) -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services