Monday, 2019-02-04

*** sameo has joined #kata-general08:49
*** lpetrut has joined #kata-general09:08
*** gwhaley has joined #kata-general09:37
*** gwhaley has quit IRC11:59
*** gwhaley has joined #kata-general13:05
kata-irc-bot1<alovelltr> @bergwolf Trying to do builds in a container.  The build will likely exceed the memory available about 5% of the time13:15
kata-irc-bot1<alovelltr> we'd like it to continue through swap even if it is very slow13:15
kata-irc-bot1<graham.whaley> @alovelltr - out of interest, where would you expect the VM kernel to swap to? I don't think having it use the host-side swap partition would be correct (security breach/leak?) - so you'd have to pass in an extra disk node or something for it to swap to?13:28
kata-irc-bot1<graham.whaley> Actually, today, I think our kernel may have CONFIG_SWAP enabled. It might be that you could add enough root privs to the container to enable swap inside your container, given you have somewhere to swap to... but, afaik nobody has ever tried that in a kata container13:29
kata-irc-bot1<graham.whaley> and, I plan to turn swap off in the container kernel, as we don't use it, so we can save a little space ;)13:29
kata-irc-bot1<alovelltr> I have vague memories of a swap file being available in early linux kernels in addition to the swap partition13:41
kata-irc-bot1<alovelltr> We can easily pass in a volume, but I was hoping to do a mount instead13:41
kata-irc-bot1<alovelltr> looks like support is still available13:43
kata-irc-bot1<alovelltr> https://linuxize.com/post/create-a-linux-swap-file/13:43
kata-irc-bot1<graham.whaley> OK, @alovelltr - if you are going to try this, then I think you will need to add some '--cap-sys' to the container so it can execute swap and do a mount. You also need to find/create a container with the 'mount' command in it ;) Good luck. I'm thinking you don't want to run this over a 9pfs mounted volume though, as it will likely not perform well...13:51
kata-irc-bot1<alovelltr> is there anything I need to do at the kata/qemu/firecracker level to support it?13:52
kata-irc-bot1<graham.whaley> @alovelltr not that I can think of, but I think you are breaking new ground here, so there might be. Best try adding whatever --cap-sys you need (it goes on the docker run command if you are using docker for instance), try making and then mounting a file as a swap in your container - and see what happens!14:06
kata-irc-bot1<graham.whaley> And then, if it doesn't work (or even if it does), maybe open a github Issue to discuss and detail.14:07
kata-irc-bot1<alovelltr> cool14:14
kata-irc-bot1<alovelltr> I know my use case is pretty niche and performance is going to be unpleasant14:14
kata-irc-bot1<alovelltr> I'll share what I learn14:14
*** sameo has quit IRC15:52
*** igordc has joined #kata-general16:33
*** lcastell has joined #kata-general17:02
*** lpetrut has quit IRC17:43
*** gwhaley has quit IRC18:09
*** igordc has quit IRC19:11
*** igordc has joined #kata-general19:39
*** igordc has quit IRC19:55
*** igordc has joined #kata-general19:59
*** igordc has quit IRC21:01
*** igordc has joined #kata-general23:05
*** igordc has quit IRC23:27
*** igordc has joined #kata-general23:29

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