All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>,
	David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Sebastian Parschauer
	<sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>,
	linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Jens Axboe <axboe-b10kYP2dOMg@public.gmane.org>
Subject: Re: [PATCH 5/5] IB/srp: Optimize completion queue polling
Date: Tue, 08 Jul 2014 17:45:38 +0300	[thread overview]
Message-ID: <53BC0412.3070706@dev.mellanox.co.il> (raw)
In-Reply-To: <53BBF6E3.3040403-HInyCGIudOg@public.gmane.org>

On 7/8/2014 4:49 PM, Bart Van Assche wrote:

<SNIP>
> Hello Dave,
>
> Thanks for digging up this information and also for sharing it. This is
> interesting. What I noticed is that the in the SRP target driver
> attached to the previous e-mail ("srptest.c") one command at a time is
> processed. However, in the SRP target driver I ran my own tests with
> (based on SCST) multiple SCSI commands are processed simultaneously by a
> single thread. A finite state machine is associated with each SCSI
> command and events like IB work completions trigger transitions of that
> state machine. So that might be a possible explanation why my
> measurement results were different.
>
> However, before I repost (a variant of) this patch I will try to find a
> way to combine the advantages of interrupt-based processing (low
> latency) and the blk-iopoll approach (minimal time spent in interrupt
> context).

Hey Bart, Dave & Or (CC'ing Jens)

Or and myself did some experiments with blk-iopoll for iSER some time ago.
We noticed that we got better overall performance using this type of 
"internal" budget logic (vs. blk-iopoll approach)
while stats clearly show more interrupts occurring. The reason for that 
is still unknown to us given that iSER completion
context is softirq to begin with (tasklet).

We didn't submit the "internal" budget solution since we believe that 
the correct way to go is using blk-iopoll.
So IMHO the correct way to continue here is with the blk-iopoll approach 
trying to resolve the unexplained performance
gaps we got in the past.

I do agree with Or that SRP should benefit using blk-iopoll as well, the 
canonical Latency lost here seems pretty minor
against the gain in decreasing the amount of interrupts.

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

  parent reply	other threads:[~2014-07-08 14:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 13:44 [PATCH 0/5] SRP initiator patches for kernel 3.17 Bart Van Assche
2014-07-03 14:17 ` Bart Van Assche
     [not found]   ` <53B565EB.50301-HInyCGIudOg@public.gmane.org>
2014-07-03 14:19     ` Bart Van Assche
2014-07-03 15:06   ` Sagi Grimberg
     [not found] ` <53B55E55.5040907-HInyCGIudOg@public.gmane.org>
2014-07-03 13:45   ` [PATCH 1/5] scsi_transport_srp: Fix fast_io_fail_tmo=dev_loss_tmo=off behavior Bart Van Assche
2014-07-03 13:46   ` [PATCH 2/5] IB/srp: Fix deadlock between host removal and multipathd Bart Van Assche
2014-07-03 13:47   ` [PATCH 3/5] IB/srp: Fix residual handling Bart Van Assche
     [not found]     ` <53B55EE0.1050403-HInyCGIudOg@public.gmane.org>
2014-07-03 17:00       ` David Dillow
2014-07-03 13:47   ` [PATCH 4/5] IB/srp: Use P_Key cache for P_Key lookups Bart Van Assche
2014-07-03 13:48   ` [PATCH 5/5] IB/srp: Optimize completion queue polling Bart Van Assche
     [not found]     ` <53B55F1F.6000704-HInyCGIudOg@public.gmane.org>
2014-07-03 16:46       ` Or Gerlitz
     [not found]         ` <CAJZOPZ+RPe8B_KhKZ-8-S6g871-EKQSnExZgsZ2Z+bo-9L=P9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-04  9:59           ` Bart Van Assche
     [not found]             ` <53B67B0E.5070004-HInyCGIudOg@public.gmane.org>
2014-07-08  7:55               ` Or Gerlitz
     [not found]                 ` <CAJZOPZJokriDMCAxnoXJo+RTRvtDquSMGpQThp8OoDnHjKU32A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-08  8:11                   ` Bart Van Assche
     [not found]                     ` <53BBA79A.9000000-HInyCGIudOg@public.gmane.org>
2014-07-08  9:24                       ` Or Gerlitz
2014-07-03 16:53       ` David Dillow
2014-07-03 17:05       ` David Dillow
     [not found]         ` <1404407103.32754.3.camel-a7a0dvSY7KqLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2014-07-04 10:48           ` Bart Van Assche
     [not found]             ` <1404501176.16296.18.camel@haswell.thedillows.org>
     [not found]               ` <1404501176.16296.18.camel-a7a0dvSY7KqLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2014-07-08 13:49                 ` Bart Van Assche
     [not found]                   ` <53BBF6E3.3040403-HInyCGIudOg@public.gmane.org>
2014-07-08 14:45                     ` Sagi Grimberg [this message]
2014-07-09  6:22                     ` David Dillow
2014-07-03 13:55   ` [PATCH 0/5] SRP initiator patches for kernel 3.17 James Bottomley
2014-07-03 17:03   ` David Dillow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BC0412.3070706@dev.mellanox.co.il \
    --to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=axboe-b10kYP2dOMg@public.gmane.org \
    --cc=bvanassche-HInyCGIudOg@public.gmane.org \
    --cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.