Re: [PATCH v9 10/15] x86/sgx: Add EPC reclamation in cgroup try_charge()

Huang, Kai
2024-02-23T10:18:25Z

> >
> Right. When code reaches to here, we already passed reclaim per cgroup.

Yes if try_charge() failed we must do pre-cgroup reclaim.

> The cgroup may not at or reach limit but system has run out of physical
> EPC.
>

But after try_charge() we can still choose to reclaim from the current group,
but not necessarily have to be global, right? I am not sure whether I am
missing something, but could you elaborate why we should choose to reclaim from
the global?