Re: [HACKERS] kqueue
От
Matteo Beccati
Тема
Re: [HACKERS] kqueue
Дата
Msg-id
297889d4-a248-f78d-1c26-67a4adc28367@beccati.com
Ответ на
Re: [HACKERS] kqueue (Thomas Munro)
Список
Дерево обсуждения
kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Robert Haas <robertmhaas@gmail.com>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Robert Haas <robertmhaas@gmail.com>
Re: kqueue Alvaro Herrera <alvherre@2ndquadrant.com>
Re: kqueue Robert Haas <robertmhaas@gmail.com>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Alvaro Herrera <alvherre@2ndquadrant.com>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Alvaro Herrera <alvherre@2ndquadrant.com>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Marko Tiikkaja <marko@joh.to>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Heikki Linnakangas <hlinnaka@iki.fi>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Andres Freund <andres@anarazel.de>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Matteo Beccati <php@beccati.com>
Re: kqueue Keith Fiske <keith@omniti.com>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Matteo Beccati <php@beccati.com>
Re: kqueue Keith Fiske <keith@omniti.com>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Torsten Zuehlsdorff <mailinglists@toco-domains.de>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Rui DeSousa <rui@crazybean.net>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Rui DeSousa <rui@crazybean.net>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Mark Wong <mark@2ndQuadrant.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: [HACKERS] kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Rui DeSousa <rui@crazybean.net>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@gmail.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Mateusz Guzik <mjguzik@gmail.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Andres Freund <andres@anarazel.de>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: [HACKERS] kqueue Andres Freund <andres@anarazel.de>
Re: [HACKERS] kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] kqueue Matteo Beccati <php@beccati.com>
Re: kqueue Michael Paquier <michael.paquier@gmail.com>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Michael Paquier <michael.paquier@gmail.com>
Re: kqueue Thomas Munro <thomas.munro@enterprisedb.com>
Re: kqueue Tom Lane <tgl@sss.pgh.pa.us>
Re: kqueue Heikki Linnakangas <hlinnaka@iki.fi>
Re: kqueue Simon Riggs <simon@2ndquadrant.com>
Re: kqueue Robert Haas <robertmhaas@gmail.com>
Re: kqueue Andres Freund <andres@anarazel.de>
On 28/09/2018 14:19, Thomas Munro wrote: > On Fri, Sep 28, 2018 at 11:09 AM Andres Freund wrote: >> On 2018-09-28 10:55:13 +1200, Thomas Munro wrote: >>> Matteo Beccati reported a 5-10% performance drop on a >>> low-end Celeron NetBSD box which we have no explanation for, and we >>> have no reports from server-class machines on that OS -- so perhaps we >>> (or the NetBSD port?) should consider building with WAIT_USE_POLL on >>> NetBSD until someone can figure out what needs to be fixed there >>> (possibly on the NetBSD side)? >> >> Yea, I'm not too worried about that. It'd be great to test that, but >> otherwise I'm also ok to just plonk that into the template. > > Thanks for the review! Ok, if we don't get a better idea I'll put > this in src/template/netbsd: > > CPPFLAGS="$CPPFLAGS -DWAIT_USE_POLL" A quick test on a 8 vCPU / 4GB RAM virtual machine running a fresh install of NetBSD 8.0 again shows that kqueue is consistently slower running pgbench vs unpatched master on tcp-b like pgbench workloads: ~1200tps vs ~1400tps w/ 96 clients and threads, scale factor 10 while on select only benchmarks the difference is below the noise floor, with both doing roughly the same ~30k tps. Out of curiosity, I've installed FreBSD on an identically specced VM, and the select benchmark was ~75k tps for kqueue vs ~90k tps on unpatched master, so maybe there's something wrong I'm doing when benchmarking. Could you please provide proper instructions? Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/
В списке pgsql-hackers по дате отправления