Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2024-01-05 Thread Haitao Huang
On Fri, 05 Jan 2024 12:29:05 -0600, Dave Hansen wrote: There's very little about how the LRU design came to be in this cover letter. Let's add some details. How's this? Writing this up, I'm a lot more convinced that this series is, in general, taking the right approach. I honestly don't s

Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2024-01-05 Thread Dave Hansen
There's very little about how the LRU design came to be in this cover letter. Let's add some details. How's this? Writing this up, I'm a lot more convinced that this series is, in general, taking the right approach. I honestly don't see any other alternatives. As much as I'd love to do somethi

Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2023-11-07 Thread Haitao Huang
On Mon, 06 Nov 2023 09:48:36 -0600, Haitao Huang wrote: On Sun, 05 Nov 2023 21:26:44 -0600, Jarkko Sakkinen wrote: On Mon, 2023-10-30 at 11:20 -0700, Haitao Huang wrote: SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by

Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2023-11-06 Thread Haitao Huang
On Sun, 05 Nov 2023 21:26:44 -0600, Jarkko Sakkinen wrote: On Mon, 2023-10-30 at 11:20 -0700, Haitao Huang wrote: SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by the SGX subsystem. The existing cgroup memory controller ca

Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2023-11-05 Thread Jarkko Sakkinen
On Mon, 2023-10-30 at 11:20 -0700, Haitao Huang wrote: > SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM > allocations, and > are managed solely by the SGX subsystem. The existing cgroup memory > controller cannot be used > to limit or account for SGX EPC memory, whic

[PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2023-10-30 Thread Haitao Huang
SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by the SGX subsystem. The existing cgroup memory controller cannot be used to limit or account for SGX EPC memory, which is a desirable feature in some environments, e.g., support for