From: Martin J. B. <mb...@ar...> - 2002-10-02 05:36:47
|
> Martin, Andrew, many thanks for the comments! I am working on some on them > now. I will give an update about it pretty soon. > I am trying to get the node_id out of the page struct. Please let me know > if somebody has good ideas. Look up by either physaddr or mapping from page to zone using the page_zone macro, then reading the node id from the zone struct should both be fast. The latter may well be faster (and doesn't require arch specific support). If that turns out to be too slow for you, you could store node_id in the page struct if you really want, but wrap it in the same sort of thing as page->virtual was done, and create the macro page_to_node() to sort out if that exists or not for various platforms (speed vs space tradeoff). M. |