Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2014 17:29:48 -0500
From:      J David <j.david.lists@gmail.com>
To:        "K. Macy" <kmacy@freebsd.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How thread-friendly is kevent?
Message-ID:  <CABXB=RTsktT7U1r5yzmwWVpJoiNFJBeT-in30r9rdo-tT-rfhQ@mail.gmail.com>
In-Reply-To: <CAHM0Q_MJjH=Cq0AKTn64RkzgwPBMoKnDVu-GvcX6qBcFYDMpOg@mail.gmail.com>
References:  <CABXB=RQWxu-d30raZ+FcrnrGsr5gG2Za_=cx8-jCnLSgJDSF=Q@mail.gmail.com> <20141110071353.GO24601@funkthat.com> <CABXB=RStLz6J9L3--KsM308-0h0N5ZeZZvw1GbDi+ZvKO4U64g@mail.gmail.com> <20141112084909.GV24601@funkthat.com> <CAHM0Q_MJjH=Cq0AKTn64RkzgwPBMoKnDVu-GvcX6qBcFYDMpOg@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, Nov 12, 2014 at 5:14 PM, K. Macy <kmacy@freebsd.org> wrote:
> This may not be related, but it's interesting: a client I worked for
> many years ago switched from kqueue to poll for their web server
> because kqueue did not distribute the workload evenly. I imagine this
> is unchanged.

It looks pretty good in testing:

$ ./kqtest server

Server thread ends after 2630979 events.

Server thread ends after 2600452 events.

Server thread ends after 2525542 events.

Server thread ends after 2418386 events.

Server thread ends after 2524895 events.

$


That's a small-scale test on a VM with two CPU's running five threads,
but the results appear to hold.  (This is using the _DISPATCH model.)

Thanks!



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CABXB=RTsktT7U1r5yzmwWVpJoiNFJBeT-in30r9rdo-tT-rfhQ>