Re: Re: lwlocks and starvation

From: <simon(at)2ndquadrant(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: lwlocks and starvation
Date: 2004-12-02 10:46:02
Message-ID: 28292295$110198370541aeefd9ad3812.00260821@config14.schlund.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Neil Conway <neilc(at)samurai(dot)com> wrote on 02.12.2004, 05:55:43:
> On Wed, 2004-12-01 at 21:51 -0500, Bruce Momjian wrote:
> > Neil, where are we on this? Should we add comments? Add a TODO? A patch?
>
> I'm not sure what the right resolution is. As I said, I don't think it's
> wise to apply a patch that could have a significant impact on
> performance without (a) testing its performance effect and/or (b) having
> any evidence that the problem it addresses actually effects anyone in
> the real world.

I agree, it would be unwise to apply the patch. In contrast to my
comments on the nodeAgg perf tweak, changing the way lwlocks are
allocated could have catastrophic effect on the whole system. We've got
no evidence that it repesents a beneficial performance change, but the
risk of it causing some unforeseen problem in at least one corner of
the code is seems very high.

I'm pleased we found this, but changing it should be deferred till at
least 8.1. Perhaps a TODO item could read "investigating lwlock
scheduling algorithms"? We might yet find that there is no single right
answer and we need different algorithms for different locks...

Best Regards, Simon Riggs

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-12-02 14:58:28 Re: libpq and psql not on same page about SIGPIPE
Previous Message simon 2004-12-02 10:34:02 Re: Re: Please release (was Re: nodeAgg perf tweak)