Re: [RFC PATCH] mm/memcontrol: Increase threshold for draining per-cpu stocked bytes.

2021-01-05 Thread Roman Gushchin
On Wed, Jan 06, 2021 at 02:39:05PM +1100, Imran Khan wrote: > On 6/1/21 2:29 pm, Roman Gushchin wrote: > > > On Wed, Jan 06, 2021 at 02:07:12PM +1100, Imran Khan wrote: > > > On 6/1/21 5:45 am, Roman Gushchin wrote: > > > > On Tue, Jan 05, 2021 at 10:23:52AM -0800, Roman Gushchin wrote: > > > > >

Re: [RFC PATCH] mm/memcontrol: Increase threshold for draining per-cpu stocked bytes.

2021-01-05 Thread Roman Gushchin
On Wed, Jan 06, 2021 at 02:07:12PM +1100, Imran Khan wrote: > > On 6/1/21 5:45 am, Roman Gushchin wrote: > > On Tue, Jan 05, 2021 at 10:23:52AM -0800, Roman Gushchin wrote: > > > On Tue, Jan 05, 2021 at 04:07:42PM +, Imran Khan wrote: > > > > While allocating objects whose size is multiple of

Re: [RFC PATCH] mm/memcontrol: Increase threshold for draining per-cpu stocked bytes.

2021-01-05 Thread Roman Gushchin
On Tue, Jan 05, 2021 at 10:23:52AM -0800, Roman Gushchin wrote: > On Tue, Jan 05, 2021 at 04:07:42PM +, Imran Khan wrote: > > While allocating objects whose size is multiple of PAGE_SIZE, > > say kmalloc-4K, we charge one page for extra bytes corresponding > > to the obj_cgroup membership point

Re: [RFC PATCH] mm/memcontrol: Increase threshold for draining per-cpu stocked bytes.

2021-01-05 Thread Roman Gushchin
On Tue, Jan 05, 2021 at 04:07:42PM +, Imran Khan wrote: > While allocating objects whose size is multiple of PAGE_SIZE, > say kmalloc-4K, we charge one page for extra bytes corresponding > to the obj_cgroup membership pointer and remainder of the charged > page gets added to per-cpu stocked byt

[RFC PATCH] mm/memcontrol: Increase threshold for draining per-cpu stocked bytes.

2021-01-05 Thread Imran Khan
While allocating objects whose size is multiple of PAGE_SIZE, say kmalloc-4K, we charge one page for extra bytes corresponding to the obj_cgroup membership pointer and remainder of the charged page gets added to per-cpu stocked bytes. If this allocation is followed by another allocation of the same