Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-06 Thread David Hildenbrand
On 06.02.20 00:00, Murilo Opsfelder Araújo wrote: > Hello, David. > > On Monday, February 3, 2020 3:31:20 PM -03 David Hildenbrand wrote: >> When shrinking a mmap we want to re-reserve the already populated area. >> When growing a memory region, we want to populate starting with a given >> fd_offs

Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-06 Thread David Hildenbrand
On 06.02.20 13:31, Murilo Opsfelder Araújo wrote: > Hello, David. > > On Thursday, February 6, 2020 5:52:26 AM -03 David Hildenbrand wrote: >> On 06.02.20 00:00, Murilo Opsfelder Araújo wrote: >>> Hello, David. >>> >>> On Monday, February 3, 2020 3:31:20 PM -03 David Hildenbrand wrote: When s

Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-06 Thread Murilo Opsfelder Araújo
Hello, David. On Thursday, February 6, 2020 5:52:26 AM -03 David Hildenbrand wrote: > On 06.02.20 00:00, Murilo Opsfelder Araújo wrote: > > Hello, David. > > > > On Monday, February 3, 2020 3:31:20 PM -03 David Hildenbrand wrote: > >> When shrinking a mmap we want to re-reserve the already populat

Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-06 Thread Richard Henderson
On 2/3/20 6:31 PM, David Hildenbrand wrote: > When shrinking a mmap we want to re-reserve the already populated area. > When growing a memory region, we want to populate starting with a given > fd_offset. Prepare by allowing to pass these parameters. > > Also, let's make sure we always process ful

Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-06 Thread David Hildenbrand
On 06.02.20 00:00, Murilo Opsfelder Araújo wrote: > Hello, David. > > On Monday, February 3, 2020 3:31:20 PM -03 David Hildenbrand wrote: >> When shrinking a mmap we want to re-reserve the already populated area. >> When growing a memory region, we want to populate starting with a given >> fd_offs

Re: [PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-05 Thread Murilo Opsfelder Araújo
Hello, David. On Monday, February 3, 2020 3:31:20 PM -03 David Hildenbrand wrote: > When shrinking a mmap we want to re-reserve the already populated area. > When growing a memory region, we want to populate starting with a given > fd_offset. Prepare by allowing to pass these parameters. > > Also

[PATCH v1 08/13] util/mmap-alloc: Prepare for resizable mmaps

2020-02-03 Thread David Hildenbrand
When shrinking a mmap we want to re-reserve the already populated area. When growing a memory region, we want to populate starting with a given fd_offset. Prepare by allowing to pass these parameters. Also, let's make sure we always process full pages, to avoid unmapping/remapping pages that are a