Re: [PATCH rfc 3/4] percpu: on demand chunk depopulation

2021-03-29 Thread Roman Gushchin
On Mon, Mar 29, 2021 at 11:12:34PM +, Dennis Zhou wrote: > On Mon, Mar 29, 2021 at 01:10:10PM -0700, Roman Gushchin wrote: > > On Mon, Mar 29, 2021 at 07:21:24PM +, Dennis Zhou wrote: > > > On Wed, Mar 24, 2021 at 12:06:25PM -0700, Roman Gushchin wrote: > > > > To return unused memory to th

Re: [PATCH rfc 3/4] percpu: on demand chunk depopulation

2021-03-29 Thread Dennis Zhou
On Mon, Mar 29, 2021 at 01:10:10PM -0700, Roman Gushchin wrote: > On Mon, Mar 29, 2021 at 07:21:24PM +, Dennis Zhou wrote: > > On Wed, Mar 24, 2021 at 12:06:25PM -0700, Roman Gushchin wrote: > > > To return unused memory to the system schedule an async > > > depopulation of percpu chunks. > > >

Re: [PATCH rfc 3/4] percpu: on demand chunk depopulation

2021-03-29 Thread Roman Gushchin
On Mon, Mar 29, 2021 at 07:21:24PM +, Dennis Zhou wrote: > On Wed, Mar 24, 2021 at 12:06:25PM -0700, Roman Gushchin wrote: > > To return unused memory to the system schedule an async > > depopulation of percpu chunks. > > > > To balance between scanning too much and creating an overhead becaus

Re: [PATCH rfc 3/4] percpu: on demand chunk depopulation

2021-03-29 Thread Dennis Zhou
On Wed, Mar 24, 2021 at 12:06:25PM -0700, Roman Gushchin wrote: > To return unused memory to the system schedule an async > depopulation of percpu chunks. > > To balance between scanning too much and creating an overhead because > of the pcpu_lock contention and scanning not enough, let's track an