Re: [PATCH v9 10/15] x86/sgx: Add EPC reclamation in cgroup try_charge()
From: Huang, Kai
Date: Fri Feb 23 2024 - 05:18:50 EST
> >
> 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?