*** sameo has joined #kata-general | 08:49 | |
*** lpetrut has joined #kata-general | 09:08 | |
*** gwhaley has joined #kata-general | 09:37 | |
*** gwhaley has quit IRC | 11:59 | |
*** gwhaley has joined #kata-general | 13: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 time | 13:15 |
---|---|---|
kata-irc-bot1 | <alovelltr> we'd like it to continue through swap even if it is very slow | 13: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 container | 13: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 partition | 13:41 |
kata-irc-bot1 | <alovelltr> We can easily pass in a volume, but I was hoping to do a mount instead | 13:41 |
kata-irc-bot1 | <alovelltr> looks like support is still available | 13: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> cool | 14:14 |
kata-irc-bot1 | <alovelltr> I know my use case is pretty niche and performance is going to be unpleasant | 14:14 |
kata-irc-bot1 | <alovelltr> I'll share what I learn | 14:14 |
*** sameo has quit IRC | 15:52 | |
*** igordc has joined #kata-general | 16:33 | |
*** lcastell has joined #kata-general | 17:02 | |
*** lpetrut has quit IRC | 17:43 | |
*** gwhaley has quit IRC | 18:09 | |
*** igordc has quit IRC | 19:11 | |
*** igordc has joined #kata-general | 19:39 | |
*** igordc has quit IRC | 19:55 | |
*** igordc has joined #kata-general | 19:59 | |
*** igordc has quit IRC | 21:01 | |
*** igordc has joined #kata-general | 23:05 | |
*** igordc has quit IRC | 23:27 | |
*** igordc has joined #kata-general | 23:29 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!