Re: [PATCH v4 00/18] Add Cgroup support for SGX EPC memory

From
Tejun Heo <hidden>
Date
2023-09-15 18:28:05
Also in
lkml
Reply to
Haitao Huang, 2023-09-13
On Tue, Sep 12, 2023 at 09:06:17PM -0700, Haitao Huang wrote:
SGX 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 pod level
control in a Kubernates cluster on a VM or baremetal host [1,2].

This patchset implements the support for sgx_epc memory within the misc
cgroup controller. The user can use the misc cgroup controller to set and
enforce a max limit on total EPC usage per cgroup. The implementation
reports current usage and events of reaching the limit per cgroup as well
as the total system capacity.
Minor nit aside, it looks fine from cgroup side.

Thanks.

-- 
tejun
Thread (44 messages) 44 messages, 5 authors, last reply 2023-09-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help