Merge lp:~vila/otto/update-setup-instructions into lp:otto
Status: | Merged |
---|---|
Merged at revision: | 258 |
Proposed branch: | lp:~vila/otto/update-setup-instructions |
Merge into: | lp:otto |
Diff against target: |
93 lines (+23/-12) 3 files modified
doc/README (+21/-10) jenkins/update_host (+1/-1) ottolib/container.py (+1/-1) |
To merge this branch: | bzr merge lp:~vila/otto/update-setup-instructions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jean-Baptiste Lallement | Approve | ||
Review via email: mp+193030@code.launchpad.net |
Description of the change
I updated the setup instructions while setting up qa-radeon-7750.
There are still a few places where I followed the existing instructions
blindly and I'd be glad if some explanations could be given/added for the
unaware ;)
1) swapaccount: I wasn't able to verify that the CONFIG_
was set in the kernel config:
ubuntu@
# CONFIG_
Of course the above was too naive, so:
ubuntu@
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
# CONFIG_
# CONFIG_MEMCG_KMEM is not set
But the question is really: why do we want to have swap in the container ?
Can't we just get rid of that constraint (and the associated host grub
configuration) ?
2) Raising the memory limit seems to have an impact on test passing or
not. What do we know about that memory consumption ? 4G seems a huge
requirement for autopilot tests...
Thanks Vincent for your efforts to document that better. I recently re-tried otto myself on saucy/trusty and it was certainly far harder than necessary.
> 1) swapaccount: I wasn't able to verify that the CONFIG_ MEMCG_SWAP_ ENABLED was set in the kernel config:
That's indeed the biggest pain point right now. At least saucy/trusty indeed don't set this in the default kernel config, so otto does not work at all out of the box. I think that should be addressed in the code, not in the documentation. My current workaround is this:
--- lxc.defaults/config 2013-07-05 21:00:06 +0000
+++ lxc.defaults/config 2013-10-17 14:22:47 +0000
@@ -67,5 +67,5 @@
lxc.loglevel = 1
# Restrict memory usage of the container memory. limit_in_ bytes = 2G memory. memsw.limit_ in_bytes = 2560M memory. limit_in_ bytes = 2G memory. memsw.limit_ in_bytes = 2560M
-lxc.cgroup.
-lxc.cgroup.
+#lxc.cgroup.
+#lxc.cgroup.
But I think otto should dynamically enable that feature if the kernel supports it.
+ * branch otto from launchpad and setup a ~/bin directory
I think this should become a separate documentation item, as it is optional. Like:
* If you don't want to call otto with full path of the checkout, you can put it into $PATH with:
mkdir -p ~/bin
for f in `pwd`/otto/bin/*; do ln -s $f ~/bin; done