Re: [PATCH] pgbench --throttle (submission 7 - with lag measurement)

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Robert Haas <robertmhaas(at)gmail(dot)com>, Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] pgbench --throttle (submission 7 - with lag measurement)
Date: 2013-06-23 20:08:13
Message-ID: alpine.DEB.2.02.1306232203250.1793@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> An additional thought:

Yet another thought, hopefully final on this subject.

I think that the probability of a context switch is higher when calling
PQfinish than in other parts of pgbench because it contains system calls
(e.g. closing the network connection) where the kernel is likely to stop
this process and activate another one.

--
Fabien.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2013-06-23 20:11:13 Re: updated emacs configuration
Previous Message Noah Misch 2013-06-23 20:03:09 Re: updated emacs configuration