Re: Perf and ftrace [was Re: PyTimechart]

Mathieu Desnoyers
2010-05-12T18:04:41Z

* Peter Zijlstra (peterz@infradead.org) wrote:
> On Wed, 2010-05-12 at 13:53 -0400, Mathieu Desnoyers wrote:
> >
> > Would you be fine with an alternative implementation and API that support both
> > mmap() and splice(), without any need to swap pages ?
>
> Sure, what did you have in mind?
>
> You basically give you page to splice, never to see it again, you'd need
> to fill that hole in your buffer again.
>

Can't we keep multiple references to each page ? (shared page) so it's still in
the buffer, also accessed by mmap(), and in addition accessed by splice.

Mathieu

--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.