-
Notifications
You must be signed in to change notification settings - Fork 62
Q: Attach xdp program to interface raises "cannot allocate memory" #16
Comments
@slavc I am eager to use this package to boot the performance of packet rx / tx for my application. Do you have any idea on the potential issue here? |
Hm, I can't seem to reproduce with the minimal example nor with e.g. Can you share more details about your environment, like what if any virtual machine are you running in with what NIC driver, are you running the program as root, etc?
|
@slavc I have re-created my VM, and the program works on my new VM now. The difference between my destroyed VM and current in-use VM is the number of queues on the network interfaces. The destroyed VM has 4 queues, and now it's 1. Not sure if this will be the potential issue. Here is the hardware settings on my current VM:
|
I reproduced the same issue on another new VM.
However, when I explicitly set the XDP flag use generic XDP, it's working.
It seems my virtio driver doesn't support native XDP?
|
Run the minimum example in readme https://pkg.go.dev/github.com/asavie/xdp#section-readme, get "cannot allocate memeory" panic at
program.Attach
.Here is my Ubuntu kernel version:
And already increased locked memory
The text was updated successfully, but these errors were encountered: