Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5045967ybn; Sat, 28 Sep 2019 12:12:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU5vsFsWsTkLMoDf0zrZTsj8qTs+xYjCx9J+gnTNfyriBmfx1zdcVXNV4Ztjefzf/FoOML X-Received: by 2002:a17:906:d8a9:: with SMTP id qc9mr12906471ejb.199.1569697951669; Sat, 28 Sep 2019 12:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569697951; cv=none; d=google.com; s=arc-20160816; b=Asq1tDM/UPMpXFlpbtIRMqNEhn8DobhHN136ff1Vxu6tddSOISll2vLnFejyumAxyQ 4Ik9g+J95M9AIMAZxXBKCB5XYPwGz1wSEjxw+ToNOPEJwiEaR3Atv/UcAwPzaFkScD5Q lF9UUvegl254gvRp732q1744wmrM87vRIcyRHVrFThmP6jVhSyzFlBiokVsDHPA9bpT5 Yeaj0puo+yrvpeoj5U/cF7/c+BLWqWps/6sZxbpqLOlxAhfA6HryIxy1mOPgpoAto0Vr Zkul0n9Waos6SQESpxtAfYkgxZLiwA+6uWiq1LnRL72J2DXJ8puNzg/TivtFzu35ln4N g5OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=Dagsr2KKB+jXe1Ag51vN9fiwyX/lkZzpOUTEHD3TPZ0=; b=eQrWFi6NVJUuYQAQYryuD3XZqoTiZIxdOHXUfM97/PcN0MpchXWPOOwk9Ghd7MPYrv t4niJIiIwrcuTZaIVGGugSqhDezO+IS+fuKy+ZVWNi1fDC+L07P7LMf2Q7TDw9ZfZUMi U2Qp9voBJI1r0OKqmUAFP+mc2jvItjj8wlvHBuiVlXe8BgXmqN97mU3A0UAmMfJVpQ7j +8vKG+CWURF4T2S6p3wDEEibvNl3W3w3/8RFS/bo0fg/mBTOoLwCE6GvRXQYSOeDtlw9 PKrI9WcJbGZWyx3M9CLze/D/FVanCO/NfLMu/vHHJTXLvYE/cnvPNeBFOchiyKWV+D3Q TBSw== ARC-Authentication-Results: i=1; mx.google.com; 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 rh23si4395869ejb.75.2019.09.28.12.11.56; Sat, 28 Sep 2019 12:12:31 -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; 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 S1728655AbfI1TH3 (ORCPT + 99 others); Sat, 28 Sep 2019 15:07:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:49886 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726026AbfI1TH3 (ORCPT ); Sat, 28 Sep 2019 15:07:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 678EEB18B; Sat, 28 Sep 2019 19:07:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 28 Sep 2019 21:07:26 +0200 From: Roman Penyaev To: Andrew Morton Cc: hev , linux-fsdevel@vger.kernel.org, Al Viro , Davide Libenzi , Davidlohr Bueso , Dominik Brodowski , Eric Wong , Jason Baron , Linus Torvalds , Sridhar Samudrala , linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode In-Reply-To: <20190927192915.6ec24ad706258de99470a96e@linux-foundation.org> References: <20190925015603.10939-1-r@hev.cc> <20190927192915.6ec24ad706258de99470a96e@linux-foundation.org> Message-ID: X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-09-28 04:29, Andrew Morton wrote: > On Wed, 25 Sep 2019 09:56:03 +0800 hev wrote: > >> From: Heiher >> >> Take the case where we have: >> >> t0 >> | (ew) >> e0 >> | (et) >> e1 >> | (lt) >> s0 >> >> t0: thread 0 >> e0: epoll fd 0 >> e1: epoll fd 1 >> s0: socket fd 0 >> ew: epoll_wait >> et: edge-trigger >> lt: level-trigger >> >> We only need to wakeup nested epoll fds if something has been queued >> to the >> overflow list, since the ep_poll() traverses the rdllist during >> recursive poll >> and thus events on the overflow list may not be visible yet. >> >> Test code: > > Look sane to me. Do you have any performance testing results which > show a benefit? > > epoll maintainership isn't exactly a hive of activity nowadays :( > Roman, would you please have time to review this? Yes, I can revisit this once more next week. Heiher, mind to prepare a patchset with your test suit and make it a part of kselftest? I hope nobody has any objections. -- Roman