Re: kqueue
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>,
Thomas Munro <thomas.munro@enterprisedb.com>,
Marko Tiikkaja <marko@joh.to>,
Alvaro Herrera <alvherre@2ndquadrant.com>,
Robert Haas <robertmhaas@gmail.com>,
Pg Hackers <pgsql-hackers@postgresql.org>,
Noah Misch <noah@leadboat.com>
Date: 2016-09-13T20:34:53Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2016-09-13 15:37:22 -0400, Tom Lane wrote: >> (It's a 4-core CPU so I saw little point in pressing harder than >> that.) > I think in reality most busy machines, were performance and scalability > matter, are overcommitted in the number of connections vs. cores. And > if you look at throughput graphs that makes sense; they tend to increase > considerably after reaching #hardware-threads, even if all connections > are full throttle busy. At -j 10 -c 10, all else the same, I get 84928 TPS on HEAD and 90357 with the patch, so about 6% better. >> So at this point I'm wondering why Thomas and Heikki could not measure >> any win. Based on my results it should be easy. Is it possible that >> OS X is better tuned for multi-CPU hardware than FreeBSD? > Hah! Well, there must be some reason why this patch improves matters on OS X and not FreeBSD ... regards, tom lane
Commits
-
Add kqueue(2) support to the WaitEventSet API.
- 815c2f0972c8 13.0 landed
-
Add WL_EXIT_ON_PM_DEATH pseudo-event.
- cfdf4dc4fc96 12.0 cited
-
Be conservative about alignment requirements of struct epoll_event.
- a3b30763cc86 9.6.0 cited
-
Make idle backends exit if the postmaster dies.
- ac1d7945f866 9.6.0 cited