Project-HAMi / HAMi-core

HAMi-core compiles libvgpu.so, which ensures hard limit on GPU in container
109 stars 48 forks source link

Question: utilization_watcher algorithm design #27

Open Forsworns opened 1 month ago

Forsworns commented 1 month ago

I found that the algorithm you used is much different from the implementation of vcuda-controller. Why g_total_cuda_cores is multiplied by 2 here? And why the original implementation of vcuda is removed, are they not suitable in your case? Hope you can share your experience on the algorithm design, thanks :)

https://github.com/Project-HAMi/HAMi-core/blob/a9ab3b1c6c521b4aabce2dbc8c306e9a67b2a51c/src/multiprocess/multiprocess_utilization_watcher.c#L213

And their utilization_watcher is

https://github.com/tkestack/vcuda-controller/blob/72e0115d5884f22469de857271c002c84c0d0543/src/hijack_call.c#L303

AllenXu93 commented 1 month ago

Same question