From: | Maxim Orlov <orlovmg(at)gmail(dot)com> |
---|---|
To: | Ekaterina Sokolova <e(dot)sokolova(at)postgrespro(dot)ru> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Proposal: Limitations of palloc inside checkpointer |
Date: | 2025-02-26 08:46:45 |
Message-ID: | CACG=ezZ5_TvRtt-a3hwANDGzbHOVXFsr6vPGSgV7WdJyM6tgXw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 25 Feb 2025 at 22:44, Ekaterina Sokolova <e(dot)sokolova(at)postgrespro(dot)ru>
wrote:
> Hi, hackers!
>
> Historically, the checkpointer process use palloc() into
> AbsorbSyncRequests() function. Therefore, the checkpointer does not
> expect to receive a request larger than 1 GB.
Yeah. And the most unpleasant thing is it won't simply fail with an error
or helpful message suggesting a workaround (reduce the amount of shared
memory). Checkpointer will just "stuck".
AFAICS, we have a few options:
1. Leave it as it is, but fatal on allocation of the chunk more than 1G.
2. Use palloc_extended with MCXT_ALLOC_HUGE flag.
3. Do not use any allocation and use CheckpointerShmem->requests directly
in case of > 1G size of the required allocation.
Case (3) is not an option, in my opinion. So, we following (1) or (2).
Personally, I'm for (2), PFA v0 patch.
--
Best regards,
Maxim Orlov.
Attachment | Content-Type | Size |
---|---|---|
v0-0001-Expect-huge-number-of-requests-in-checkpointer.patch | application/octet-stream | 1.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Antonin Houska | 2025-02-26 08:48:08 | Re: why there is not VACUUM FULL CONCURRENTLY? |
Previous Message | Jakub Wartak | 2025-02-26 08:38:20 | Re: Draft for basic NUMA observability |