Re: FW: huge SubtransSLRU and SubtransBuffer wait_event

From: James Pang <jamespang886(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: FW: huge SubtransSLRU and SubtransBuffer wait_event
Date: 2024-03-15 02:03:47
Message-ID: CAHgTRfcfjh9DJf_zVZTpRUPvac_m9cTjPX5KujY3FjnTmce7kQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Alvaro ,
looks like Xact slru buffer use a different way to control size, do we
need to increase Xact and how to increase that ? we plan to increase to
20 times size of existing buffers, any side impact to 20 times increase
these subtrans ?
----------------+-------------+-------------+-----------+--------------+-------------+---------+-----------+-------------------------------
CommitTs | 1284048 | 387594150 | 54530 | 1305858 |
0 | 0 | 5 | 2024-01-19 05:01:38.900698+00
MultiXactMember | 30252 | 23852620477 | 48555852 | 26106 |
0 | 127 | 0 | 2024-01-19 05:01:38.900698+00
MultiXactOffset | 10638 | 23865848376 | 18434993 | 9375 |
127 | 127 | 5 | 2024-01-19 05:01:38.900698+00
Notify | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 2024-01-19 05:01:38.900698+00
Serial | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 2024-01-19 05:01:38.900698+00
Subtrans | 513486 | 12127027243 | 153119082 | 431238 |
0 | 0 | 0 | 2024-01-19 05:01:38.900698+00
Xact | 32107 | 22450403108 | 72043892 | 18064 |
0 | 0 | 3 | 2024-01-19 05:01:38.900698+00
other | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 2024-01-19 05:01:38.900698+00
(8 rows)

Thanks,

James

Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> 於 2024年3月1日週五 下午3:35寫道:

> On 2024-Mar-01, James Pang wrote:
>
> > one question:
> > we need to increase all SLRU buffers together , MULTIXACT, XACT,
> > Subtrans, COMMIT TS , for example, got all of them doubled based on
> > existing size ?
>
> No need.
>
> > or only increase Subtrans , or Subtrans and multixact ?
>
> Just increase the sizes for the ones that are causing you pain. You can
> have a look at pg_stat_slru for some metrics that might be useful in
> determining which are those.
>
> --
> Álvaro Herrera PostgreSQL Developer —
> https://www.EnterpriseDB.com/
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Adithya Kumaranchath 2024-03-19 16:05:44 maintenance_work_mem impact?
Previous Message sud 2024-03-07 20:37:23 Re: Is partition pruning impacted by data type