Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

probe_unregister_fair_sched_group': BPF program load failed: Invalid argument #9

Open
kingeasternsun opened this issue Nov 6, 2024 · 0 comments

Comments

@kingeasternsun
Copy link

kingeasternsun commented Nov 6, 2024

We install Malachite as follows: https://gokatalyst.io/docs/getting-started/colocation-quick-start/.
helm install malachite -n malachite-system --create-namespace kubewharf/malachite
Then everything seems okay

kubectl get DaemonSet -n malachite-system                                                                                                                                                        
NAME        DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
malachite   4         4         4       4            4           <none>          15h

 Kubectl get pods -n malachite-system                                                                                                                                                            
NAME              READY   STATUS    RESTARTS   AGE
malachite-bkqqm   1/1     Running   0          15h
malachite-qsv4j   1/1     Running   0          15h
malachite-tst7x   1/1     Running   0          15h
malachite-zmk95   1/1     Running   0          15h

However, when we check the log of any malachite pod, we get errors like this:

libbpf: prog 'probe_unregister_fair_sched_group': BPF program load failed: Invalid argument
libbpf: prog 'probe_unregister_fair_sched_group': -- BEGIN PROG LOAD LOG --
R1 type=ctx expected=fp
; int BPF_KPROBE(probe_unregister_fair_sched_group, struct task_group *tg)
0: (bf) r6 = r1
; int BPF_KPROBE(probe_unregister_fair_sched_group, struct task_group *tg)


...

failed to resolve CO-RE relocation <byte_off> [1222] struct kernfs_node___old.id.id (0:0:1 @ offset 0)
processed 36 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1
-- END PROG LOAD LOG
libbpf: prog 'vfs_create_k': failed to load: -22
libbpf: failed to load object 'cgroup_fs_bpf'
libbpf: failed to load BPF skeleton 'cgroup_fs_bpf': -22
bpf load failed in init_bpf_module
stebpf: module bpfstats need kernel version 5.4
libbpf: prog '__ext4_error_k': failed to create kprobe '__ext4_error+0x0' perf event: No such file or directory
libbpf: prog '__ext4_error_k': failed to auto-attach: -2
bpf attach failed in system_event_config
byteperf: get command 'hostname' result failed.

Here is the full log
malachite-547k5-ebpf-fail.log

I believe this is because our linux kernel lacks fair_sched_group eBPF program.

Does malachite support a command arg that could switch off eBPF provider when malachite executed?

Or Malachite must rely on this Linux Kernel with eBPF ?
20241106-204521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant