From owner-freebsd-current@freebsd.org Sun Aug 12 17:50:53 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8D4810780F8 for ; Sun, 12 Aug 2018 17:50:53 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2381B734EE for ; Sun, 12 Aug 2018 17:50:53 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-ed1-x533.google.com with SMTP id r4-v6so7121361edp.9 for ; Sun, 12 Aug 2018 10:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vo25WlJ30zfmGh7gX4QGL4Q3cd4XdNfdvUX4nIMgeRQ=; b=tkmdhWdrUfkTMR+LB1B3icZ32VPA0Mc1vz7gQfR2v1nm2RRO0qq0fZJJCg0wHsHmei oJTA0V5PY3x2kWPQx0l3rIg48YU9hlQiEZwA2MB2nDl1IRyV1N3Iu8XvwJsaSGjaQpDC OyghP4bWKNg4NLNqsrH3m74hN++G2WMlDHbnM5MamrXEf37EzYnHaqhn8VLDPi/dUurx oELJlJ3jCYwnndk+5G8PkbqSPhDE/+OAhSgcx/oMNU0/j6lve07CujuP5GLEG7oS51nQ JWW/5GPEvjeaSNv8NtAZA8+Htw6INujH+sL2f/tnlyWBe17vDHSX/LE858J+M3wwHU22 BXRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vo25WlJ30zfmGh7gX4QGL4Q3cd4XdNfdvUX4nIMgeRQ=; b=okgUjveOHfx4ukbn9qdAKqI2WDL03RsFKO3qrRka0Td4y64VuuXPO1rJcTkJYp2+0W ezQNuppImHdlHUtipqNhpcVP9LHHTmm0EIqJ3nKBqxjsYLjlR9H5GWL5eQWSIYQqWbJM AJj4YmrXSX9xVP27VK+xkAfTp2TUZIKVwug7Q1ACIiKKWvg+4PfWAeIg6hb8JOHosfiH jKT0+0wkDrd6WZGULWgu8dd2oKluvMxa3wvN6pctmpbvEW0AVsMliiwW/KTIxSCHdAtP m/hf456u0oKFXtJ/6fXtzl9hNtbOQx5cllYZB8jjYTPtd/9xdCSddbu2dOcnaaDJrpQm xABA== X-Gm-Message-State: AOUpUlGDow36jWvzHoiuImxnR5J/a4wr+SaRz3rU4WdLlpr1J6wpdWpI gFTzzW06JXgfXon2useZ0Aw+KUes X-Google-Smtp-Source: AA+uWPwXKEC6jzR7rKJ5IxxnjATU/7zMeYfkFVT3sUzVC9bvHItNjrJXYZkE0BahYgiFUcAvlp1jPA== X-Received: by 2002:a50:e885:: with SMTP id f5-v6mr18889211edn.39.1534096252059; Sun, 12 Aug 2018 10:50:52 -0700 (PDT) Received: from localhost ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id a8-v6sm15519418eda.27.2018.08.12.10.50.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Aug 2018 10:50:51 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sun, 12 Aug 2018 20:50:49 +0300 To: Honda Michio Cc: freebsd-current@freebsd.org Subject: Re: TCP server app performance Message-ID: <20180812205049.097f806f@gmail.com> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 17:50:53 -0000 On Sun, 12 Aug 2018 18:50:17 +0200 Honda Michio wrote: > I'm measuring TCP server app performance using my toy web server. > It just accept TCP connections and responds back HTTP OK to the > clients. It monitors sockets using kqueue, and processes each ready > descriptor using a pair of read() and write(). (in more detail, it's > https://github.com/micchie/netmap/tree/paste/apps/phttpd) > PS: 2. SO_REUSEPORT_LB