luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

netmap_ring request size too large #958

Open kevin-mcm opened 6 months ago

kevin-mcm commented 6 months ago

Hello All,

I'm getting the following error on dmesg:

> dmesg -T
[Thu May 16 09:37:52 2024] 671.506329 [1134] generic_netmap_attach     Emulated adapter for eth1 created (prev was NULL)
[Thu May 16 09:37:52 2024] 671.508927 [1026] netmap_obj_malloc         netmap_ring request size 262400 too large
[Thu May 16 09:37:52 2024] 671.511468 [2001] netmap_mem2_rings_create  Cannot allocate RX_ring
[Thu May 16 09:37:52 2024] 671.513423 [1039] generic_netmap_dtor       Emulated netmap adapter for eth1 destroyed

this is on Oracle 8.9 with the following specifications:

Specifications ```bash > cat /etc/oracle-release Oracle Linux Server release 8.9 > uname -r 4.18.0-513.24.1.el8_9.x86_64 > lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: AuthenticAMD BIOS Vendor ID: Advanced Micro Devices, Inc. CPU family: 23 Model: 1 Model name: AMD EPYC 7571 BIOS Model name: AMD EPYC 7571 Stepping: 2 CPU MHz: 2199.764 BogoMIPS: 4399.52 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 64K L2 cache: 512K L3 cache: 8192K NUMA node0 CPU(s): 0-3 > free -h total used free shared buff/cache available Mem: 31Gi 5.0Gi 21Gi 41Mi 4.8Gi 25Gi Swap: 0B 0B 0B > ethtool -i eth1 driver: ena version: 4.18.0-513.24.1.el8_9.x86_64 firmware-version: expansion-rom-version: bus-info: 0000:00:06.0 supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no ```

Please let me know if you need more information

Thanks in advance

giuseppelettieri commented 6 months ago

You just need to increase the size of the pre-allocated netmap rings, with something like (as root)

echo 262400 > /sys/module/netmap/parameters/ring_size

then restart your netmap applications.

kevin-mcm commented 6 months ago

You just need to increase the size of the pre-allocated netmap rings, with something like (as root)

echo 262400 > /sys/module/netmap/parameters/ring_size

then restart your netmap applications.

Thank you for your response. Before creating this issue, I tried increasing the ring size with the same command, but I kept getting the same error