]> git.openfabrics.org - ~shefty/librdmacm.git/commit
From patchwork Tue Mar 25 06:58:44 2014
authorSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:19:25 +0000 (12:19 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:19:25 +0000 (12:19 -0700)
commit4adc28e99e6070210611b4486d170fe43ec576a2
treee8db2daf7a65a047a306c58371b1ef790e1c3489
parent984b1e3c189db9d156ea429c1726bd8739893247
From patchwork Tue Mar 25 06:58:44 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: librdmacm: lazy initialization for ib devices
From: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
X-Patchwork-Id: 3885371
Message-Id: <20140325065839.GA3794@shamir-pc>
To: linux-rdma@vger.kernel.org
Date: Tue, 25 Mar 2014 08:58:44 +0200

Hi Sean,

Resending the patch with proper mail client.

There was a request by teams in Oracle to decouple the HCA limited
ability to open device context and the rising amount of processes that
run on the servers.
It appear that the lowest capable HCA become the limit to all the
processes that attempt to use the library.
This patch try to decouple this by allowing the process to use the
library w/o implicitly opening the device.
Device will be opened only when needed.

BR, Shamir

LIBRDMACM currently opens a device context per configured HCA. This is
usually done in rdma_create_event_channel() or first time whenever
ucma_init() is called. If a process is only going to use one of the
configured HCAs/RDMA IPs then the remaining device contexts are not
used/required. Opening a device context on each device apriori limits the
maximum number of processes that can be supported on a node to the maximum
number of open context supported per HCA regardless of number of HCAs present
in the system.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
src/cma.c