Skip to contentSkip to conversation

tabulating page->virtual on highmem

RFC William Lee Irwin III 1 participant 2 messages May 8, 2002 – May 9, 2002 Memory management

lore
Share & tools
lore
#0 lore raw

The size of the kmap pool appears to dictate the number of distinct values of page->virtual. Maintaining an index into the pool would seem to provide superior space behavior, as the index need not be of full machine word precision. Furthermore, no auxiliary lookup would appear to be required as the kmap pool is virtually contiguous and so the virtual address could be calculated from base virtual address of the kmap pool and the index into the pool.

For architectures using page->virtual for page_address() calculation this technique does not apply, and so page->virtual would then need to be maintained as is, or at least retain enough precision for a full page frame number.

I don't have my heart set on this but I thought I'd at least throw the idea out where its desirability (and potential implementations) could be discussed.

Cheers,
Bill
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw
Quoted 6 lines · William Lee Irwin III

The size of the kmap pool appears to dictate the number of distinct values of page->virtual. Maintaining an index into the pool would seem to provide superior space behavior, as the index need not be of full machine word precision. Furthermore, no auxiliary lookup would appear to be required as the kmap pool is virtually contiguous and so the virtual address could be calculated from base virtual

Quoted 8 lines

address of the kmap pool and the index into the pool.
For architectures using page->virtual for page_address() calculation this technique does not apply, and so page->virtual would then need to be maintained as is, or at least retain enough precision for a full page frame number.
I don't have my heart set on this but I thought I'd at least throw the idea out where its desirability (and potential implementations) could be discussed.

Since no one's screamed too loudly I'll push out an implementation of this sometime in the next few days.

Cheers,
Bill
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/