[pgpool-hackers: 3862] Re: Single shared memory segment for Pgpool-II main process

Muhammad Usama m.usama at gmail.com
Tue Dec 15 20:20:29 JST 2020


On Tue, Dec 15, 2020 at 9:00 AM Tatsuo Ishii <ishii at sraoss.co.jp> wrote:

> > 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.
>

Thanks for the confirmation. I have committed the patch to master and 4.2
branches.

Best Regards
Muhammad Usama


> Best regards,
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> Japanese:http://www.sraoss.co.jp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20201215/fe138cb9/attachment.htm>


More information about the pgpool-hackers mailing list