From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sagi Grimberg Subject: Re: [PATCH 7/8] xprtrdma: Split the completion queue Date: Thu, 17 Apr 2014 22:11:56 +0300 Message-ID: <5350277C.20608@dev.mellanox.co.il> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <003001cf5a4a$1e3f5320$5abdf960$@opengridcomputing.com> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Steve Wise , 'Chuck Lever' Cc: 'Linux NFS Mailing List' , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org 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. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html