Re: [PATCH v6 04/12] x86/sgx: Implement basic EPC misc cgroup functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Nov 2023 00:01:56 +0800, Haitao Huang <haitao.huang@xxxxxxxxxxxxxxx> wrote:
> > > > Then here we can have something like:
> > > >
> > > > 	void sgx_reclaim_pages(struct sgx_epc_cg *epc_cg)
> > > > 	{
> > > > 		struct sgx_epc_lru_list *lru =			epc_cg ? &epc_cg->lru :
> > > > &sgx_global_lru;
> > > >
> > > > 		sgx_reclaim_pages_lru(lru);
> > > > 	}
> > > >
> > > > Makes sense?
> > > >

The reason we 'isolate' first then do real 'reclaim' is that the actual reclaim is expensive and especially for eblock, etrack, etc.
Sorry this is out of context. It was meant to be in the other response for patch 9/12.

Also FYI I'm traveling for a vacation and email access may be sporadic.

BR
Haitao




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux