VM

cadastrosonline cadastrosonline cadastrosonline at yahoo.com.br
Thu Jun 14 17:04:04 UTC 2007


"FreeBSD's memory allocation code implements page coloring optimizations, which means
that the memory allocation code will attempt to locate free pages that are contiguous
from the point of view of the cache. For example, if page 16 of physical memory is
assigned to page 0 of a process's virtual memory and the cache can hold 4 pages, the page
coloring code will not assign page 20 of physical memory to page 1 of a process's virtual
memory."

From fbsd books, I don't understand why it links page 16 of physical memory to page 0 then talks about page 20 of physcal memory to page 1, ok it will say it will sign to page 21 because of the page coloring, but thats not what i didnt get.

If the cache holds 4 pages, why wouldn't the physical page 20 sign to page 4 or 8 instead? Why 1? lol :> i see its signing the VM as 0,1,2,3,4 and the physical as 4,8,16,20...could anyone explain that?




       
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso 


More information about the freebsd-arch mailing list