Re: pgbench cpu overhead (was Re: lazy vxid locks, v1)

From: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: pgbench cpu overhead (was Re: lazy vxid locks, v1)
Date: 2011-06-14 04:21:50
Message-ID: BANLkTikQMQ3Lf0SdmWP=ywKqRi_eszZMAQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 14, 2011 at 13:09, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> I noticed that pgbench's doCustom (the function highest in the profile
> posted) returns doing nothing if the connection is supposed to be
> "sleeping"; seems an open door for busy waiting.

pgbench uses select() with/without timeout in the cases, no?

--
Itagaki Takahiro

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2011-06-14 04:28:53 Re: On-the-fly index tuple deletion vs. hot_standby
Previous Message Alvaro Herrera 2011-06-14 04:09:49 Re: pgbench cpu overhead (was Re: lazy vxid locks, v1)