Messages in this thread | | | Date | Tue, 23 Sep 2008 13:33:09 -0500 | From | Christoph Lameter <> | Subject | Re: Unified tracing buffer |
| |
Mathieu Desnoyers wrote: > > I think we should instead try to figure out what is currently missing in > the kernel vmap mechanism (probably the ability to vmap from large 4MB > pages after boot), and fix _that_ instead (if possible), which would not > only benefit to tracing, but also to module support.
With some custom code one can vmap 2MB pages on x86. See the VMEMMAP support in the x86 arch. The code in mm/sparse-vmemmap.c could be abstracted for a general 2MB mapping API to reduce TLB pressure for the buffers. If there are concerns about fragmentation then one could fallback to 4kb TLBs. See the virtualizable compound page patchset which does something similar.
> I added Christoph Lameter to the CC list, he always comes with clever > ideas. :)
Oh mostly we are just recycling the old ideas.
| |