PATCH: pgbench - option to build using ppoll() for larger connection counts

From: "Rady, Doug" <radydoug(at)amazon(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: PATCH: pgbench - option to build using ppoll() for larger connection counts
Date: 2017-09-25 22:29:26
Message-ID: F6C5AD9B-0262-4C35-BE59-06C3EE6E7F87@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This patch enables building pgbench to use ppoll() instead of select()
to allow for more than (FD_SETSIZE - 10) connections. As implemented,
when using ppoll(), the only connection limitation is system resources.

To maintain the microseconds duration of \SLEEP meta command, ppoll() was used instead of poll().

The patch has been implemented to introduce a minimal of #ifdef/#ifndef
clutter in the code.

(this is just a re-send w/o the 9.6 patch as commitfest latched onto the 9.6 patch)

doug
--
Doug Rady
Amazon Aurora PostgreSQL
radydoug(at)amazon(dot)com

Attachment Content-Type Size
pgbench-ppoll-v1.patch application/octet-stream 11.2 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Nico Williams 2017-09-25 23:42:09 Re: COMMIT TRIGGERs, take n, implemented with CONSTRAINT TRIGGERS
Previous Message Peter Geoghegan 2017-09-25 21:49:37 Re: CREATE COLLATION does not sanitize ICU's BCP 47 language tags. Should it?