Thread (8 messages) 8 messages, 4 authors, 2023-06-20

Re: Re: [RFC PATCH net-next] sock: Propose socket.urgent for sockmem isolation

From: Abel Wu <hidden>
Date: 2023-06-20 06:39:37
Also in: cgroups, linux-mm, lkml

Hi Michal,

On 6/20/23 1:30 AM, Michal Koutný wrote:
On Tue, Jun 13, 2023 at 02:46:32PM +0800, Abel Wu [off-list ref] wrote:
quoted
Memory protection (memory.{min,low}) helps the important jobs less
affected by memstalls. But once low priority jobs use lots of kernel
memory like sockmem, the protection might become much less efficient.
What would happen if you applied memory.{min,low} to the important jobs
and memory.{max,high} to the low prio ones?
I might expect that the memory of low prio jobs gets reclaimed first.
Specifically we set memory.low to protect the working-set for important
jobs. Due to the best-effort behavior of 'low', the important jobs can
still be affected if not enough memory reclaimed from the low prio ones.
And we don't use 'min' (yet?) because the need for flexibility when
memory is tight.

Best Regards,
	Abel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help