From: Shamir Rabinovith <shamir.rabinovitch-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] librdmacm: lazy initialization for ib devices]
Date: Sun, 30 Mar 2014 13:27:32 +0300 [thread overview]
Message-ID: <20140330102731.GA4433@shamir-pc> (raw)
In-Reply-To: <5333E37B.5080202-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
On Thu, Mar 27, 2014 at 10:38:19AM +0200, Or Gerlitz wrote:
> sorry, but you didn't provide an answer to my question - why is
> ibv_open_device failing if called from N > M (what's
> N and what's M) processes/threads.
>
> Or.
The limit is due to firmware UAR BAR size. The issue happen here:
ib_uverbs_get_context -> ibdev->alloc_ucontext -> mlx4_ib_alloc_ucontext
-> mlx4_uar_alloc -> mlx4_bitmap_alloc . mlx4_QUERY_DEV_CAP return value
of 4194304 when reading the UAR from the firmware which turn to UAR
table size of 1024 in mlx4_init_uar_table. This is the result of
dividing the UAR BAR size by page size. We can try to extend the size of
the UAR BAR for Oracle servers as we know the HW and we can verify it
will boot with this change but anyhow we will still hit the limit of
number of processes that can open the library. More then this - UAR is
set to value that will allow less stronger machines to boot properly so
if you do not know which machine will use the firmware you cannot change
this limit as all. So the overall is that I think we need this change
anyhow, with or without the UAR BAR size change.
BR, Shamir
--
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
next prev parent reply other threads:[~2014-03-30 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 8:23 [PATCH] librdmacm: lazy initialization for ib devices] Shamir Rabinovith
2014-03-27 8:38 ` Or Gerlitz
[not found] ` <5333E37B.5080202-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-03-30 10:27 ` Shamir Rabinovith [this message]
2014-03-31 4:55 ` Or Gerlitz
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=20140330102731.GA4433@shamir-pc \
--to=shamir.rabinovitch-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@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