# Ibv\_reg limit

**URL:** <https://forums.developer.nvidia.com/t/ibv-reg-limit/314588>\
**Category:** InfiniBand/VPI Adapter Cards\
**Tags:** rdma-and-roce, infinibandvpi-adapter-cards, infiniband\
**Created:** [November 25, 2024, 10:49am UTC](https://forums.developer.nvidia.com/t/ibv-reg-limit/314588 "2024-11-25T10:49:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandhuasokkumarp](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anandhuasokkumarp](https://forums.developer.nvidia.com/u/anandhuasokkumarp)\
**Post date:** [November 25, 2024, 10:49am UTC](https://forums.developer.nvidia.com/t/ibv-reg-limit/314588/1 "2024-11-25T10:49:57Z")

</div>

I need to register 10 GB of memory using RDMA, but the program is limiting it to 4 GB. Could this be due to a `uint32_t` limitation in `ibv_reg_mr`, or is there another reason for this restriction?

---

<div class="post-metadata">

**Author:** ![ssimcoejr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ssimcoejr/32/426795_2.png) [@ssimcoejr](https://forums.developer.nvidia.com/u/ssimcoejr)\
**Post date:** [December 13, 2024, 8:10pm UTC](https://forums.developer.nvidia.com/t/ibv-reg-limit/314588/2 "2024-12-13T20:10:48Z")

</div>

Hi anandhuasokkumarp,

Welcome, and thanks for posting your inquiry to the NVIDIA Developer Forums.

There is no uint32 limitation in ibv\_reg\_mr - ibv\_reg\_mr size limit is equal to device’s max\_mr\_size.  
ibv\_devinfo -v will show you max\_mr\_size for all adapters in your system. Example from a pair of ConnectX-7 adapters, showing maximum total number of MRs supported (max\_mr) as well:

```auto
root@localhost:~# ibv_devinfo -v | grep max_mr
        max_mr_size: 0xffffffffffffffff
        max_mr: 16777216
        max_mr_size: 0xffffffffffffffff
        max_mr: 16777216

```

Could be that your system’s ulimit is too low - check `ulimit -l`to see how much memory (in KB) your process can lock. Configuring this to ‘unlimited’ may help here.

Outside of the above recommendation, this type of query is out-of-scope of NVEX support. We cannot provide programming assistance for custom applications. If you require programming assistance, we recommend contacting your account team. They can assist you with developing a solution for your business needs.

You can also reach out to our Sales and Solutions team via the following link: [https://www.nvidia.com/en-us/contact/sales/](https://www.nvidia.com/en-us/contact/sales/)

Thanks, and best regards,  
NVIDIA Enterprise Experience

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 27, 2024, 8:11pm UTC](https://forums.developer.nvidia.com/t/ibv-reg-limit/314588/3 "2024-12-27T20:11:23Z")

</div>

Closed on December 27, 2024, 8:11pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
