Re: [PATCH 4/5] perf record: mmap output file - v5

From: Ingo Molnar
Date: Tue Nov 19 2013 - 01:58:45 EST



* David Ahern <dsahern@xxxxxxxxx> wrote:

> This is mmap'ed output, not the ring buffers or its stack. As the
> output file grows, new pages are needed and those are allocated on
> access via page faults. The ftruncate only extends the file size, it
> does not allocate pages at that time.

Hm, doesn't MAP_POPULATE prefault pages in this case as well?
Prefaulting would avoid the most obvious page fault driven feedback
loops and it would probably be faster as well, because it avoids all
the pagefaults ...

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/