Do not translate MemoryLimit and MemoryMax to each other#4096
Do not translate MemoryLimit and MemoryMax to each other#4096walyong wants to merge 2 commits intosystemd:masterfrom walyong:do_not_translate_memory_limit
Conversation
Why should we remove this? |
|
According to man page, MemoryMax= seems only valid in unified control group hierarchy and MemoryLimit= seems only valid in legacy control group. So I think this translation is weird. But, recently, MemorySwapMax= is added. #3659
So I think, better than modifying the translation between MemoryLimit= and MemoryMax=, removing this translation is prefer. |
|
@walyong can you comment on #4269? It turns off the translation one-way. That should be close enough to what you want, no? I'll close this PR now in favour of #4269, let's follow-up the discussions regarding what to translate and what not to translate there. I am pretty sure though that we should do translation, but always prefer cgroupv2, the way that PR does it. |
As already introduced in man page, do not set MemoryLimit config to MemoryMax or MemoryMax to MemoryLimit.