Re: [PATCH v2 2/3] selftests/mm: virtual_address_range: Unmap chunks after validation

2025-01-10 Thread David Hildenbrand
On 10.01.25 14:05, Thomas Weißschuh wrote: For each accessed chunk a PTE is created. More than 1GiB of PTEs is used in this way. Remove each PTE after validating a chunk to reduce peak memory usage. It is important to only unmap memory that previously mmap()ed, as unmapping other mappings like t

[PATCH v2 2/3] selftests/mm: virtual_address_range: Unmap chunks after validation

2025-01-10 Thread Thomas Weißschuh
For each accessed chunk a PTE is created. More than 1GiB of PTEs is used in this way. Remove each PTE after validating a chunk to reduce peak memory usage. It is important to only unmap memory that previously mmap()ed, as unmapping other mappings like the stack, heap or executable mappings will cr