Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Conversation

@grahamwhaley
Copy link
Contributor

If running under the metrics CI, then we want to disable the global
KSM control of the proxy, and control it ourselves.

This is effectively an unwind of #828, that was a touch premature.

Fixes: #910

Signed-off-by: Graham Whaley graham.whaley@intel.com

If running under the metrics CI, then we want to disable the global
KSM control of the proxy, and control it ourselves.

This is effectively an unwind of clearcontainers#828, that was a touch premature.

Fixes: clearcontainers#910

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
@grahamwhaley
Copy link
Contributor Author

Please scrutinize - I've not gotten to run test this locally (but maybe we'll see what the metrics CI makes of it...)

@clearcontainersbot
Copy link

kubernetes qa-passed 👍

@jcvenegas
Copy link
Contributor

jcvenegas commented Feb 14, 2018

lgtm lets compare new metrics to know if got expected values.

Approved with PullApprove

@grahamwhaley
Copy link
Contributor Author

The CI is looking good to me - I now only see one entry for memory-footprint-ksm.csv, and the file memory-footprint.csv (the non-KSM version) has turned up.
Once this is merged I'll tweak the CI checkmetrics toml config files to start tracking memory-footprint.csv again.

@grahamwhaley
Copy link
Contributor Author

Marking as DNM whilst I open an Issue to discuss the 'real' issue...

systemd_extra_flags="${systemd_extra_flags} -ksm initial"
fi

proxy_systemd_file=$(sudo systemctl show cc-proxy | fgrep FragmentPath | awk 'BEGIN{FS="="}{print $2}')
Copy link

@devimc devimc Feb 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, the proxy is no more a systemd service.
also awk is not needed, sudo systemctl -p FragmentPath show cc-proxy | cut -d= -f2 works

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but, that is the problem - the proxy still is a systemd service under the CIs:
https://github.com/clearcontainers/tests/blob/master/.ci/install_proxy.sh
https://github.com/clearcontainers/proxy/blob/master/Makefile#L88

we have a mis-match between the packaging distro installs and the CI scripted installs - we opened a few new Issues on Thursday about this. Need input from @chavafg I think. Let me see if I can find those other relevant issues...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we go - have a look at: #913

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not installing cc-proxy service files any more. This was removed some time ago: dd24a5b

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I see that the make install rule of the proxy still installs the service files, but I think we do not make use of them. clearcontainers/proxy#177 should solve this, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but clearcontainers/proxy#177 is not merged ;-)
So, today we do install and run the proxy on the CI systems afaict - and that messes up my metrics CI memory measurements ;-)
Either we

  • turn it off again with this patch (quick fix)
  • or we fix the .ci install scrips and proxy Makefile and replace it with ksm-throttler installation (the better fix, but will take a little more work to write the scripts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going to need to resolve #913 (create .ci/install_ksm_throttler.sh) first because if I get clearcontainers/proxy#177 landed, the CI and PnP will immediately break fwics as there will be no KSM functionality in the proxy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh ok, then, to me it is ok to merge this and have a proper fix once clearcontainers/proxy#177 gets merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metrics CI will be very happy if there is no KSM via either proxy or ksm-throtter ;-) - metrics CI controls KSM itself so it knows exactly what it is measuring...
but, yes, QA CI should have ksm-throttler running so we are testing the 'same' environment you'd get if you installed from the distro packages.

Copy link
Contributor

@chavafg chavafg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a temporary fix until #913 lands...

lgtm

@grahamwhaley
Copy link
Contributor Author

thx - have dropped the DNM - anybody fancy hitting the big green button...

@jodh-intel jodh-intel merged commit 77877b8 into clearcontainers:master Feb 20, 2018
@jodh-intel
Copy link

💥 💥 💥

mcastelino pushed a commit to mcastelino/tests that referenced this pull request Jan 23, 2019
If CI envar is not found, the setup.sh script fails
because of an unbound variable.
Add default value of CI=false

Fixes clearcontainers#911.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants