4 ms·
Yeah that’s the rumor but allocations of any size can fail when kmem cgroup accounting is enabled and the container is out of space.
by jumpingmice 7y ago
Yeah that’s the rumor but allocations of any size can fail when kmem cgroup accounting is enabled and the container is out of space.
- jnurmine 7y agoWell, if the allocation is done with GFP_ACCOUNT bit set, i.e. kmemcg accounting enabled, isn't that the intended behaviour that the allocation can fail?
- jumpingmice 7y agoYes that is the point. In the relatively rare case of failure this particular function uses a goto to return without releasing a held mutex. Error paths within the kernel are a rich vein of malfunction.