Xilinx-CNS / onload

OpenOnload high performance user-level network stack
Other
575 stars 95 forks source link

CentOS linux 5.15: init_sfc_resource: ERROR: failed to find syscall table #54

Closed davy2900 closed 2 years ago

davy2900 commented 2 years ago

Hello, i tried to build openonload on CentOS8(linux kernel 5.15, 12th intel). But it fail because of many errors like [-Werror]. How to fix it. Thank you.

ol-alexandra commented 2 years ago

Readme does not declare compatibility with linux-5.15. You can propose a patch or wait for my patch (hopefully this year). Currently linux-5.14 works, 5.15 does not.

davy2900 commented 2 years ago

If I install it on linux 4.18, does tcp onload work with sfn8522(not plus sku)? Thanks

davy2900 commented 2 years ago

Now I succeed with installing onload in linux-5.15. But when i type onload_tool reload, it fails with "modprobe: ERROR: could not insert 'onload': Unknown symbol in module, or unknown parameter (see dmesg) onload_tool: FAILED: /sbin/modprobe onload" And in "dmesg" : "[sfc efrm] init_sfc_resource: ERROR: failed to find syscall table" What's wrong is it?

ol-alexandra commented 2 years ago

Onload basically works with some linux-5.15 kernels now. However I believe that some kernels need more fixes. Please provide the details about the kernel you use. Is it CentOS 8 Stream default kernel?

And just to be sure I understand the problem correctly: Unknown symbol in module condition prints all the meaningful messages to dmesg. Please show me these messages.

davy2900 commented 2 years ago

CentOS 8 2111. When I try it in vmware, it works well. But When I try it in 12th core Machine, it failures with [failed to find syscall table]. It failures both in linux-5.14 and linux 5.15. Buy it works in linux 4.18. dmesg: [ 1062.924897] Solarflare NET driver unloading [ 1062.966309] Solarflare driverlink driver unloading [ 1062.994321] Solarflare driverlink driver v5.3.12.1008 API v33.0 [ 1062.996251] Solarflare NET driver v5.3.12.1008 [ 1063.001360] [sfc efrm] init_sfc_resource: ERROR: failed to find syscall table

davy2900 commented 2 years ago

Can I use onload in centos8 and linux 4.18 with sfn8522(not plus sku)?

ol-alexandra commented 2 years ago

I'll have a look at it when I can get to such a CentOS. Vmware usually uses a bit different kernel, something with "cloud" in the name. Can you provide uname -a for both working and non-working cases?

davy2900 commented 2 years ago

in 12th machine(failure): Linux localhost.localdomain 5.15.5-1.el8.elrepo.x86_64 #1 SMP Thu Nov 25 08:22:50 EST 2021 x86_64 x86_64 x86_64 GNU/Linux in vmware (success):Linux localhost.localdomain 5.15.5-1.el8.elrepo.x86_64 #1 SMP Thu Nov 25 08:22:50 EST 2021 x86_64 x86_64 x86_64 GNU/Linux

davy2900 commented 2 years ago

in 12th machine(failure): Linux localhost.localdomain 5.15.5-1.el8.elrepo.x86_64 #1 SMP Thu Nov 25 08:22:50 EST 2021 x86_64 x86_64 x86_64 GNU/Linux in vmware (success):Linux localhost.localdomain 5.15.5-1.el8.elrepo.x86_64 #1 SMP Thu Nov 25 08:22:50 EST 2021 x86_64 x86_64 x86_64 GNU/Linux

ol-alexandra commented 2 years ago

So it is really the same kernel! I'm surprised, thank you. I'll have a look when I have a chance.

davy2900 commented 2 years ago

Can I use onload in centos8 and linux 4.18 with sfn8522(not plus sku)? When i use linux 4.18, it says :his error can occur if:

davy2900 commented 2 years ago

I discover: non-working cases has not "/sys/module/sfc_resource"

rhughes-xilinx commented 2 years ago

I hope that 0c32bd3893 will fix this for you

ol-alexandra commented 2 years ago

@davy2900 Do you have any more issues with linux-5.15? If yes, then please reopen.