CI: Install ksm-throttler tool for CI#920
Conversation
install_ksm_throttler.sh installs the ksm throttler tool, starts and enables the service on systems that are not running the metrics CI and stops/disable the cc-proxy service, in case it is still shipped in the system. Fixes clearcontainers#913. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
da8df25 to
fd99909
Compare
|
kubernetes qa-passed 👍 |
| # ourselves | ||
| if [[ ! $METRICS_CI ]]; then | ||
| systemctl enable vc-throttler.service | ||
| systemctl start vc-throttler.service |
There was a problem hiding this comment.
I made a local test and ksm-throttler service is started by the vc-throttler service, so I think we do not need to start via the script.
Here a proof:
cc-tester@singlevm:~$ sudo systemctl status vc-throttler.service
● vc-throttler.service - Virtcontainers based KSM throttling
Loaded: loaded (/lib/systemd/system/vc-throttler.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://github.com/kata-containers/ksm-throttler
cc-tester@singlevm:~$ sudo systemctl status ksm-throttler.service
● ksm-throttler.service - KSM throttling daemon
Loaded: loaded (/lib/systemd/system/ksm-throttler.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://github.com/kata-containers/ksm-throttler
cc-tester@singlevm:~$ sudo systemctl start vc-throttler.service
cc-tester@singlevm:~$ sudo systemctl status vc-throttler.service
● vc-throttler.service - Virtcontainers based KSM throttling
Loaded: loaded (/lib/systemd/system/vc-throttler.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2018-02-20 18:07:15 UTC; 3s ago
Docs: https://github.com/kata-containers/ksm-throttler
Main PID: 1866 (vc)
Tasks: 4
Memory: 7.6M
CPU: 10ms
CGroup: /system.slice/vc-throttler.service
└─1866 /usr/libexec/ksm-throttler/trigger/virtcontainers/vc -log debug
Feb 20 18:07:15 singlevm systemd[1]: Started Virtcontainers based KSM throttling.
Feb 20 18:07:15 singlevm vc[1866]: time="2018-02-20T18:07:15Z" level=debug msg="Waiting for /var/run/virtcontainers"
cc-tester@singlevm:~$ sudo systemctl status ksm-throttler.service
● ksm-throttler.service - KSM throttling daemon "singlevm" 16:10 20-Feb-18
Loaded: loaded (/lib/systemd/system/ksm-throttler.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2018-02-20 18:07:15 UTC; 6s ago
Docs: https://github.com/kata-containers/ksm-throttler
Main PID: 1867 (ksm-throttler)
Tasks: 6
Memory: 6.6M
CPU: 11ms
CGroup: /system.slice/ksm-throttler.service
└─1867 /usr/libexec/ksm-throttler/ksm-throttler -log debug
Feb 20 18:07:15 singlevm systemd[1]: Started KSM throttling daemon.
Feb 20 18:07:15 singlevm ksm-throttler[1867]: time="2018-02-20T18:07:15Z" level=info name=ksm-throttler pid=1867 source=throttler version=0.0.1-3647ce2aba865dc877a390bde78ce27fa60a6903
Feb 20 18:07:15 singlevm ksm-throttler[1867]: time="2018-02-20T18:07:15Z" level=debug msg="Starting KSM throttling service at /var/run/ksm-throttler/ksm.sock" name=ksm-throttler pid=1867 source=throttler
There was a problem hiding this comment.
Hi @chavafg - I checked the systemd units themselves and you are correct - we only need vc.
|
kubernetes qa-passed 👍 |
grahamwhaley
left a comment
There was a problem hiding this comment.
from my metrics pov,
lgtm
I'll defer to others for the systemd specifics etc.
|
and thanks for putting this together @chavafg :-) |
|
@chavafg @jodh-intel - I've stuck a DNM label on, as my ack made this mergeable, and we need feedback on @jodh-intel 's query first |
|
Removing the DNM flag |
|
Hi @chavafg @jodh-intel |
|
@grahamwhaley |
|
@chavafg thanks! |
…ntation docs: Document how to run the tests
install_ksm_throttler.sh installs the ksm throttler tool,
starts and enables the service on systems that are not
running the metrics CI and stops/disable the cc-proxy
service, in case it is still shipped in the system.
Fixes #913.
Signed-off-by: Salvador Fuentes salvador.fuentes@intel.com