From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 06:59:52 2014 Return-Path: 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 9FB57A6; Mon, 10 Nov 2014 06:59:52 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31812393; Mon, 10 Nov 2014 06:59:52 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x13so8136209wgg.8 for ; Sun, 09 Nov 2014 22:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=HNvRXRSp8PanPj4UNYqdDnRHON571/q+RAiK9Oxs8oQ=; b=F4Ix89gAa8yUsiYs1r1ZDhgIBymCh33BnigFM4HCSIMXvcrQW7gJN+TgJKnQSmzkrb EMPasoS18l6UfPGUMxIh+Z/A6R/9KCWfDOrHzuFKrjJrxJudla6c9gGPusrUAlwsXaY6 aRZcmCTkl60qqFx5dtzgg3lNn5ZUT92tG8dLIcztjXrj2Acp7fHTbcifGadfRCBu8Ysy GvrEqJt0q8XKzx4AX8RveqmanRpHmTtd2cNt/GgXOSumYtu0W1+c78jlVAy8Kp5sXR5s sxo+ywuJJ2ZV3Drpe4t1Tec0pgAC5TS2MYttoFNo2bHQpawInOeHNctV8FqEcukLfW0f 6qOA== MIME-Version: 1.0 X-Received: by 10.180.87.33 with SMTP id u1mr27176011wiz.20.1415602790556; Sun, 09 Nov 2014 22:59:50 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Sun, 9 Nov 2014 22:59:50 -0800 (PST) In-Reply-To: References: Date: Sun, 9 Nov 2014 22:59:50 -0800 X-Google-Sender-Auth: MgJM3mh7AF2QYCzINp1gdmIlYxM Message-ID: Subject: Re: How thread-friendly is kevent? From: Adrian Chadd To: J David Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2014 06:59:52 -0000 On 9 November 2014 17:50, J David wrote: > On Sun, Nov 9, 2014 at 4:17 PM, Adrian Chadd wrote: >> Are you putting the same FD into multiple threads and hoping that only >> one note will wake up on one listening kqueue? > > That's the behavior observed in testing. That's somewhat surprising, > hence the question. Hm, I'm not sure if that's defined behaviour. :) -adrian