Re: [PATCH v4 3/5] mm: Speedup mremap on 1GB or larger regions

2020-12-17 Thread Kalesh Singh
On Thu, Dec 17, 2020 at 12:28 PM Guenter Roeck wrote: > > On Wed, Oct 14, 2020 at 12:53:08AM +, Kalesh Singh wrote: > > Android needs to move large memory regions for garbage collection. > > The GC requires moving physical pages of multi-gigabyte heap > > using mremap. During this move, the

Re: [PATCH v4 3/5] mm: Speedup mremap on 1GB or larger regions

2020-12-17 Thread Guenter Roeck
On Wed, Oct 14, 2020 at 12:53:08AM +, Kalesh Singh wrote: > Android needs to move large memory regions for garbage collection. > The GC requires moving physical pages of multi-gigabyte heap > using mremap. During this move, the application threads have to > be paused for correctness. It is

[PATCH v4 3/5] mm: Speedup mremap on 1GB or larger regions

2020-10-14 Thread Kalesh Singh
Android needs to move large memory regions for garbage collection. The GC requires moving physical pages of multi-gigabyte heap using mremap. During this move, the application threads have to be paused for correctness. It is critical to keep this pause as short as possible to avoid jitters during