Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2791843ybf; Mon, 2 Mar 2020 15:53:40 -0800 (PST) X-Google-Smtp-Source: ADFU+vunqhntes7rFbxpG6t8B9JhRyeVRhZ0mNrZ4R2qEA7SgwhaN1UETHNmFAFU1oFuNTtqyGRe X-Received: by 2002:a9d:6e15:: with SMTP id e21mr1280886otr.289.1583193220387; Mon, 02 Mar 2020 15:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583193220; cv=none; d=google.com; s=arc-20160816; b=RV2DTRLhSXLeiiojR2qNI0PE+/XJyaC1y7S/nuWdyPU6sK2H1nocTBBigSKJHLeDh6 lBqAzu33uYadIxf7CwrO3xNzK2ZiqGzXQM1ABrAx90w8v98eyOMTiPf9qBdyUcCCLMYq 5rwbdHJAHcwO9yqxpkF4i6GAauniF9jcXdXJtYtWl5UsP5mZEsbYJBSmg8HJ2KyyzwgZ a+XzgvClObb2ury5vmuVLxUcHjuBXRUaOAaNWYofinbztohWVC/UWl4KaYv1e6i0mrKJ WlXUyamr1lJ87pFugjlt5E+rBVZW3uh48AoOvXXty4gUQPpYz9i8jphdSOM9ypqIjAN/ 2K4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AvHrxq1NkvlXMwv2RZFb1dLOcQ1MH5mNxcVBEEoHKyQ=; b=zM5bBC8EjR3VrFfmP0Mz0GgxonY0kHl85rzmOBxLw140oXhu4SA8eolaG0FIMxn7Ow oEVA9X4L2uK/W+rtbot/qWIZq3/yUYQG7htfE1twFDwOCSTGX+nzYnnsv07eZQIm8L/2 qQ/vP+V80iGAKSSDQdxj+Dfq+e9r2Z0N4WrnNyxkWxanNUeMdwY90j8bcL8K/NIa7vSK p0GQzJPqU0H77o9u4UiGMs84x0U2uT+goKyi9504ionGMUpDyhgbagfd24Y/hZ8h8MZy 2z61Bk/K7vxtRPvToXSZABu9iNbYyr4sHePdmQLpUiARses7mbvxEu+vQtZ0ITTeaSc2 9RTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sr7fIpIw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si7319791otq.101.2020.03.02.15.53.26; Mon, 02 Mar 2020 15:53:40 -0800 (PST) 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=@kernel.org header.s=default header.b=sr7fIpIw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgCBXxW (ORCPT + 99 others); Mon, 2 Mar 2020 18:53:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:59888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgCBXxW (ORCPT ); Mon, 2 Mar 2020 18:53:22 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8010217F4; Mon, 2 Mar 2020 23:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583193202; bh=hbNqnPBtUpqybgt2vSUd9gxcJQj6Ya7I+Wr2dvxHQMk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sr7fIpIwoMSL9fC5yHwuK9O5/DvukD8YVJaEI9R2wQ5wWp7fDaZHq73qGg5syjDU6 GHp6Ebwu6+6LmECFgdqy8tEBJ+zDrNI+cF631eKBRFS1P2siNADEzijU3kf54SR/U5 W3SNhBkaaptScM7TPN3bg+eJRmXxp6umHHsjzlkE= Date: Mon, 2 Mar 2020 15:53:19 -0800 From: Jakub Kicinski To: "Machulsky, Zorik" Cc: Josh Triplett , "Belgazal, Netanel" , "Kiyanovski, Arthur" , "Tzalik, Guy" , "Bshara, Saeed" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ena: Speed up initialization 90x by reducing poll delays Message-ID: <20200302155319.273ee513@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <8B4A52CD-FC5A-4256-B7DE-A659B50654CE@amazon.com> References: <20200229002813.GA177044@localhost> <8B4A52CD-FC5A-4256-B7DE-A659B50654CE@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Mar 2020 23:16:32 +0000 Machulsky, Zorik wrote: > =EF=BB=BFOn 2/28/20, 4:29 PM, "Josh Triplett" wro= te: >=20 > Before initializing completion queue interrupts, the ena driver uses > polling to wait for responses on the admin command queue. The ena dri= ver > waits 5ms between polls, but the hardware has generally finished long > before that. Reduce the poll time to 10us. > =20 > On a c5.12xlarge, this improves ena initialization time from 173.6ms = to > 1.920ms, an improvement of more than 90x. This improves server boot t= ime > and time to network bringup. > =20 > Thanks Josh, > We agree that polling rate should be increased, but prefer not to do > it aggressively and blindly. For example linear backoff approach > might be a better choice. Please let us re-work a little this patch > and bring it to review. Thanks! =20 Up to Josh if this is fine with him, but in my experience "let us rework your patch behind the close doors" is not the response open source contributors are expecting.