From owner-freebsd-questions@FreeBSD.ORG  Mon Nov 10 07:16:44 2014
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 7854065F
 for <freebsd-questions@freebsd.org>; Mon, 10 Nov 2014 07:16:44 +0000 (UTC)
Received: from barracuda.ixsystems.com (mail.ixsystems.com [12.229.62.4])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "*.ixsystems.com",
 Issuer "Go Daddy Secure Certification Authority" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 5442C7D8
 for <freebsd-questions@freebsd.org>; Mon, 10 Nov 2014 07:16:43 +0000 (UTC)
X-ASG-Debug-ID: 1415603802-08ca0441c48c470001-jLrpzn
Received: from mail.iXsystems.com ([10.2.55.1]) by barracuda.ixsystems.com
 with ESMTP id gFjyOjAWNsIY9w7J (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA
 bits=256 verify=NO); Sun, 09 Nov 2014 23:16:42 -0800 (PST)
X-Barracuda-Envelope-From: jkh@mail.turbofuzz.com
X-Barracuda-RBL-Trusted-Forwarder: 10.2.55.1
Received: from [10.8.0.30] (unknown [10.8.0.30])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mail.iXsystems.com (Postfix) with ESMTPSA id 7BF6289FC0;
 Sun,  9 Nov 2014 23:16:41 -0800 (PST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Subject: Re: How thread-friendly is kevent?
From: Jordan Hubbard <jkh@mail.turbofuzz.com>
X-ASG-Orig-Subj: Re: How thread-friendly is kevent?
In-Reply-To: <20141110071353.GO24601@funkthat.com>
Date: Sun, 9 Nov 2014 23:16:37 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <500974D4-581E-46CB-9DC8-A100AAD35F70@mail.turbofuzz.com>
References: <CABXB=RQWxu-d30raZ+FcrnrGsr5gG2Za_=cx8-jCnLSgJDSF=Q@mail.gmail.com>
 <20141110071353.GO24601@funkthat.com>
To: John-Mark Gurney <jmg@funkthat.com>
X-Mailer: Apple Mail (2.1993)
X-Barracuda-Connect: UNKNOWN[10.2.55.1]
X-Barracuda-Start-Time: 1415603802
X-Barracuda-Encrypted: DHE-RSA-CAMELLIA256-SHA
X-Barracuda-URL: https://10.2.0.41:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at ixsystems.com
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.11423
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
Cc: freebsd-hackers@freebsd.org, J David <j.david.lists@gmail.com>,
 "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Nov 2014 07:16:44 -0000


> On Nov 9, 2014, at 11:13 PM, John-Mark Gurney <jmg@funkthat.com> =
wrote:
>=20
> The most common use of this is for socket IO (there isn't much else
> except maybe vnodes) that you can wait on that you'd have such a =
highly
> multithreaded program...  And if you do, it would make more sense to
> use the recent RSS work that Adrian has been working on, and have one
> kq per CPU w/ the proper cpu binding for that set of sockets...

Or just use libdispatch, which feeds a pool of worker threads from a =
single event-handling source that is kind to queues. :)

- Jordan