yes, as said above it's linear with the number of virtual pages mapped
unless you use the objrmap to rebuild rmap.
> anything more than:
is this munmap right?
>
> for each page this mlock()'er (not _all_ mlock()'ers) maps of this thing
> grab some pagewise lock
> if pte_chain allocation succeeded
> add pte_chain
allocated sure, but it has no information yet, you dropped the info in
mlock
> else
> /* you'll need to put anon pages in swapcache in mlock() */
> unmap the page
how to unmap? there's no rmap. also there may not be swap at all to
allocate swapcache from
> decrement lockcount
> if lockcount vanished
> park it on the LRU
> drop the pagewise lock
>
> Individual mappers whose mappings are not mlock()'d add pte_chains when
> faulting the things in just like before.
Tell me how you reach the pagetable from munlock to do the unmap. If you
can reach the pagetable, the unmap isn't necessary and you only need to
rebuild the rmap. and if you can reach the pagetable efficiently w/o
rmap, it means rmap is useless in the first place.
Andrea
-
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/