Re: [PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive

2021-07-09 Thread Alex Bennée
Richard Henderson writes: > On 7/8/21 12:09 PM, Alex Bennée wrote: >> -for (i = 0; i < 0x1fff; i++) >> +for (i = 0; i < 0x1ff; i++) >> { >> size_t len; >> len = pagesize + (pagesize * i & 7); > > There's really no point in i >= 8. > > We release all of the

Re: [PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive

2021-07-09 Thread Thomas Huth
On 08/07/2021 21.09, Alex Bennée wrote: The check_aligned_anonymous_unfixed_mmaps and check_aligned_anonymous_unfixed_colliding_mmaps do a lot of mmap's and copying of data. This is especially unfriendly to targets like hexagon which have quite large pages and need to do sanity checks on each mem

Re: [PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive

2021-07-08 Thread Richard Henderson
On 7/8/21 12:09 PM, Alex Bennée wrote: - for (i = 0; i < 0x1fff; i++) + for (i = 0; i < 0x1ff; i++) { size_t len; len = pagesize + (pagesize * i & 7); There's really no point in i >= 8. We release all of the memory at the end of the loop; we'll probab

[PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive

2021-07-08 Thread Alex Bennée
The check_aligned_anonymous_unfixed_mmaps and check_aligned_anonymous_unfixed_colliding_mmaps do a lot of mmap's and copying of data. This is especially unfriendly to targets like hexagon which have quite large pages and need to do sanity checks on each memory access. Signed-off-by: Alex Bennée -