public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* decent performance drop for SCSI LLD / SAN initiator when iommu is turned on
@ 2013-05-01 23:11 Or Gerlitz
       [not found] ` <CAJZOPZJ8eF-Q+WFzA-_vvzkpSb41PQjKFo27_Wi3McUccOqs9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Or Gerlitz @ 2013-05-01 23:11 UTC (permalink / raw)
  To: Roland Dreier, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: Yan Burman, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Michael S. Tsirkin

Hi Roland, IOMMU folks,

So we've noted that when configuring the kernel && booting with intel
iommu set to on on a physical node (non VM, and without enabling SRIOV
by the HW device driver) raw performance of the iSER (iSCSI RDMA) SAN
initiator is reduced notably, e.g in the testbed we looked today we
had ~260K 1KB random IOPS and 5.5GBs BW for 128KB IOs with iommu
turned off for single LUN, and ~150K IOPS and 4GBs BW with iommu
turned on. No change on the target node between runs.

This was done over kernel 3.5.x, I will re-run tomorrow with latest
upstream and send the top perf hits for both cases, but does this
rings some bells? basically it makes sense for some extra latency, but
I didn't expect the IOPS and BW drop to be so notable. Is it possible
that at these rates the IOMMU is so much trashed that it can't keep
the perf we have without it being on?

We're a SCSI LLD which is called through the queuecommand API by the
SCSI midlayer, get a scatter-gather list pointing to set of pages,
issue dma_map_sg on the SG list, and then conduct some registration
with the HCA of this set of DMA addresses which produced a token
(rkey) we send to the target node with the request. The target node
does RDMA using that token, without the CPU of the initiator being
involved (the two HCAs talk) later the target sends respose which
means the transaction is done, after we get the response we undo the
registration at the HCA and do dma_unmap_sg.

Or.
--
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-07 14:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 23:11 decent performance drop for SCSI LLD / SAN initiator when iommu is turned on Or Gerlitz
     [not found] ` <CAJZOPZJ8eF-Q+WFzA-_vvzkpSb41PQjKFo27_Wi3McUccOqs9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-02  0:13   ` Roland Dreier
2013-05-02  1:56   ` Michael S. Tsirkin
     [not found]     ` <20130502015603.GC26105-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-02 14:13       ` Yan Burman
     [not found]         ` <0EE9A1CDC8D6434DB00095CD7DB873462CF9D73E-fViJhHBwANKuSA5JZHE7gA@public.gmane.org>
2013-05-03 19:40           ` Don Dutile
     [not found]             ` <518412AC.3070507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-05 14:06               ` Yan Burman
2013-05-06 21:39       ` Or Gerlitz
     [not found]         ` <CAJZOPZLWgXNCEpZjzuizVGPEVPg1G+cHh373ZCoumMx9eAabvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-06 22:35           ` Alexander Duyck
     [not found]             ` <5188304E.9050603-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-05-07 12:12               ` Or Gerlitz
2013-05-07 12:22               ` Michael S. Tsirkin
     [not found]                 ` <20130507122235.GA21361-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-07 14:50                   ` Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox