Tuesday, 2019-03-26

*** igordc has quit IRC00:02
*** sameo has quit IRC01:06
*** igordc has joined #kata-general03:30
*** igordc has quit IRC03:54
*** pvdp has joined #kata-general05:34
*** sgarzare has joined #kata-general07:55
*** sameo has joined #kata-general08:27
*** tmhoang has joined #kata-general08:36
*** gwhaley has joined #kata-general09:05
*** gwhaley has quit IRC12:08
*** pvdp has quit IRC12:56
*** gwhaley has joined #kata-general13:15
*** lcastell has joined #kata-general16:06
*** lcastell has quit IRC16:08
*** tmhoang has quit IRC16:41
*** sameo has quit IRC16:55
*** igordc has joined #kata-general17:13
*** igordc has quit IRC17:13
*** igordc has joined #kata-general17:13
*** sgarzare has quit IRC17:19
kata-irc-bot<matt> To clarify the memory usage note in the docs, If I deploy a Kata container that is configured for 2G RAM, its going to immediately use 2G of host memory, there is no concept of overcommit. Correct?19:17
kata-irc-bot<graham.whaley> @manohar.r.castelino @xu ^^ can you comment authoritatively on this?19:23
kata-irc-bot<graham.whaley> I think, @matt, that the overcommit rules will be whatever your host is set up for. for instance, my hosts have always have overcommit disabled by default, so once you 'run out of allocated space', then KVM will refuse to launch another QEMU.19:24
kata-irc-bot<graham.whaley> I also think we have to be careful about the word 'use' maybe - I suspect there is effectively 'pre-allocate', and then 'use'. That is, I think it will pre-allocate 2G of RAM to the VM, but not actually use the physical memory to back that (unless you have enabled the pre-back option I think in the config....) until the container consumes it...19:25
kata-irc-bot<matt> From a basic POV, if I run pmap or what-not, I will see that 2G is allocated it seems19:27
kata-irc-bot<matt> From a using Kata POV, if I have 4 Kata containers allocating 2G each, running a busybox container, I could run **approximately** 4 of them on a host with 8G RAM (and no swap). But I could run more than 4 **plain** busybox docker containers because they wouldn't be allocating 2GB to spin up.  -- Is that an accurate statement?19:29
*** gwhaley has quit IRC19:31
kata-irc-bot<eric.ernst> @graham.whaley - right -- that memory pre-allocated.21:37
kata-irc-bot<eric.ernst> So, because you run those 4 Kata Containers does not mean 8GB of physical memory is being used on the host.21:38
kata-irc-bot<matt> Right, 8GB allocated but probably not all used to just run busybox22:06
kata-irc-bot<matt> I guess the important question is would i be able to launch say, 8 Kata Containers in my scenario or would I effectively be limited to 4.22:07
kata-irc-bot<eric.ernst> more than 4 for sure22:15
kata-irc-bot<eric.ernst> we have some tests for measuring density that you can use.22:16
kata-irc-bot<matt> I'm going to restart my GCP instance and give it a quick test22:16
kata-irc-bot<eric.ernst> see https://github.com/kata-containers/tests/tree/master/metrics#density22:16
kata-irc-bot<matt> Should the delta in number of containers roughly be related to the VM overhead? In otherwords maybe the pre-allocation doesn't matter for density?22:17
kata-irc-bot<eric.ernst> I'd recommend just running the metrics tests22:17
kata-irc-bot<eric.ernst> yep.22:17
kata-irc-bot<eric.ernst> its just the active overhead22:17
kata-irc-bot<eric.ernst> better link: https://github.com/kata-containers/tests/tree/master/metrics/density22:17
kata-irc-bot<matt> disregarding the overhead, if I have a bunch of  containers actively 2GB of RAM on an 8GB system, I will have issues with or without kata then22:18
kata-irc-bot<matt> thanks for talking this through22:19
kata-irc-bot<eric.ernst> np22:20
kata-irc-bot<eric.ernst> btw, make sure your gcp image has nested virt enabled22:20
kata-irc-bot<matt> yep it does22:20
kata-irc-bot<eric.ernst> https://github.com/kata-containers/documentation/blob/master/install/gce-installation-guide.md22:21
kata-irc-bot<eric.ernst> ok22:21
kata-irc-bot<matt> I've been playing around with some kata stuff on it but I power it off to save some cash22:21
kata-irc-bot<eric.ernst> :slightly_smiling_face:22:21
kata-irc-bot<matt> I think you could add a paragraph under `Memory` here: https://github.com/kata-containers/documentation/wiki/UserGuide - I would but I dont seem to have edit rights22:21
kata-irc-bot<matt> There's a memory allocation paragraph and probably should add a memory usage one also22:22
*** eniac_petrov has joined #kata-general22:25
eniac_petrovhey, anyone online? I'm curious about something22:25
eniac_petrovKata is using namespaces inside the VM, right?22:25
kata-irc-bot<matt> @eric.ernst 16G host, I'm running 10 nginx kata containers and only really using 2.4G of memory. will also try the density stuff later22:27
kata-irc-bot<dangot> Hey all quick update on our JAVA containers not starting. We’ve fixed it by building our own ubuntu image and adding : `echo >/etc/security/limits.d/systemd.conf "* hard nofile 1048576"`23:33
kata-irc-bot<dangot> https://github.com/systemd/systemd/issues/1092123:33
*** eniac_petrov has quit IRC23:41
*** eniac_petrov has joined #kata-general23:42

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!