Re: [PATCH 4/5] elf2dmp: use Linux mmap with MAP_NORESERVE when possible

2023-09-15 Thread Viktor Prutyanov
> On 2023/09/14 7:46, Viktor Prutyanov wrote: > >> Glib's g_mapped_file_new maps file with PROT_READ|PROT_WRITE and >> MAP_PRIVATE. This leads to premature physical memory allocation of dump >> file size on Linux hosts and may fail. On Linux, mapping the file with >> MAP_NORESERVE limits the al

Re: [PATCH 4/5] elf2dmp: use Linux mmap with MAP_NORESERVE when possible

2023-09-14 Thread Akihiko Odaki
On 2023/09/14 7:46, Viktor Prutyanov wrote: Glib's g_mapped_file_new maps file with PROT_READ|PROT_WRITE and MAP_PRIVATE. This leads to premature physical memory allocation of dump file size on Linux hosts and may fail. On Linux, mapping the file with MAP_NORESERVE limits the allocation by availa

[PATCH 4/5] elf2dmp: use Linux mmap with MAP_NORESERVE when possible

2023-09-13 Thread Viktor Prutyanov
Glib's g_mapped_file_new maps file with PROT_READ|PROT_WRITE and MAP_PRIVATE. This leads to premature physical memory allocation of dump file size on Linux hosts and may fail. On Linux, mapping the file with MAP_NORESERVE limits the allocation by available memory. Signed-off-by: Viktor Prutyanov