Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2902646ybd; Mon, 24 Jun 2019 15:03:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXf4OwfwLi+VmAHY3arVDk8Vj/X0nC48MlVIliZHQ5aVnUZvBfqdS+3v6CCbPO7pNoDUtm X-Received: by 2002:a17:902:86:: with SMTP id a6mr85130321pla.244.1561413835697; Mon, 24 Jun 2019 15:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413835; cv=none; d=google.com; s=arc-20160816; b=b4CwJNl/YRJwaDR98gHc1y1pruZFo2H2Z70g0U+oA2FXMgccfkSzHShhsM0g5zhZq8 LJ6ps0R2xMOxn3+NS3DVBdgQVuzWRsinmyPbnxKgzZR7x06bXiDUUVYeH0uZ6vuCAUL3 mTadXbXpUoYqzi4VCuTBdh1UW8fHCqMRzq936npzoQZ503ShU0uA0B9pEmbMEVnWNwyp 1Mc/3trI1eY/vjUfC6DxnPJfvxalzisEXekqA3zb/pINXvrXTXVlGYOxikPm1BOAiiqL OE71zsCkx06Nv3vRybn7R6vIRZCG1o4drRu8Y77wdPQcOQsFMhmYbupXNM9p26gT0SB3 mBUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v1ni3gZJ5DTYbVR+EneqvuBS0klKngeeCXjk7sRCSGw=; b=lYguM2JXKfXOAak3AyFIeWMtr+9ikOBucfItKP6ZLhipHFAgL4+P+rMElm7r8cQfXM Sjsps4ucj9nyXV5ddGA0hfE1aGJNH1B4AlM3O9exol8Vsr8Em8vjk+rYSvTp8dC3+Fs4 C7j7x7eZH9QAnPrIz6mCJNpNs6OtJNfU69fGhsIuqNcTgfhipA7rKDKSAxddpomccpCh af26pbRkw1zStjdrXy7mxjVjdvkkX32UYxXwX9t03omFK89psqgNZe+zaHhRHws0JR5b rAcayH+e2fMJj7U8mgNf/V+su5IYuzmipdsl8xI7OiGFsH8ZvQOO6hXa+fkz59VOHOgD 45kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Kq4O+bMG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o30si2139073pgl.575.2019.06.24.15.03.40; Mon, 24 Jun 2019 15:03:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Kq4O+bMG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731964AbfFXUi1 (ORCPT + 99 others); Mon, 24 Jun 2019 16:38:27 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40907 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbfFXUi1 (ORCPT ); Mon, 24 Jun 2019 16:38:27 -0400 Received: by mail-lj1-f196.google.com with SMTP id a21so13928812ljh.7 for ; Mon, 24 Jun 2019 13:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v1ni3gZJ5DTYbVR+EneqvuBS0klKngeeCXjk7sRCSGw=; b=Kq4O+bMGVFxakj9kxG9tRFGL2K0FolT9Gw9P0jU0osuV0wrn2LvztvEJI5K2gdqAdO BTY7iQchISdZJb8oUShzSbisNENbHBS1Npx38UjU4RvSM4S5t/DaY+p0iignOeyWElQw 9E9YKGwdKIThg4sSe1kFEnbIZ1quXo9mGQXZA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v1ni3gZJ5DTYbVR+EneqvuBS0klKngeeCXjk7sRCSGw=; b=lhXV0SajKUYgQtvLa33/2F9wsjGo8J+1lNJ0dkEO22iQzB6wkXuS8zbARj4aBuZVGt li/2k/rDXNO6L3GNpmt6qoSwLgeRM2CsYJAD9I9Lc5+GkmIO3I8Oxz7BemUBn1EVspvs TbHPwD1RUx+drrYsmzc2gLlSZ748oMpVz4b4/DaoR68LxWF6TW1pYIgU5m9hODMCw26x JUiMiPkwMvLHPf/azG91ppfna56PP6rXB9cnqY55Su/skm0hh+B0S6YhHf+/AGRZbikd q5jVe23kMxj01FkCuz15Alqz0M3+plVaPNF2GZmTU+i/lEvnahefnTOVVgGkwrkfHa66 d2sQ== X-Gm-Message-State: APjAAAX4i3rysdBzen9/7Fn4jgQEKRUPDjwmxDQDwtALWGwBC4hFiChM oFBXTPm8vZEcf2PCWFdY6f6kaMfmbZE= X-Received: by 2002:a2e:6c0f:: with SMTP id h15mr19052222ljc.36.1561408704378; Mon, 24 Jun 2019 13:38:24 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id u21sm1911728lju.2.2019.06.24.13.38.23 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 13:38:23 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id a21so13928718ljh.7 for ; Mon, 24 Jun 2019 13:38:23 -0700 (PDT) X-Received: by 2002:a2e:9bc6:: with SMTP id w6mr13248937ljj.156.1561408702960; Mon, 24 Jun 2019 13:38:22 -0700 (PDT) MIME-Version: 1.0 References: <20190624144151.22688-1-rpenyaev@suse.de> In-Reply-To: <20190624144151.22688-1-rpenyaev@suse.de> From: Linus Torvalds Date: Tue, 25 Jun 2019 04:38:06 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 00/14] epoll: support pollable epoll from userspace To: Roman Penyaev Cc: Andrew Morton , Al Viro , Peter Zijlstra , Azat Khuzhin , Eric Wong , linux-fsdevel , Linux List Kernel Mailing Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 10:42 PM Roman Penyaev wrote: > > So harvesting events from userspace gives 15% gain. Though bench_http > is not ideal benchmark, but at least it is the part of libevent and was > easy to modify. > > Worth to mention that uepoll is very sensible to CPU, e.g. the gain above > is observed on desktop "Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz", but on > "Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz" measurements are almost the > same for both runs. Hmm. 15% may be big in a big picture thing, but when it comes to what is pretty much a micro-benchmark, I'm not sure how meaningful it is. And the CPU sensitivity thing worries me. Did you check _why_ it doesn't seem to make any difference on the Xeon 4110? Is it just because at that point the machine has enough cores that you might as well just sit in epoll() in the kernel and uepoll doesn't give you much? Or is there something else going on? Because this is a big enough change and UAPI thing that it's a bit concerning if there isn't a clear and unambiguous win. Linus