# rx-out-of-buffer

**URL:** <https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079>\
**Category:** Ethernet Adapter Cards\
**Created:** [August 29, 2018, 7:04am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079 "2018-08-29T07:04:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.barbette1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t.barbette1](https://forums.developer.nvidia.com/u/t.barbette1)\
**Post date:** [August 29, 2018, 7:04am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/1 "2018-08-29T07:04:40Z")

</div>

Hi Community,

I’d like to understand better a problem we have, which seems to be linked to the fact that DPDK’s xstats/ethtool -S shows a lot of “rx-out-of-buffer” packets. I found the performance counter document, but it does not say much about why this could happen, which buffer we’re speaking about. I quote “Number of times receive queue had no software buffers allocated for the adapter’s incoming traffic.”. As rx\_nombufs (DPDK stats) is 0 I guess it does not mean that there is not enough software buffers. Are they some internal MLX buffers? What can be done to prevent that?

Thanks,

Tom

---

<div class="post-metadata">

**Author:** ![t.barbette1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t.barbette1](https://forums.developer.nvidia.com/u/t.barbette1)\
**Post date:** [October 16, 2018, 7:33am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/2 "2018-10-16T07:33:45Z")

</div>

No. Even if Mellanox force-accepted two answers, they like good stats apparently.

If you have any clue, don’t hesitate to share.

My fear is that they will not disclose this info, like any internals about the NICs. There is some internal buffers somewhere that we run out of. The queues “imissed” counters queried via DPDK clearly report 0 loss, so it’s not the queues that lacks of buffers, or there is a bug in reporting if it is. Like those infinite flow table that work like magic, they probably won’t say anything…

---

<div class="post-metadata">

**Author:** ![yairi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yairi/32/136703_2.png) [@yairi](https://forums.developer.nvidia.com/u/yairi)\
**Post date:** [September 18, 2018, 12:37am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/3 "2018-09-18T00:37:32Z")

</div>

Hi Tom,

Thanks you for posting your question on the Mellanox Community.

Based on the information provided, the following Mellanox Community document explains the ‘rx\_out\_of\_buffer’ ethtool/xstat statistic.

You can improve the rx\_out\_of\_buffer behavior with tuning the node and also modifying the ring-size on the adapter (ethtool -g )

Also make sure, you follow the DPDK Performance recommendations from the following link → [36. MLX5 Ethernet Poll Mode Driver — Data Plane Development Kit 22.07.0 documentation](https://doc.dpdk.org/guides/nics/mlx5.html#performance-tuning) _[36. MLX5 Ethernet Poll Mode Driver — Data Plane Development Kit 22.07.0 documentation](https://doc.dpdk.org/guides/nics/mlx5.html#performance-tuning)_

If you still experience performance issues after these recommendations, please do not hesitate to open a Mellanox Support Case, by emailing to [support@mellanox.com](mailto:support@mellanox.com) _[mailto:support@mellanox.com](mailto:support@mellanox.com)_

Thanks and regards,

~Mellanox Technical Support

---

<div class="post-metadata">

**Author:** ![h0ax\_ki1l3r](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@h0ax\_ki1l3r](https://forums.developer.nvidia.com/u/h0ax_ki1l3r)\
**Post date:** [October 16, 2018, 8:04am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/4 "2018-10-16T08:04:30Z")

</div>

Hmm. That’s not fair.

On a lighter note, looks like question-accepted-stats and mlx5-ethtool-counter-stats – both are misleading

---

<div class="post-metadata">

**Author:** ![h0ax\_ki1l3r](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@h0ax\_ki1l3r](https://forums.developer.nvidia.com/u/h0ax_ki1l3r)\
**Post date:** [October 16, 2018, 7:00am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/5 "2018-10-16T07:00:35Z")

</div>

Were you able to find answers to your query? I have the same question

---

<div class="post-metadata">

**Author:** ![t.barbette1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t.barbette1](https://forums.developer.nvidia.com/u/t.barbette1)\
**Post date:** [September 27, 2018, 9:16am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/6 "2018-09-27T09:16:41Z")

</div>

Thanks, but how is it possible to have rx\_out\_of\_buffer and all queues that have not a single “imissed” (DPDK counter that says how much packet could not be received because of a lack of buffers) in any single queues ? Something does not add up here.

We use DPDK so ethtool -C will not impact the performance as those would be overridden by DPDK. We did disable flow-control and send max read request. But my questions here is not the performance, we have a ticket with support for that, it is specifically about the rx\_out\_of\_buffer. I do not understand how that number can increase while the rings themselves do not have any reported miss?

---

<div class="post-metadata">

**Author:** ![t.barbette1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t.barbette1](https://forums.developer.nvidia.com/u/t.barbette1)\
**Post date:** [September 20, 2018, 7:22am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/7 "2018-09-20T07:22:22Z")

</div>

Thanks for the answer ! But I don’t see what you refer as “the following Mellanox Community document” ? So I kind of still don’t know what it is. If you refer to the line “Number of times receive queue had no software buffers allocated for the adapter’s incoming traffic.”, then the tuning you mention will not change the problem because the rings are never full, and the CPU is not busy. So what buffer does “rx-out-of-buffer” count if it’s not the ring buffers?

---

<div class="post-metadata">

**Author:** ![MvB](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mvb/32/367020_2.png) [@MvB](https://forums.developer.nvidia.com/u/MvB)\
**Post date:** [September 26, 2018, 11:26pm UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/8 "2018-09-26T23:26:52Z")

</div>

Hi Tom,

My apologies for not providing the link to the Mellanox Community document. The link is → Understanding mlx5 ethtool Counter _[https://community.mellanox.com/s/article/understanding-mlx5-ethtool-counters](https://community.mellanox.com/s/article/understanding-mlx5-ethtool-counters)_

The “rx\_out\_of\_buffer” counter from ‘ethtool -S’ indicates RX packet drops due to lack of receive buffers. The lack of receive buffers can be related to a system tuning issue or system capability.

What happens, when you turn off ‘interrupt coalescence’ on the NIC with the following command → # ethtool -C adaptive-rx off rx-usecs 0 rx-frames 0

Also make sure, you disable flow-control on the NIC and set the PCI Max Read Request to ‘4096’. Link to document → Understanding PCIe Configuration for Maximum Performance _[https://community.mellanox.com/s/article/understanding-pcie-configuration-for-maximum-performance](https://community.mellanox.com/s/article/understanding-pcie-configuration-for-maximum-performance)_

Thanks and regards,

~Mellanox Technical Support

---

<div class="post-metadata">

**Author:** ![h0ax\_ki1l3r](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@h0ax\_ki1l3r](https://forums.developer.nvidia.com/u/h0ax_ki1l3r)\
**Post date:** [January 2, 2019, 3:07am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/9 "2019-01-02T03:07:51Z")

</div>

Hey Tom,

Just checking if you and/or Mellanox were able to fix this issue ?

---

<div class="post-metadata">

**Author:** ![h0ax\_ki1l3r](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@h0ax\_ki1l3r](https://forums.developer.nvidia.com/u/h0ax_ki1l3r)\
**Post date:** [April 28, 2019, 8:04am UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/10 "2019-04-28T08:04:56Z")

</div>

Q1. When you say “The lack of receive buffers can be related to a system tuning issue or system capability”, do you mean the Mellanox NIC (Mellanox Connect X5 100G EN in my case) capability or something else?

I have followed every tuning requirement Mellanox suggests, but still getting very high rx\_out\_of\_buffer and that keeps increasing if I keep the session on…

Q2. If it helps, do you want me to open a new ticket with all the details? Please let me know. It is related to

Thanks,

Arvind

---

<div class="post-metadata">

**Author:** ![t.barbette1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t.barbette1](https://forums.developer.nvidia.com/u/t.barbette1)\
**Post date:** [May 6, 2019, 2:49pm UTC](https://forums.developer.nvidia.com/t/rx-out-of-buffer/207079/11 "2019-05-06T14:49:19Z")

</div>

Not really. But with a more powerfull Skylake machine, the rx\_out\_of\_buffer counter decreased and we could achieve near 100G. But, it still increases and software queues never contain more than 50 out of 4000 descriptors… So the device is congested. But according to Mellanox’s software (NEO Host) PCIe bus is not the problem. And according to the description this count is not because of some internal congestion. So the last thing in between memory and the PCIe is the CPU architecture itself.
