Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 947069FB1F2 for ; Wed, 29 Nov 2006 09:26:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 27921-10 for ; Wed, 29 Nov 2006 09:25:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from janestcapital.com (www.janestcapital.com [66.155.124.107]) by postgresql.org (Postfix) with ESMTP id 30E349FB1E6 for ; Wed, 29 Nov 2006 09:25:58 -0400 (AST) Received: from [192.168.250.117] [209.213.205.130] by janestcapital.com with ESMTP (SMTPD-9.10) id AA6514B4; Wed, 29 Nov 2006 08:25:57 -0500 Message-ID: <456D8A65.3080400@janestcapital.com> Date: Wed, 29 Nov 2006 08:25:57 -0500 From: Brian Hurt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: RES: Priority to a mission critical transaction References: <4939.1164740825@sss.pgh.pa.us> <200611282344.kASNijt09203@momjian.us> <456CE066.50803@cheapcomplexdevices.com> In-Reply-To: <456CE066.50803@cheapcomplexdevices.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/263 X-Sequence-Number: 22033 Ron Mayer wrote: >Before asking them to remove it, are we sure priority inversion >is really a problem? > >I thought this paper: http://www.cs.cmu.edu/~bianca/icde04.pdf >did a pretty good job at studying priority inversion on RDBMs's >including PostgreSQL on various workloads (TCP-W and TCP-C) and >found that the benefits of setting priorities vastly outweighed >the penalties of priority inversion across all the databases and >all the workloads they tested. > > > I have the same question. I've done some embedded real-time programming, so my innate reaction to priority inversions is that they're evil. But, especially given priority inheritance, is there any situation where priority inversion provides *worse* performance than running everything at the same priority? I can easily come up with situations where it devolves to that case- where all processes get promoted to the same high priority. But I can't think of one where using priorities makes things worse, and I can think of plenty where it makes things better. Brian