[pgpool-hackers: 3861] Re: Single shared memory segment for Pgpool-II main process
Tatsuo Ishii
ishii at sraoss.co.jp
Tue Dec 15 13:00:09 JST 2020
> Hi
>
> I was trying to run Pgpool-II on Mac OS/X 10.15.7 and it was refusing to
> start up with a
> "No Space Left on Device" error.
> The reason for that was a default limit on the maximum allowed of
> shared memory segments (kern.sysv.shmmni: 32).
> Although increasing the limit did momentarily solved the problem until I
> tried to ran the second and third Pgpool-II node on the same system (to
> test watchdog).
>
> This made me realize that while the shared memory segment is a limited
> resource yet
> Pgpool-II opens too many shared memory segments.
>
[snip]
> So I cooked up a patch to avoid creating too many shared memory segments by
> creating a
> single shared memory segment big enough to hold all required shared memory
> and put all shared memory variables within that segment one after the other.
>
> What do you think about the changes?
For me your proposal is reasonable and the patch looks good.
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
More information about the pgpool-hackers
mailing list