From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Florian Pflug <fgp(at)phlo(dot)org> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Getting "ERROR: no unpinned buffers available" on HEAD, should I investigate? |
Date: | 2010-12-15 03:51:13 |
Message-ID: | 1292384889-sup-7158@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Excerpts from Florian Pflug's message of mar dic 14 21:51:47 -0300 2010:
> Hi
>
> When I run my FK concurrency test suite on an unpatched HEAD, I'm getting quite a lot of "no unpinned buffers available" errors.
>
> Increasing shared_buffers from 32MB (the default) to 64MB makes the errors go away, as does setting fsync=off.
>
> I'm not sure how many buffers a particular backend can hold at any time. I'd have though it'd be something like one per relation and scan-in-progress, with indices counting as relations. In that case, with max_connections=100, my tests shouldn't pin more than a couple of hundred buffers at a time. That, however, amounts to about 1MB or so of pinned buffers, so it shouldn't break with shared_buffers=32MB.
>
> I'm also confused by fsync=off making a difference. That should make writing dirty buffers slower, but would it affect the number of buffers pinned?
>
> In short, I'm wondering whether I might have hit a bug, or if I should just increase shared_buffers and move on.
I remember a report of this problem some time ago, and I wasn't able to
explain it -- my calculations said, like yours, that the maximum amount
of pinned buffers I expected shouldn't have been enough to consume the
whole pool.
It would be good to trace down to the root cause.
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2010-12-15 03:54:39 | bug in SignalSomeChildren |
Previous Message | Itagaki Takahiro | 2010-12-15 03:43:20 | Re: pg_execute_from_file, patch v10 |