-
Notifications
You must be signed in to change notification settings - Fork 92
kernel/configs: enable swap extension (CONFIG_MEMCG_SWAP) #104
kernel/configs: enable swap extension (CONFIG_MEMCG_SWAP) #104
Conversation
38cb143
to
6d617f4
Compare
It somehow feels sort of wrong, enabling SWAP in the kernel when we have no swap devices in the container.
Does that bear relevance here? |
@grahamwhaley yes, I know it looks weird (enable swap when we don't have swap) but Take a look #103 |
@jodh-intel I'm waiting for review, ppc64le already has that config |
re-ping @kata-containers/packaging |
lgtm /cc @nitkon. |
@jodh-intel : Its already enabled in ppc64le kernel config file and this patch changes only for x86 and arm. |
I guess you did the research and didn't find a way to skip/disable it then @devimc ? |
@grahamwhaley that's correct, we need these flags to honour memory constrains in the VM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, given @devimc 's confirmation,
lgtm
6d617f4
to
e9edb2b
Compare
libcontainer limits the memory+swap usage by writing the limit at /sys/fs/cgroup/memory/docker/$CONTID/memory.memsw.limit_in_bytes, this path doesn't exist if CONFIG_MEMCG_SWAP and CONFIG_MEMCG_SWAP_ENABLED are not enabled. fixes kata-containers#103 Signed-off-by: Julio Montes <[email protected]>
e9edb2b
to
3b18544
Compare
@devimc What about arm config? It doesn't enable swap yet. |
oops, my bad, arm config is added there. /lgtm |
Let's merge it! |
Thanks @devimc ; ) |
`.ci/setup.sh` is using dnf instead of yum to install centos dependencies. This fixes it to use yum. Fixes: #104. Signed-off-by: Salvador Fuentes <[email protected]>
libcontainer limits the memory+swap usage by writing the limit at
/sys/fs/cgroup/memory/docker/$CONTID/memory.memsw.limit_in_bytes, this path
doesn't exist if CONFIG_MEMCG_SWAP and CONFIG_MEMCG_SWAP_ENABLED are not
enabled.
fixes #103
Signed-off-by: Julio Montes [email protected]