The case of the overly anonymous anon_vma
The case of the overly anonymous anon_vma
Posted Apr 24, 2010 21:46 UTC (Sat) by efexis (guest, #26355)In reply to: The case of the overly anonymous anon_vma by ewen
Parent article: The case of the overly anonymous anon_vma
I don't know what other property you could be looking for, other than memory address or process id, that you could use as the value for an index or hash. If you were collecting a stat (such as the process that's using the page that runs the most, which could be a useful thing to know) you'd have to iterate through the lot. Maintaining an index of that value is loads more work that I can't see paying off. What other value, other than page address and process id, would you want to search on?
Posted Apr 24, 2010 22:21 UTC (Sat)
by ewen (subscriber, #4772)
[Link]
From what I can see "find by page address" is the only primitive that actually matters here (so you can find the references to that page); "find by process id" seems easiest done starting with the processes structures. And the problem that we started with was a 1,000,000-long linked list which referenced multiple pages held by multiple processes. So any structure which made it faster to find the entries for the appropriate page would help, providing its other overhead wasn't too high.
Ewen
The case of the overly anonymous anon_vma