-
Notifications
You must be signed in to change notification settings - Fork 21
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
neonvm: introduce CPU sysfs state scaling flow based on the vmSpec.cpuScalingMode #1111
Commits on Nov 26, 2024
-
neonvm-controller: add spec.cpuScalingMode, change vm-controller to e…
…xplicitly default the field value if it is not set Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fb4c6c - Browse repository at this point
Copy the full SHA 2fb4c6cView commit details -
neonvmrunner,neonvmcontroller: allocate all possible CPUs to the VM a…
…nd mark vmSpec.Guest.CPUs.Min as online during the boot Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd9b40c - Browse repository at this point
Copy the full SHA dd9b40cView commit details -
neonvmd: expose interface to control online/offline state of the CPUs
Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2f1e12 - Browse repository at this point
Copy the full SHA c2f1e12View commit details -
neonvm: sysfs cpu state based scaling support
introduce separate CPU scaling flow based on the vmSpec.cpuScalingMode If vmSpec.cpuScalingMode is equal to `qmp_scaling` the logic of the scaling is preserved as before: - Scale, if required the amount of CPUs using qmp commands. - If it is required to scale cgroups, call vm-runner /cpu_change endpoint if vmSpec.cpuScalingMode is equal to `cpuSysfsStateScaling` all cpu scaling requests go directly to the vm-runner /cpu_change, which in that configuration goes to the neonvm-daemon to reconcile required amount of online CPUs. Value `cpuSysfsStateScaling` also modifies the qemu and the kernel arguments to enable plug all CPUs but mark as online only first one. Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b634bb9 - Browse repository at this point
Copy the full SHA b634bb9View commit details -
neonvm: apply code review fixes
pass cpuScalingMode as argument to the vm-runner rename arguments, constants and functions here and there drop unused code move default cpu scaling mode to controller argument Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 32de84e - Browse repository at this point
Copy the full SHA 32de84eView commit details -
neonvm-controller: apply lint and regenerate code
Co-authored-by: Oleg Vasilev <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d628a9a - Browse repository at this point
Copy the full SHA d628a9aView commit details -
neonvm-controller: rename runner cpu functions
Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37be0db - Browse repository at this point
Copy the full SHA 37be0dbView commit details -
neonvm-controller: make spec.cpuScalingMode immutable if already set
Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1261b88 - Browse repository at this point
Copy the full SHA 1261b88View commit details -
Update pkg/neonvm/controllers/vm_controller_cpu_scaling.go
Co-authored-by: Oleg Vasilev <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e56963 - Browse repository at this point
Copy the full SHA 9e56963View commit details -
neonvm-runner: apply code review fixes and lint
Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 475efde - Browse repository at this point
Copy the full SHA 475efdeView commit details -
neonvm: apply code review fixes
change CpuScalingMode to be a enum type drop obsolete comments Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 28ab9c1 - Browse repository at this point
Copy the full SHA 28ab9c1View commit details -
neonvm-controller: code review fixes
Improve readability in pkg/neonvm/controllers/vm_controller_cpu_scaling.go by adding empty lines and comments Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6ff7c7 - Browse repository at this point
Copy the full SHA d6ff7c7View commit details -
neonvm-daemon: apply code review fixes
Change scaling logic to work with ranges instead of slices Split sys fs scaling struture to allow unit testing Add unit tests for the main reconcilation logic Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 09f0375 - Browse repository at this point
Copy the full SHA 09f0375View commit details -
neonvm-daemon: apply code review fix
Get current state through aggregated /cpu/online file instead of using per-cpu files Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37e8226 - Browse repository at this point
Copy the full SHA 37e8226View commit details -
neonvm: apply code review fixes
Co-authored-by: Em Sharnoff <[email protected]> Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4532840 - Browse repository at this point
Copy the full SHA 4532840View commit details -
neonvm: apply code review fixes
Change cpuscaling logic to work with collection of IDs Signed-off-by: Misha Sakhnov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 79721a2 - Browse repository at this point
Copy the full SHA 79721a2View commit details -
Update neonvm-runner/cmd/main.go
Co-authored-by: Oleg Vasilev <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fabb7ab - Browse repository at this point
Copy the full SHA fabb7abView commit details
Commits on Nov 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 327e7fb - Browse repository at this point
Copy the full SHA 327e7fbView commit details