Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-we0-f182.google.com ([74.125.82.182]:63944 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbaDQTL7 (ORCPT ); Thu, 17 Apr 2014 15:11:59 -0400 Received: by mail-we0-f182.google.com with SMTP id p61so841668wes.13 for ; Thu, 17 Apr 2014 12:11:58 -0700 (PDT) Message-ID: <5350277C.20608@dev.mellanox.co.il> Date: Thu, 17 Apr 2014 22:11:56 +0300 From: Sagi Grimberg MIME-Version: 1.0 To: Steve Wise , "'Chuck Lever'" CC: "'Linux NFS Mailing List'" , linux-rdma@vger.kernel.org Subject: Re: [PATCH 7/8] xprtrdma: Split the completion queue References: <20140414220041.20646.63991.stgit@manet.1015granger.net> <20140414222323.20646.66946.stgit@manet.1015granger.net> <534E7C1C.5070407@dev.mellanox.co.il> <534E8608.8030801@opengridcomputing.com> <534EA06A.7090200@dev.mellanox.co.il> <534F7D5F.1090908@dev.mellanox.co.il> <003001cf5a4a$1e3f5320$5abdf960$@opengridcomputing.com> In-Reply-To: <003001cf5a4a$1e3f5320$5abdf960$@opengridcomputing.com> Content-Type: text/plain; charset=windows-1252; format=flowed Sender: linux-nfs-owner@vger.kernel.org List-ID: On 4/17/2014 5:34 PM, Steve Wise wrote: > You could use a small array combined with a loop and a budget count. So the code would > grab, say, 4 at a time, and keep looping polling up to 4 until the CQ is empty or the > desired budget is reached... Bingo... couldn't agree more. Poll Arrays are a nice optimization, but large arrays will just burden the stack (and might even make things worse in high workloads...) Sagi.