Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-28 Thread Roman Gushchin
On Thu, Dec 24, 2020 at 12:10:39AM +0200, Mike Rapoport wrote: > On Wed, Dec 23, 2020 at 08:35:37AM -0800, Roman Gushchin wrote: > > On Tue, Dec 22, 2020 at 08:06:06PM -0800, Andrew Morton wrote: > > > On Mon, 21 Dec 2020 09:05:51 -0800 Roman Gushchin wrote: > > > > > > > Subject: [PATCH v3 1/2]

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-23 Thread Mike Rapoport
On Wed, Dec 23, 2020 at 08:35:37AM -0800, Roman Gushchin wrote: > On Tue, Dec 22, 2020 at 08:06:06PM -0800, Andrew Morton wrote: > > On Mon, 21 Dec 2020 09:05:51 -0800 Roman Gushchin wrote: > > > > > Subject: [PATCH v3 1/2] mm: cma: allocate cma areas bottom-up > > > > i386 allmodconfig: > > >

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-23 Thread Roman Gushchin
On Tue, Dec 22, 2020 at 08:06:06PM -0800, Andrew Morton wrote: > On Mon, 21 Dec 2020 09:05:51 -0800 Roman Gushchin wrote: > > > Subject: [PATCH v3 1/2] mm: cma: allocate cma areas bottom-up > > i386 allmodconfig: > > In file included from ./include/vdso/const.h:5, > from

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-22 Thread Andrew Morton
On Mon, 21 Dec 2020 09:05:51 -0800 Roman Gushchin wrote: > Subject: [PATCH v3 1/2] mm: cma: allocate cma areas bottom-up i386 allmodconfig: In file included from ./include/vdso/const.h:5, from ./include/linux/const.h:4, from ./include/linux/bits.h:5,

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-21 Thread Roman Gushchin
On Sun, Dec 20, 2020 at 08:48:48AM +0200, Mike Rapoport wrote: > On Thu, Dec 17, 2020 at 12:12:13PM -0800, Roman Gushchin wrote: > > Currently cma areas without a fixed base are allocated close to the > > end of the node. This placement is sub-optimal because of compaction: > > it brings pages

Re: [PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-19 Thread Mike Rapoport
On Thu, Dec 17, 2020 at 12:12:13PM -0800, Roman Gushchin wrote: > Currently cma areas without a fixed base are allocated close to the > end of the node. This placement is sub-optimal because of compaction: > it brings pages into the cma area. In particular, it can bring in hot > executable pages,

[PATCH v2 1/2] mm: cma: allocate cma areas bottom-up

2020-12-17 Thread Roman Gushchin
Currently cma areas without a fixed base are allocated close to the end of the node. This placement is sub-optimal because of compaction: it brings pages into the cma area. In particular, it can bring in hot executable pages, even if there is a plenty of free memory on the machine. This results in