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

README: Add instructions for Arch Linux #7

Merged
merged 2 commits into from
Dec 6, 2023
Merged

README: Add instructions for Arch Linux #7

merged 2 commits into from
Dec 6, 2023

Conversation

htejun
Copy link
Contributor

@htejun htejun commented Dec 6, 2023

No description provided.

Copy link
Contributor

@Byte-Lab Byte-Lab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a couple minor nits

README.md Outdated Show resolved Hide resolved
Comment on lines +66 to +69
In addition to terminating the program, there are two more ways to disable a
sched_ext scheduler - `sysrq-S` and the watchdog timer. Ignoring kernel
bugs, the worst damage a sched_ext scheduler can do to a system is starving
some threads until the watchdog timer triggers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention using bpftool here as well? Seems useful given that a kernel need not ship with sysrq support

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you unload with bpftool?

Copy link
Contributor

@Byte-Lab Byte-Lab Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bpftool struct_ops unreg name simple_ops would do it for scx_simple, found with:

[root@kerneltest047.02.dkl1 ~]# bpftool map list | grep simple                                 
340: array  name simple_b.rodata  flags 0x480                                                  
341: array  name simple_b.bss  flags 0x400                                                     
342: struct_ops  name simple_ops  flags 0x0                                                    

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

root@test ~ [255]# bpftool struct_ops unregister name simple_ops
Error: can't unload sched_ext_ops simple_ops id 20: Operation not supported

README.md Outdated Show resolved Hide resolved
@htejun htejun merged commit bae7f1d into main Dec 6, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants