pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Ron Mayer <rm_pg@cheapcomplexdevices.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-general@postgresql.org
Cc: Jan Wieck <JanWieck@Yahoo.com>
Subject: Re: Priorities for users or queries?
Date: Fri, 16 Feb 2007 20:52:36 -0500 (EST)
Message-ID: <200702170152.l1H1qax16645@momjian.us> (raw)
In-Reply-To: <45D65E08.7000306@cheapcomplexdevices.com>


Hard to argue with that.

---------------------------------------------------------------------------

Ron Mayer wrote:
> Magnus Hagander wrote:
> > Most likely, you do not want to do this. You *can* do it, but you are
> > quite likely to suffer from priority inversion
> 
> Papers I've read suggest that the benefits of priorities
> vastly outweigh the penalties of priority inversion for
> virtually all workloads on most all RDBMs's including
> PostgreSQL.
> 
> This CMU paper in particular tested PostgreSQL (and DB2)
> on TPC-C and TPC-W workloads and found that indirectly
> influencing I/O scheduling through CPU priorities
> is a big win for postgresql.
> 
> http://www.cs.cmu.edu/~bianca/icde04.pdf
> 
> "For TPC-C running on PostgreSQL,
>  the simplest CPU scheduling policy (CPU-Prio) provides
>  a factor of 2 improvement for high-priority transactions,
>  while adding priority  inheritance (CPU-Prio-Inherit)
>  provides a factor of 6 improvement while hardly
>  penalizing low-priority transactions."
> 
> 
> Have you heard of any workload on any RDBMS where priority inversion
> causes more harm than benefit?
> 
>     Ron Mayer
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faq

-- 
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



view thread (30+ messages)  latest in thread

Message-ID: <200702170152.l1H1qax16645@momjian.us>
Permalink:  ../200702170152.l1H1qax16645@momjian.us/
Also on:    postgresql.org/message-id/200702170152.l1H1qax16645@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, rm_pg@cheapcomplexdevices.com, magnus@hagander.net, pgsql-general@postgresql.org, JanWieck@Yahoo.com
  Subject: Re: Priorities for users or queries?
  In-Reply-To: <200702170152.l1H1qax16645@momjian.us>
  References: <45D65E08.7000306@cheapcomplexdevices.com> <200702170152.l1H1qax16645@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox