From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7342C433E0 for ; Thu, 11 Jun 2020 01:36:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A2FA2072F for ; Thu, 11 Jun 2020 01:36:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbgFKBgx (ORCPT ); Wed, 10 Jun 2020 21:36:53 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:43104 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgFKBgx (ORCPT ); Wed, 10 Jun 2020 21:36:53 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=jiufei.xue@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0U.DrSF7_1591839396; Received: from ali-186590e05fa3.local(mailfrom:jiufei.xue@linux.alibaba.com fp:SMTPD_---0U.DrSF7_1591839396) by smtp.aliyun-inc.com(127.0.0.1); Thu, 11 Jun 2020 09:36:50 +0800 Subject: Re: [PATCH] io_uring: add EPOLLEXCLUSIVE flag to aoid thundering herd type behavior To: Jens Axboe , io-uring@vger.kernel.org Cc: joseph.qi@linux.alibaba.com References: <1591769708-55768-1-git-send-email-jiufei.xue@linux.alibaba.com> From: Jiufei Xue Message-ID: <84caca8b-1e34-cc70-c395-c826b7415f35@linux.alibaba.com> Date: Thu, 11 Jun 2020 09:36:36 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 2020/6/11 上午8:01, Jens Axboe wrote: > On 6/10/20 12:15 AM, Jiufei Xue wrote: >> Applications can use this flag to avoid accept thundering herd. > > So with this, any IORING_OP_POLL_ADD will be exclusive. Seems to me > that the other poll path we have could use it too by default, and > at that point, we could clean this up (and improve) it further by > including that? > Sorry, I have sent the wrong patch. I think the flag should be determined by user, I will send the new version soon. Thanks, JIufei.