[oi-dev] Basic question about memseg datastructure

Krishna krishnarules at gmail.com
Mon Apr 11 18:18:32 UTC 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20160411/0285aaf0/attachment-0004.html>


More information about the oi-dev mailing list