Re: vmalloc/vfree

From: Brian Gerst (bgerst@didntduck.org)
Date: Tue Sep 10 2002 - 08:33:37 EST


Venu Vadapalli wrote:
> Looking at vmalloc implementation, it fills the page table mappings (pgd and
> pmd) of only init_mm. When other tasks access these pages their mappings are
> updated on demand by the page fault handler, right? Vfree, also, updates the
> entries of just init_mm and, of course, flushes the cache and the tlb. But
> what about other tasks that have acquired mappings to these pages?
>
> -Venu

The pagetables for the kernel space are shared between all processes,
except for the top level which is why the page fault handler exists.
The actual pages that make up the shared pagetables never change once
allocated which is the reason we can be lazy about updating the top
level table of each task.

--
				Brian Gerst

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



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:21 EST