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

From: Abel Wu
Date: Tue Jun 20 2023 - 02:39:37 EST


Hi Michal,

On 6/20/23 1:30 AM, Michal Koutný wrote:
On Tue, Jun 13, 2023 at 02:46:32PM +0800, Abel Wu <wuyun.abel@xxxxxxxxxxxxx> wrote:
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