Thread: Re: pgsql: pgstat: store statistics in shared memory.

Re: pgsql: pgstat: store statistics in shared memory.

From
Michael Paquier
Date:
On Thu, Apr 07, 2022 at 04:37:02AM +0000, Andres Freund wrote:
> pgstat: store statistics in shared memory.
>
> Previously the statistics collector received statistics updates via UDP and
> shared statistics data by writing them out to temporary files regularly. These
> files can reach tens of megabytes and are written out up to twice a
> second. This has repeatedly prevented us from adding additional useful
> statistics.

rorqual, that uses --disable-spinlocks and --disable-atomics, is
unhappy after this commit:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rorqual&dt=2022-04-07%2005%3A47%3A03

test_decoding is the one complaining here, and I can reproduce the
issue locally once I build the code with those switches.
--
Michael

Attachment

Re: pgsql: pgstat: store statistics in shared memory.

From
Andres Freund
Date:
Hi,

On 2022-04-07 15:09:27 +0900, Michael Paquier wrote:
> On Thu, Apr 07, 2022 at 04:37:02AM +0000, Andres Freund wrote:
> > pgstat: store statistics in shared memory.
> > 
> > Previously the statistics collector received statistics updates via UDP and
> > shared statistics data by writing them out to temporary files regularly. These
> > files can reach tens of megabytes and are written out up to twice a
> > second. This has repeatedly prevented us from adding additional useful
> > statistics.
> 
> rorqual, that uses --disable-spinlocks and --disable-atomics, is
> unhappy after this commit:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rorqual&dt=2022-04-07%2005%3A47%3A03
> 
> test_decoding is the one complaining here, and I can reproduce the
> issue locally once I build the code with those switches.

Yea, saw that too. About to push the fix...

Greetings,

Andres Freund



Re: pgsql: pgstat: store statistics in shared memory.

From
Andres Freund
Date:
Hi,

On 2022-04-06 23:35:27 -0700, Andres Freund wrote:
> On 2022-04-07 15:09:27 +0900, Michael Paquier wrote:
> > On Thu, Apr 07, 2022 at 04:37:02AM +0000, Andres Freund wrote:
> > > pgstat: store statistics in shared memory.
> > > 
> > > Previously the statistics collector received statistics updates via UDP and
> > > shared statistics data by writing them out to temporary files regularly. These
> > > files can reach tens of megabytes and are written out up to twice a
> > > second. This has repeatedly prevented us from adding additional useful
> > > statistics.
> > 
> > rorqual, that uses --disable-spinlocks and --disable-atomics, is
> > unhappy after this commit:
> > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rorqual&dt=2022-04-07%2005%3A47%3A03
> > 
> > test_decoding is the one complaining here, and I can reproduce the
> > issue locally once I build the code with those switches.
> 
> Yea, saw that too. About to push the fix...

And rorqual seems happy again.

Greetings,

Andres Freund



Re: pgsql: pgstat: store statistics in shared memory.

From
Michael Paquier
Date:
On Thu, Apr 07, 2022 at 12:31:49AM -0700, Andres Freund wrote:
> And rorqual seems happy again.

Thanks!
--
Michael

Attachment