Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
On Mon, Oct 05, 2020 at 03:46:12PM +0100, Chris Down wrote: > Andrea Righi writes: > > senpai is focused at estimating the ideal memory requirements without > > affecting performance. And this covers the use case about reducing > > memory footprint. > > > > In my specific use-case (hibernation) I

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Chris Down
Andrea Righi writes: senpai is focused at estimating the ideal memory requirements without affecting performance. And this covers the use case about reducing memory footprint. In my specific use-case (hibernation) I would let the system use as much memory as possible if it's doing any activity (

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
On Mon, Oct 05, 2020 at 12:25:55PM +0100, Chris Down wrote: > Andrea Righi writes: > > This feature has been successfully used to improve hibernation time of > > cloud computing instances. > > > > Certain cloud providers allow to run "spot instances": low-priority > > instances that run when there

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Chris Down
Andrea Righi writes: This feature has been successfully used to improve hibernation time of cloud computing instances. Certain cloud providers allow to run "spot instances": low-priority instances that run when there are spare resources available and can be stopped at any time to prioritize othe

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
On Mon, Oct 05, 2020 at 10:35:16AM +0200, Michal Hocko wrote: > A similar thing has been proposed recently by Shakeel > http://lkml.kernel.org/r/20200909215752.1725525-1-shake...@google.com > Please have a look at the follow up discussion. Thanks for pointing this out, I wasn't aware of that patch

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Michal Hocko
A similar thing has been proposed recently by Shakeel http://lkml.kernel.org/r/20200909215752.1725525-1-shake...@google.com Please have a look at the follow up discussion. -- Michal Hocko SUSE Labs

[PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
## Overview Opportunistic memory reclaim aims to introduce a new interface that allows user-space to trigger an artificial memory pressure condition and force the kernel to reclaim memory (dropping page cache pages, swapping out anonymous memory, etc.). ### Motivation Reclaiming memory in advanc