Re: Logical replication ApplyContext bloat

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Logical replication ApplyContext bloat
Date: 2017-04-20 13:34:02
Message-ID: BFD86E57-D4F9-4BA1-89DA-8E0B5F9AF10F@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> On 19 Apr 2017, at 16:07, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>
> Stas Kelvich wrote:
>
>> With patch MemoryContextStats() shows following hierarchy during slot operations in
>> apply worker:
>>
>> TopMemoryContext: 83824 total in 5 blocks; 9224 free (8 chunks); 74600 used
>> ApplyContext: 8192 total in 1 blocks; 6520 free (4 chunks); 1672 used
>> ApplyMessageContext: 8192 total in 1 blocks; 6632 free (11 chunks); 1560 used
>> ExecutorState: 8192 total in 1 blocks; 7624 free (0 chunks); 568 used
>> ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used
>
> Please update src/backend/utils/mmgr/README to list the new contexts.

Thanks for noting.

Added short description of ApplyContext and ApplyMessageContext to README.

Attachment Content-Type Size
apply_contexts_2.patch application/octet-stream 6.9 KB
unknown_filename text/plain 98 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2017-04-20 13:46:35 Re: Use sync commit for logical replication apply in TAP tests
Previous Message Amit Kapila 2017-04-20 13:24:02 Re: dtrace probes