Date: Thu, 14 Jun 2007 10:04:03 -0700 (PDT) From: cadastrosonline cadastrosonline <cadastrosonline@yahoo.com.br> To: fbsd arch <freebsd-arch@freebsd.org> Subject: VM Message-ID: <497837.24344.qm@web57302.mail.re1.yahoo.com>
next in thread | raw e-mail | index | archive | help
"FreeBSD's memory allocation code implements page coloring optimizations, w= hich means=0Athat the memory allocation code will attempt to locate free pa= ges that are contiguous=0Afrom the point of view of the cache. For example,= if page 16 of physical memory is=0Aassigned to page 0 of a process's virtu= al memory and the cache can hold 4 pages, the page=0Acoloring code will not= assign page 20 of physical memory to page 1 of a process's virtual=0Amemor= y."=0A=0AFrom fbsd books, I don't understand why it links page 16 of physic= al memory to page 0 then talks about page 20 of physcal memory to page 1, o= k it will say it will sign to page 21 because of the page coloring, but tha= ts not what i didnt get.=0A=0AIf 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 signi= ng the VM as 0,1,2,3,4 and the physical as 4,8,16,20...could anyone explain= that?=0A=0A=0A=0A=0A =0A____________________________________________= ________________________________________=0ANovo Yahoo! Cad=EA? - Experiment= e uma nova busca.=0Ahttp://yahoo.com.br/oqueeuganhocomisso
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?497837.24344.qm>