Re: [RFC PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-25 Thread Kirill A. Shutemov
On Mon, Feb 25, 2019 at 12:46:46PM +0100, Vlastimil Babka wrote: > On 2/22/19 2:01 PM, Kirill A. Shutemov wrote: > > On Thu, Feb 21, 2019 at 09:54:06AM +0100, Oscar Salvador wrote: > >> When using mremap() syscall in addition to MREMAP_FIXED flag, > >> mremap() calls mremap_to() which does the foll

Re: [RFC PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-25 Thread Vlastimil Babka
On 2/22/19 2:01 PM, Kirill A. Shutemov wrote: > On Thu, Feb 21, 2019 at 09:54:06AM +0100, Oscar Salvador wrote: >> When using mremap() syscall in addition to MREMAP_FIXED flag, >> mremap() calls mremap_to() which does the following: >> >> 1) unmaps the destination region where we are going to move

Re: [RFC PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-22 Thread Kirill A. Shutemov
On Thu, Feb 21, 2019 at 09:54:06AM +0100, Oscar Salvador wrote: > When using mremap() syscall in addition to MREMAP_FIXED flag, > mremap() calls mremap_to() which does the following: > > 1) unmaps the destination region where we are going to move the map > 2) If the new region is going to be small

[RFC PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-21 Thread Oscar Salvador
When using mremap() syscall in addition to MREMAP_FIXED flag, mremap() calls mremap_to() which does the following: 1) unmaps the destination region where we are going to move the map 2) If the new region is going to be smaller, we unmap the last part of the old region Then, we will eventually