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

Tuned CPU isolation not applied when child processes was created #564

Open
x-coder-L opened this issue Nov 2, 2023 · 2 comments
Open

Tuned CPU isolation not applied when child processes was created #564

x-coder-L opened this issue Nov 2, 2023 · 2 comments

Comments

@x-coder-L
Copy link

x-coder-L commented Nov 2, 2023

Hello,
we use cpu-partitioning profile and set isolate cpu. we want all running process will be restricted by isolate cpu.But we find some child processes are not inherit CPU affinity from their parents. We check the code in github and add the option perf_process_fork=true in /usr/lib/tuned/cpu-partitioning/tuned.conf , then exec tuned-adm profile cpu-partitioning again and reboot. But it still not worked.
image
image
image
image

@yarda
Copy link
Contributor

yarda commented Nov 3, 2023

Isn't possible the processes matches the blacklist regexes? Or the processes change their affinity? They are not restricted from doing so.

@x-coder-L
Copy link
Author

x-coder-L commented Nov 3, 2023

@yarda we make sure this processes are not matches the blacklist regexes. we think is the isolate cpus restricted just running once when we apply this profiles, because when we apply this profile or restart tuned.service the processes will change their affinity to non-isolate affinity.
we check the plugin_scheduler.py code and find if we set group_name and perf_process_fork=true in tuned.conf, and make restricted in group_name 's affinity it's seems like will restricted all processes when tuned.service is running. Because just the _thread_code function will listen to perf event which _isolate_core function is not. We think it's maybe a bug? If we just want to use isolate cpu to restricted all processes in our device, it will not make restricted to processes which start after tuned.service

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

2 participants