Hi,
On 2024-09-12 14:55:49 -0700, Robert Pang wrote:
> Hi Andres
>
> Thanks for the AIO patch update. I gave it a try and ran into a FATAL
> in bgwriter when executing a benchmark.
>
> 2024-09-12 01:38:00.851 PDT [2780939] PANIC: no more bbs
> 2024-09-12 01:38:00.854 PDT [2780473] LOG: background writer process
> (PID 2780939) was terminated by signal 6: Aborted
> 2024-09-12 01:38:00.854 PDT [2780473] LOG: terminating any other
> active server processes
>
> I debugged a bit and found that BgBufferSync() is not capping the
> batch size under io_bounce_buffers like BufferSync() for checkpoint.
> Here is a small patch to fix it.
Good catch, thanks!
I am hoping (as described in my email to Noah a few minutes ago) that we can
get away from needing bounce buffers. They are a quite expensive solution to a
problem we made for ourselves...
Greetings,
Andres Freund