[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how has set_pgdir been replaced in 2.4.x



Hi,

On Mon, Dec 10, 2001 at 09:53:25AM +0100, Martin Maletinsky wrote:
 
> I noticed that in the 2.4.x Linux kernel the function set_pgdir() has gone (at least for most platforms). When looking at code that modifies kernel page tables (e.g.
> vmalloc_area_pages) I could not figure out, how the page global directories are kept consistent. It looks to me as if
> global page directory entries were modified in one global page directory (the swapper_pg_dir) only. If this is the case, I wonder how the modifications are 'propagated'
> into all the other global page directories

They are now faulted on demand for vmalloc.  The cost of manually
updating all the pgds for every vmalloc is just too expensive if
you've got tens of thousands of threads in the system.

Cheers,
 Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/