Re: Patch: fix lock contention for HASHHDR.mutex - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Patch: fix lock contention for HASHHDR.mutex
Date
Msg-id 20160127144542.224c0741@fujitsu
Whole thread Raw
In response to Re: Patch: fix lock contention for HASHHDR.mutex  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: Patch: fix lock contention for HASHHDR.mutex  (Dilip Kumar <dilipbalaut@gmail.com>)
List pgsql-hackers
> > This patch affects header files. By any chance didn't you forget to
> > run `make clean` after applying it? As we discussed above, when you
> > change .h files autotools doesn't rebuild dependent .c files:
> >
> 
> Yes, actually i always compile using "make clean;make -j20; make
> install" If you want i will run it again may be today or tomorrow and
> post the result.
> 
> 

Most likely HASHHDR.mutex is not only bottleneck in your case so my
patch doesn't help much. Unfortunately I don't have access to any
POWER8 server so I can't investigate this issue. I suggest to use a
gettimeofday trick I described in a first message of this thread. Its
time consuming but it gives a clear understanding which code is keeping
a lock.



pgsql-hackers by date:

Previous
From: Erik Rijkers
Date:
Subject: Re: Fwd: [DOCS] pgbench doc typos
Next
From: Pavel Stehule
Date:
Subject: Re: [PATCH] better systemd integration