public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Devesh Sharma
	<devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [rdma-core v5 0/8]  Broadcom User Space RoCE Driver
Date: Mon, 24 Apr 2017 16:57:23 -0400	[thread overview]
Message-ID: <1493067443.3041.63.camel@redhat.com> (raw)
In-Reply-To: <1493059995-636-1-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>

On Mon, 2017-04-24 at 14:53 -0400, Devesh Sharma wrote:
> This series introduces the user space RoCE driver for the Broadcom
> NetXtreme-E 10/25/40/50 RDMA Ethernet Controller. This driver
> is dependent on the bnxt_re driver posted earlier to linux-rdma
> community and is under reveiw.
> 
> This patch series is based on the latest master of rdma-core
> repository hosted at https://github.com/linux-rdma/rdma-core.git
> 
> The GIT for this library is hosted at following URL on github
> https://github.com/dsharma283/bnxtre-rdma-core.git
> branch: bnxtre-v5
> 
> Please review and give your valuable feedback for the
> betterment.

In general, the driver looked to be in pretty good shape.  I've merged
it into rdma-core.  The only thing I noticed is something that other
drivers do as well, but which I have a personal issue with, and that's
over use of spin locks in user space IMHO.  There are aspects of
context that make spin locks OK in the kernel, but those aspects are
not true in user space (spin lock can be interrupted and process
scheduled away while holding the lock for instance, where as we protect
against that in the kernel, the scheduler doesn't know when user space
is holding a spin lock, scheduler gives precedent and even extra time
slices to processes that appear to be working and making forward
progress, and scheduler can't tell the difference between spinning on a
lock and making forward progress, so spinning can possibly result in
the scheduler keeping the spinning task on the run queue while the task
that needs to be brought back onto the run queue is kept waiting,
things like this).  Unless they've updated pthreads to do stuff that
I'm not aware of anyway, which is always possible, I prefer to see
mutexes instead of spin locks in user space because they are safer and
more likely to result in forward progress in the event of contention.
 But, as I said, that's just my personal bias.  It might be nice if we
could devise a test to quantify these issues and see if I'm worried
over nothing or if contention on user space spin locks can be as bad as
I imagine.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
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:[~2017-04-24 20:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24 18:53 [rdma-core v5 0/8] Broadcom User Space RoCE Driver Devesh Sharma
     [not found] ` <1493059995-636-1-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2017-04-24 18:53   ` [rdma-core v5 1/8] libbnxt_re: introduce bnxtre user space RDMA provider Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 2/8] libbnxt_re: Add support for user memory regions Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 3/8] libbnxt_re: Add support for CQ and QP management Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 4/8] libbnxt_re: Add support for posting and polling Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 5/8] libbnxt_re: Allow apps to poll for flushed completions Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 6/8] libbnxt_re: Enable UD control path and wqe posting Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 7/8] libbnxt_re: Enable polling for UD completions Devesh Sharma
2017-04-24 18:53   ` [rdma-core v5 8/8] libbnxt_re: Add support for atomic operations Devesh Sharma
2017-04-24 20:57   ` Doug Ledford [this message]
     [not found]     ` <1493067443.3041.63.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-04-24 21:51       ` [rdma-core v5 0/8] Broadcom User Space RoCE Driver Jason Gunthorpe
     [not found]         ` <20170424215140.GA14907-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-04-24 23:47           ` Hefty, Sean
     [not found]             ` <1828884A29C6694DAF28B7E6B8A82373AB1169E4-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-04-25 15:28               ` Jason Gunthorpe
     [not found]                 ` <20170425152843.GA17680-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-04-25 15:35                   ` Hefty, Sean

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=1493067443.3041.63.camel@redhat.com \
    --to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox