lkml.org 
[lkml]   [2022]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 14/18] x86/sgx: Add EPC OOM path to forcefully reclaim EPC
    On Fri, Dec 02, 2022 at 10:36:50AM -0800, Kristen Carlson Accardi wrote:
    > From: Sean Christopherson <sean.j.christopherson@intel.com>
    >
    > Introduce the OOM path for killing an enclave with the reclaimer
    > is no longer able to reclaim enough EPC pages. Find a victim enclave,
    > which will be an enclave with EPC pages remaining that are not
    > accessible to the reclaimer ("unreclaimable"). Once a victim is
    > identified, mark the enclave as OOM and zap the enclaves entire
    > page range. Release all the enclaves resources except for the
    > struct sgx_encl memory itself.
    >
    > Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
    > Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
    > Cc: Sean Christopherson <seanjc@google.com>

    Why this patch is dependent of all 13 patches before it?

    Looks like something that is orthogonal to cgroups and could be
    live by its own. At least it probably does not require all of
    those patches, or does it?

    Even without cgroups it would make sense to killing enclaves if
    reclaimer gets stuck.

    BR, Jarkko

    \
     
     \ /
      Last update: 2022-12-08 16:23    [W:2.959 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site