RE: Changing shared_buffers without restart

From: Jack Ng <Jack(dot)Ng(at)huawei(dot)com>
To: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Cc: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Ni Ku <jakkuniku(at)gmail(dot)com>
Subject: RE: Changing shared_buffers without restart
Date: 2025-05-13 05:03:03
Message-ID: 73f05b290b584e0581c4a96a33daa77b@huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ashutosh,

> > * During resize, simply calculate the new size and call ftruncate on each
> > segment to adjust memory accordingly, no need to mmap/munmap or modify any
> > memory mapping.
> >
> >
> That's same as my understanding.
Great, thanks for confirming!

> I thought I had shared a test program upthread, but I don't find it now. Attached here. Can you please share your test program?
Sure, mine is attached here (it’s based on another test program you shared before :-)

Regards,

Jack Ng

Attachment Content-Type Size
test_hugepage_mappings.c text/plain 5.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yasir 2025-05-13 05:28:51 Re: Why our Valgrind reports suck
Previous Message Rintaro.Ikeda 2025-05-13 03:49:53 Re: Suggestion to add --continue-client-on-abort option to pgbench