Hi everyone,

I have a basic question about how pages are added to the  memseg data
structure used by Indiana to store contiguous page frames. While looking
through the code, I came across the page_free
<https://github.com/illumos/illumos-gate/blob/5a4ef21a18dfdc65328821a265582d03e85a97c9/usr/src/uts/common/vm/vm_page.c>
function
which seems to say that the page is added to the head of the list. This
seems inefficient given that memseg nodes typically hold contiguous pages.
Is there a function where the pages in memseg are sorted? And isn't that
very time consuming?

Please feel free to point me out to any code/documentation/book that might
be relevant.

Thanks!
Krishna.
_______________________________________________
oi-dev mailing list
[email protected]
http://openindiana.org/mailman/listinfo/oi-dev

Reply via email to