How to calculate shared memory size

2020-09-15 Thread Rébeli-Szabó Tamás
Hello all, I want to do a proper calculation of the number of huge pages needed for PostgreSQL to start. For that I need to know how much shared memory will be allocated at startup. Looking at the shared memory calculation in the source (ipci.c), I can see that two terms stand out: siz

How to calculate shared memory size

2020-09-15 Thread Rébeli-Szabó Tamás
Hello all, I want to do a proper calculation of the number of huge pages needed for PostgreSQL to start. To do that, I need a good approximation of how much shared memory will be requested at server startup. Looking at the shared memory calculation in the source (ipci.c), I can see that tw

Re: How to calculate shared memory size

2020-09-15 Thread Tom Lane
=?UTF-8?Q?R=C3=A9beli-Szab=C3=B3_Tam=C3=A1s?= writes: > I want to do a proper calculation of the number of huge pages needed for > PostgreSQL to start. > For that I need to know how much shared memory will be allocated at > startup. TBH, the only method that's not going to break over time is "s