Parameter - shared_memory_size

Started by Jayadevan Mabout 1 year ago2 messagesgeneral
Jump to latest
#1Jayadevan M
maymala.jayadevan@gmail.com

Hello team,

I am trying to understand the parameter shared_memory_size. It is a static
parameter that reports the size of the shared memory area. Does that imply
that the value may change depending on the memory used by the server?

Regards,
Jayadevan

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Jayadevan M (#1)
Re: Parameter - shared_memory_size

On Fri, 2025-01-10 at 12:14 +0530, Jayadevan M wrote:

I am trying to understand the parameter shared_memory_size. It is a static parameter
that reports the size of the shared memory area. Does that imply that the value may
change depending on the memory used by the server?

No, that value will never change.
It is set once after the start of the server, after the server has allocated
shared buffers and other shared memory segments, and after the modules in
"shared_preload_libraries" have had a chance to allocate shared memory too.

Yours,
Laurenz Albe