Re: DSA failed to allocate memory

2022-04-06 Thread Dongming Liu
On Mon, Mar 28, 2022 at 3:53 PM Thomas Munro wrote: > Hi Dongming, > > Thanks for the report, and for working on the fix. Can you please > create a commitfest entry (if you haven't already)? I plan to look at > this soon, after the code freeze. I created a commitfest entry https://commitfest.p

Re: DSA failed to allocate memory

2022-03-28 Thread Dongming Liu
On Fri, Mar 18, 2022 at 3:30 PM Dongming Liu wrote: > So it's OK for a segment to be in a bin that suggests that it has more >> consecutive free pages than it really does. But it's NOT ok for a >> segment to be in a bin that suggests it has fewer consecutive pages &

Re: DSA failed to allocate memory

2022-03-18 Thread Dongming Liu
> > So it's OK for a segment to be in a bin that suggests that it has more > consecutive free pages than it really does. But it's NOT ok for a > segment to be in a bin that suggests it has fewer consecutive pages > than it really does. If dsa_free() is putting things back into the > wrong place, th

DSA failed to allocate memory

2022-01-24 Thread Dongming Liu
Hi, I am using Dynamic shared memory areas(DSA) to manage some variable length shared memory, I've found that in some cases allocation fails even though there are enough contiguous pages. The steps to reproduce are as follows: 1. create a dsa area with a 1MB DSM segment 2. set its size limit to 1

Re: Problem with synchronous replication

2019-10-29 Thread Dongming Liu
On Wed, Oct 30, 2019 at 9:12 AM Michael Paquier wrote: > On Tue, Oct 29, 2019 at 01:40:41PM +0800, Dongming Liu wrote: > > Can someone help me to confirm that these two problems are bugs? > > If they are bugs, please help review the patch or provide better fix > > suggest

Re: Problem with synchronous replication

2019-10-29 Thread Dongming Liu
Can someone help me to confirm that these two problems are bugs? If they are bugs, please help review the patch or provide better fix suggestions. Thanks. Best regards, -- Dongming Liu -- From:LIU Dongming Sent At:2019 Oct. 25 (Fri

Problem with synchronous replication

2019-10-25 Thread Dongming Liu
be deleted by SyncRepCancelWait is remained. The easiest way to fix this is to swap the order of step b and step c. On the other hand, let sigsetjmp clean up the queue may also be a good choice. What do you think? Attached the patch, any feedback is greatly appreciated. Best regards, -- Dongming