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

The -host-root flag not fully applied #73

Open
marquiz opened this issue Jun 20, 2023 · 2 comments
Open

The -host-root flag not fully applied #73

marquiz opened this issue Jun 20, 2023 · 2 comments

Comments

@marquiz
Copy link
Collaborator

marquiz commented Jun 20, 2023

At a quick look to the codebase (while writing #72) it appeared that the -host-root flag of the resource policies are not applied correctly in all places, causing unintended behavior.

I spotted these packages:

I might've misread/misunderstood the code but please check.

@klihub
Copy link
Collaborator

klihub commented Jun 21, 2023

In pkg/topology the -host-root flag should be applied:

topology.SetSysRoot(opt.HostRoot)
.

The others are probably not set correctly. Some of those are also unused. And, for instance, I'm not sure if we should keep the memory controller at all or just remove it. The necessary related kernel-side code has never been merged upstream, and it does not function without it.

But let's fix those which are in use and maybe remove the rest.

@marquiz
Copy link
Collaborator Author

marquiz commented Jun 22, 2023

In pkg/topology the -host-root flag should be applied:

I was probably looking at this which looks suspicious:

relPath, err := filepath.Rel("/sys/devices/virtual", realDevPath)

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