All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/13] Request for Comments on SoftiWarp
@ 2018-01-14 22:35 Bernard Metzler
       [not found] ` <20180114223603.19961-1-bmt-OA+xvbQnYDHMbYB6QlFGEg@public.gmane.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 44+ messages in thread
From: Bernard Metzler @ 2018-01-14 22:35 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Bernard Metzler

This patch set contributes a new version of the SoftiWarp
driver, as originally introduced Oct 6th, 2017.

Thank you all for the commments on my last submissiom. It
was vey helpful and encouraging. I hereby re-send a SoftiWarp
patch after taking all comments into account, I hope. Without
introducing SoftiWarp (siw) again, let me fast forward
to the changes made to the last submission:


1. Removed all kernel module parameters, as requested.
   I am not completely happy yet with what came out of
   that, since parameters like the name of interfaces
   siw shall attach to, or if we want to use TCP_NODELAY
   for low ping-pong delay, or disable it for higher
   message rates for multiple outstanding operations,
   were quite handy. I understand I have to find a better
   solution for that. Ideally, we would be able to
   distinguish between global siw driver control (like
   interfaces it attaches to), and per-QP parameters
   (somehow similar to socket options) which allow for
   example to tune delay, setting CRC on/off, or control
   GSO usage.

   For now, the former module parameters became global
   const values, as defined in siw_main.c. So, I gave
   up on flexibility for now, but hope to re-gain it
   with a proper interface.

2. Changed all debug printouts to device debug printouts,
   or removed them.

3. Implemented sending and handling of TERMINATE 
   messages. Determining the information to be carried
   in those messages, as scattered over several RFC's,
   was unexpectedly complex.

   It turned out, that some iwarp hardware only
   rudimentarily implements that iwarp termination
   protocol, lacking sending back useful information
   in case of application failure.

   I anyway think, it is rather helpful to understand why
   a certain RDMA operation failed at peer side, since it
   carries that information back to the initiator.

4. Used Sparse to fix the various style and consistency
   issues of the last version.

5. Removed siw private implementation of DMA mapping ops
   in favour of using in-kernel available dma_virt_ops.

6. Fixed local SQ processing starvation due to high
   inbound rate of READ.requests to same QP.
   
7. Introduced some level of NUMA awareness at transmit
   side. The code tries to serve SQ processing with a
   core from the same NUMA node as the current Ethernet
   adapter.


The current code comes with the following known
limitations:

1. To get rid of module parameters, siw now attaches
   to all interfaces of type ETHER (or additionally
   LOOPBACK, if enabled).

   Please take it as an ad-hoc solution. I understand
   it will likely not be acceptable, but I wanted to
   come out with a reasonable and working update of siw.
   So far, I did not came across any good solution
   for dynamic interface management for siw. I would
   highly appreciate suggestions, and look forward
   for discussion.

2. Performance needs some additional investigation.
   The dynamics of the interaction with kernel TCP
   still needs some better understanding, especially
   regarding clever setting of message flags, socket
   parameters, etc. On a 100Gb/s link, one QP can get
   around 60Gb/s for large messages, and 6.5us WRITE
   delay for small messages, but there is still
   fluctuation, and therefor probably some headroom.

3. I kept the siw_tx_hdt() function, which
   tries to push to TCP all pieces of an iWarp message
   as one message vector. This makes that function
   probably rather complex, but performance seem
   to benefit from that approach.

4. zero copy transmission is currently switched off
   (bool zcopy_tx is false in siw_main.c). Switching
   it on lowers CPU load at sending side, but introduces
   a high rate of mid-frame fragmentation at TCP
   layer (RDMAP frame gets broken into two
   wire transmissions), which hurts receiver 
   performance. It will get re-enabled if those effects
   are better understood, and controlled.


As always, I am very thankful for reviewing the code,
much appreciating the time and effort it takes. I am
very open for discussion and suggestions.

Thanks very much,
Bernard.

Bernard Metzler (13):
  iWARP wire packet format definition
  Main SoftiWarp include file
  Attach/detach SoftiWarp to/from network and RDMA subsystem
  SoftiWarp object management
  SoftiWarp application interface
  SoftiWarp connection management
  SoftiWarp application buffer management
  SoftiWarp Queue Pair methods
  SoftiWarp transmit path
  SoftiWarp receive path
  SoftiWarp Completion Queue methods
  SoftiWarp debugging code
  Add SoftiWarp to kernel build environment

 drivers/infiniband/Kconfig            |    1 +
 drivers/infiniband/sw/Makefile        |    1 +
 drivers/infiniband/sw/siw/Kconfig     |   18 +
 drivers/infiniband/sw/siw/Makefile    |   15 +
 drivers/infiniband/sw/siw/iwarp.h     |  415 +++++++
 drivers/infiniband/sw/siw/siw.h       |  823 +++++++++++++
 drivers/infiniband/sw/siw/siw_ae.c    |  120 ++
 drivers/infiniband/sw/siw/siw_cm.c    | 2184 +++++++++++++++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_cm.h    |  156 +++
 drivers/infiniband/sw/siw/siw_cq.c    |  150 +++
 drivers/infiniband/sw/siw/siw_debug.c |  463 +++++++
 drivers/infiniband/sw/siw/siw_debug.h |   87 ++
 drivers/infiniband/sw/siw/siw_main.c  |  816 ++++++++++++
 drivers/infiniband/sw/siw/siw_mem.c   |  243 ++++
 drivers/infiniband/sw/siw/siw_obj.c   |  338 +++++
 drivers/infiniband/sw/siw/siw_obj.h   |  200 +++
 drivers/infiniband/sw/siw/siw_qp.c    | 1445 ++++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_qp_rx.c | 1531 +++++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_qp_tx.c | 1346 ++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_verbs.c | 1876 ++++++++++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_verbs.h |  119 ++
 include/uapi/rdma/siw_user.h          |  216 ++++
 22 files changed, 12563 insertions(+)
 create mode 100644 drivers/infiniband/sw/siw/Kconfig
 create mode 100644 drivers/infiniband/sw/siw/Makefile
 create mode 100644 drivers/infiniband/sw/siw/iwarp.h
 create mode 100644 drivers/infiniband/sw/siw/siw.h
 create mode 100644 drivers/infiniband/sw/siw/siw_ae.c
 create mode 100644 drivers/infiniband/sw/siw/siw_cm.c
 create mode 100644 drivers/infiniband/sw/siw/siw_cm.h
 create mode 100644 drivers/infiniband/sw/siw/siw_cq.c
 create mode 100644 drivers/infiniband/sw/siw/siw_debug.c
 create mode 100644 drivers/infiniband/sw/siw/siw_debug.h
 create mode 100644 drivers/infiniband/sw/siw/siw_main.c
 create mode 100644 drivers/infiniband/sw/siw/siw_mem.c
 create mode 100644 drivers/infiniband/sw/siw/siw_obj.c
 create mode 100644 drivers/infiniband/sw/siw/siw_obj.h
 create mode 100644 drivers/infiniband/sw/siw/siw_qp.c
 create mode 100644 drivers/infiniband/sw/siw/siw_qp_rx.c
 create mode 100644 drivers/infiniband/sw/siw/siw_qp_tx.c
 create mode 100644 drivers/infiniband/sw/siw/siw_verbs.c
 create mode 100644 drivers/infiniband/sw/siw/siw_verbs.h
 create mode 100644 include/uapi/rdma/siw_user.h

-- 
2.13.6

--
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] 44+ messages in thread

end of thread, other threads:[~2018-02-04 20:39 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 22:35 [PATCH v3 00/13] Request for Comments on SoftiWarp Bernard Metzler
     [not found] ` <20180114223603.19961-1-bmt-OA+xvbQnYDHMbYB6QlFGEg@public.gmane.org>
2018-01-14 22:35   ` [PATCH v3 01/13] iWARP wire packet format definition Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 02/13] Main SoftiWarp include file Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 03/13] Attach/detach SoftiWarp to/from network and RDMA subsystem Bernard Metzler
     [not found]     ` <20180114223603.19961-4-bmt-OA+xvbQnYDHMbYB6QlFGEg@public.gmane.org>
2018-01-23 16:33       ` Steve Wise
2018-01-23 16:43         ` Jason Gunthorpe
     [not found]           ` <20180123164316.GC30670-uk2M96/98Pc@public.gmane.org>
2018-01-23 16:58             ` Steve Wise
2018-01-23 17:05               ` Jason Gunthorpe
     [not found]                 ` <20180123170517.GE30670-uk2M96/98Pc@public.gmane.org>
2018-01-23 17:24                   ` Steve Wise
2018-01-23 17:28                     ` Jason Gunthorpe
     [not found]                     ` <20180123172830.GF30670-uk2M96/98Pc@public.gmane.org>
2018-01-23 17:39                       ` Bernard Metzler
2018-01-23 17:42                       ` Steve Wise
2018-01-23 17:47                         ` Jason Gunthorpe
     [not found]                           ` <20180123174758.GH30670-uk2M96/98Pc@public.gmane.org>
2018-01-23 17:55                             ` Steve Wise
2018-01-23 18:21                           ` Bernard Metzler
2018-01-23 17:21             ` Bernard Metzler
2018-01-23 17:23           ` Bernard Metzler
     [not found]             ` <OF34749881.4216E578-ON0025821E.005F897C-0025821E.005F8983-8eTO7WVQ4XIsd+ienQ86orlN3bxYEBpz@public.gmane.org>
2018-01-23 17:43               ` Steve Wise
2018-01-14 22:35   ` [PATCH v3 04/13] SoftiWarp object management Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 05/13] SoftiWarp application interface Bernard Metzler
     [not found]     ` <20180114223603.19961-6-bmt-OA+xvbQnYDHMbYB6QlFGEg@public.gmane.org>
2018-01-23 17:18       ` Steve Wise
2018-01-23 18:07     ` Bernard Metzler
     [not found]       ` <OF7390EC15.6C2741F2-ON0025821E.0062D222-0025821E.00639402-8eTO7WVQ4XIsd+ienQ86orlN3bxYEBpz@public.gmane.org>
2018-01-23 18:12         ` Steve Wise
2018-01-14 22:35   ` [PATCH v3 06/13] SoftiWarp connection management Bernard Metzler
     [not found]     ` <20180114223603.19961-7-bmt-OA+xvbQnYDHMbYB6QlFGEg@public.gmane.org>
2018-01-30 21:27       ` Steve Wise
2018-01-31 17:28     ` Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 07/13] SoftiWarp application buffer management Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 08/13] SoftiWarp Queue Pair methods Bernard Metzler
2018-01-14 22:35   ` [PATCH v3 09/13] SoftiWarp transmit path Bernard Metzler
2018-01-14 22:36   ` [PATCH v3 10/13] SoftiWarp receive path Bernard Metzler
2018-01-14 22:36   ` [PATCH v3 11/13] SoftiWarp Completion Queue methods Bernard Metzler
2018-01-14 22:36   ` [PATCH v3 12/13] SoftiWarp debugging code Bernard Metzler
2018-01-14 22:36   ` [PATCH v3 13/13] Add SoftiWarp to kernel build environment Bernard Metzler
2018-01-17 16:07   ` [PATCH v3 00/13] Request for Comments on SoftiWarp Steve Wise
2018-01-18  7:29     ` Leon Romanovsky
     [not found]     ` <20180118072958.GW13639-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2018-01-18 17:03       ` Bernard Metzler
     [not found]         ` <OFC86A1EC5.60F00E9A-ON00258219.005DA6A4-00258219.005DBBB9-8eTO7WVQ4XIsd+ienQ86orlN3bxYEBpz@public.gmane.org>
2018-01-18 21:52           ` Steve Wise
2018-01-23 16:31   ` Steve Wise
2018-01-23 16:44     ` Jason Gunthorpe
2018-01-23 17:31 ` Bernard Metzler
2018-02-02 14:37 ` Bernard Metzler
     [not found]   ` <OFD1018BEE.35589194-ON00258228.00505F2B-00258228.00505F31-8eTO7WVQ4XIsd+ienQ86orlN3bxYEBpz@public.gmane.org>
2018-02-02 18:56     ` Jason Gunthorpe
     [not found]   ` <20180202185640.GC9080-uk2M96/98Pc@public.gmane.org>
2018-02-04 20:08     ` Bernard Metzler
     [not found]       ` <OFEF72EEE6.7E5C3FA5-ON0025822A.005B18E4-0025822A.006EA4BB-8eTO7WVQ4XIsd+ienQ86orlN3bxYEBpz@public.gmane.org>
2018-02-04 20:39         ` Jason Gunthorpe

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.