Re: [PATCH v2 1/1] kvfree_rcu: Release a page cache under memory pressure

2021-03-18 Thread Uladzislau Rezki
On Tue, Mar 16, 2021 at 02:01:25PM -0700, Paul E. McKenney wrote: > On Tue, Mar 16, 2021 at 09:42:07PM +0100, Uladzislau Rezki wrote: > > > On Wed, Mar 10, 2021 at 09:07:57PM +0100, Uladzislau Rezki (Sony) wrote: > > > > From: Zhang Qiang > > > > > > > > Add a drain_page_cache() function to

Re: [PATCH v2 1/1] kvfree_rcu: Release a page cache under memory pressure

2021-03-16 Thread Paul E. McKenney
On Tue, Mar 16, 2021 at 09:42:07PM +0100, Uladzislau Rezki wrote: > > On Wed, Mar 10, 2021 at 09:07:57PM +0100, Uladzislau Rezki (Sony) wrote: > > > From: Zhang Qiang > > > > > > Add a drain_page_cache() function to drain a per-cpu page cache. > > > The reason behind of it is a system can run

Re: [PATCH v2 1/1] kvfree_rcu: Release a page cache under memory pressure

2021-03-16 Thread Uladzislau Rezki
> On Wed, Mar 10, 2021 at 09:07:57PM +0100, Uladzislau Rezki (Sony) wrote: > > From: Zhang Qiang > > > > Add a drain_page_cache() function to drain a per-cpu page cache. > > The reason behind of it is a system can run into a low memory > > condition, in that case a page shrinker can ask for its

Re: [PATCH v2 1/1] kvfree_rcu: Release a page cache under memory pressure

2021-03-16 Thread Paul E. McKenney
On Wed, Mar 10, 2021 at 09:07:57PM +0100, Uladzislau Rezki (Sony) wrote: > From: Zhang Qiang > > Add a drain_page_cache() function to drain a per-cpu page cache. > The reason behind of it is a system can run into a low memory > condition, in that case a page shrinker can ask for its users > to

[PATCH v2 1/1] kvfree_rcu: Release a page cache under memory pressure

2021-03-10 Thread Uladzislau Rezki (Sony)
From: Zhang Qiang Add a drain_page_cache() function to drain a per-cpu page cache. The reason behind of it is a system can run into a low memory condition, in that case a page shrinker can ask for its users to free their caches in order to get extra memory available for other needs in a system.