From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 7 14:19:54 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C06227C for ; Sat, 7 Jun 2014 14:19:54 +0000 (UTC) Received: from mail-qa0-x22f.google.com (mail-qa0-x22f.google.com [IPv6:2607:f8b0:400d:c00::22f]) (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 4B82F2155 for ; Sat, 7 Jun 2014 14:19:54 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id s7so5770338qap.6 for ; Sat, 07 Jun 2014 07:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=AftwaK6wQAjxlb7zdwqrSQLl+N9GC5ugBXhpq//BN0c=; b=s3xSj6gZlAJ6fhgE4SUUR+bqBvg0Fx8cgBAeBS8zHIydnI2rmQTw5PvD4s9L7JIj5Y IDxUTmy6QefZbSzROJ3HR10sD4dA9Bw4s7alAgbcrTNxbqZ7lZwk0+Lkn9Zmknn/JkzR Wse2Bp295K0lEr04NkGzUaHQ8/KwuI9/rXRUwGYNA09C408fOiu6xwQGS6zZwM46xc/9 4yrum13hwQDYX4inVNl+eNapir/WzvImqoEOxnU2wNa7TJXc123yy6ijta6Zs3//T0zP 7IwSDZpgWogcfusB6jf4Xhw2nJrYNXJFxsKKJd3s+Mfi6z6zYh46SdnG2Z1Jb9TZAEdz fdNA== X-Received: by 10.224.161.138 with SMTP id r10mr19335165qax.2.1402150793436; Sat, 07 Jun 2014 07:19:53 -0700 (PDT) MIME-Version: 1.0 Sender: mozolevsky@gmail.com Received: by 10.224.100.72 with HTTP; Sat, 7 Jun 2014 07:19:13 -0700 (PDT) In-Reply-To: References: From: Igor Mozolevsky Date: Sat, 7 Jun 2014 15:19:13 +0100 X-Google-Sender-Auth: S34MlG-f8kmUMOzgaGtP3Qbkumc Message-ID: Subject: Re: Best practice for accepting TCP connections on multicore? To: Dirk Engling Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Hackers freeBSD , Daniel Janzon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2014 14:19:54 -0000 On 7 June 2014 01:53, Dirk Engling wrote: > > On Sat, 7 Jun 2014, Daniel Janzon wrote: > > Is there any better way than doing the accept() call in one thread and >> then >> dispatch it to a thread on another core with any user space method? >> > See C10K problem [1]. Why use accept() and not kevent()? You need to keep it portable? > Has anyone rebutted the threads better than events paper[2] yet? 1. http://www.kegel.com/c10k.html 2. https://www.usenix.org/legacy/events/hotos03/tech/full_papers/vonbehren/vonbehren.pdf -- Igor M.