[lkml]   [2002]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: vmalloc/vfree
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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.024 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site