containers / youki

A container runtime written in Rust
https://containers.github.io/youki/
Apache License 2.0
5.99k stars 332 forks source link

Add CPU affinity to executed processes #2795

Open utam0k opened 1 month ago

utam0k commented 1 month ago

https://github.com/opencontainers/runtime-spec/pull/1253

keisku commented 1 month ago

Hi, I am looking for an opportunity to contribute to youki and this issue looks interesting! If my understanding is correct, we can use the runc code, startCommandWithCPUAffinity() that calls sched_setaffinity(2), as a reference.

Can I give this task a try?

utam0k commented 4 weeks ago

@keisku Thanks! I'll assign you. I'm looking forward to your PR ;)

utam0k commented 5 days ago

@keisku Hi, Keisuke. Do you need some help?

keisku commented 4 days ago

@utam0k thanks for heads up! I was waiting for https://github.com/opencontainers/runtime-spec/issues/1253 to be merged. Now I am able to work on this issue. When I need some help, I will reach out to you 🙇

keisku commented 3 days ago

@utam0k FYI, I created https://github.com/containers/oci-spec-rs/pull/174 to import execCPUAffinity from youki.