Re: [PATCH v5 14/14] riscv: Make mmap allocation top-down by default

2019-07-31 Thread Paul Walmsley
On Tue, 30 Jul 2019, Alexandre Ghiti wrote: > In order to avoid wasting user address space by using bottom-up mmap > allocation scheme, prefer top-down scheme when possible. > > Before: > root@qemuriscv64:~# cat /proc/self/maps > 0001-00016000 r-xp fe:00 6389

Re: [PATCH v5 14/14] riscv: Make mmap allocation top-down by default

2019-07-31 Thread Guenter Roeck
On Wed, Jul 31, 2019 at 02:05:23AM -0400, Alex Ghiti wrote: > On 7/30/19 1:51 AM, Alexandre Ghiti wrote: > >In order to avoid wasting user address space by using bottom-up mmap > >allocation scheme, prefer top-down scheme when possible. > > > >Before: > >root@qemuriscv64:~# cat /proc/self/maps >

Re: [PATCH v5 14/14] riscv: Make mmap allocation top-down by default

2019-07-31 Thread Alex Ghiti
On 7/30/19 1:51 AM, Alexandre Ghiti wrote: In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat /proc/self/maps 0001-00016000 r-xp fe:00 6389 /bin/cat.coreutils

[PATCH v5 14/14] riscv: Make mmap allocation top-down by default

2019-07-30 Thread Alexandre Ghiti
In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat /proc/self/maps 0001-00016000 r-xp fe:00 6389 /bin/cat.coreutils 00016000-00017000 r--p 5000 fe:00 6389