Re: Double partition lock in bufmgr

2021-10-11 Thread Yura Sokolov
В Пт, 18/12/2020 в 15:20 +0300, Konstantin Knizhnik пишет: > Hi hackers, > > I am investigating incident with one of out customers: performance of > the system isdropped dramatically. > Stack traces of all backends can be found here: > http://www.garret.ru/diag_20201217_102056.stacks_59644 > (th

Re: Double partition lock in bufmgr

2020-12-29 Thread Masahiko Sawada
Hi Konstantin, On Sat, Dec 19, 2020 at 9:50 PM Konstantin Knizhnik wrote: > > > > On 19.12.2020 10:53, Zhihong Yu wrote: > > Hi, > > w.r.t. the code in BufferAlloc(), the pointers are compared. > > > > Should we instead compare the tranche Id of the two LWLock ? > > > > Cheers > > As far as LWloc

Re: Double partition lock in bufmgr

2020-12-19 Thread Konstantin Knizhnik
On 19.12.2020 10:53, Zhihong Yu wrote: Hi, w.r.t. the code in BufferAlloc(), the pointers are compared. Should we instead compare the tranche Id of the two LWLock ? Cheers As far as LWlocks are stored in the array, comparing indexes in this array (tranche Id) is equivalent to comparing ele

Re: Double partition lock in bufmgr

2020-12-18 Thread Zhihong Yu
Hi, w.r.t. the code in BufferAlloc(), the pointers are compared. Should we instead compare the tranche Id of the two LWLock ? Cheers

Double partition lock in bufmgr

2020-12-18 Thread Konstantin Knizhnik
Hi hackers, I am investigating incident with one of out customers: performance of the system isdropped dramatically. Stack traces of all backends can be found here: http://www.garret.ru/diag_20201217_102056.stacks_59644 (this file is 6Mb so I have not attached it to this mail). What I have se