Anomaly in Buddy bitmaps?
I wrote a module in kernel 2.6.0 for scanning a higher order block from zone_mem_map for ZONE_NORMAL & checking the buddy bitmaps for the same.
In the case of order 4, while scanning on the
order 4 block boundaries, I found an order 4 block with page state 0000000001111111,where 0s represent free pages & 1s represent order 0 allocations. The bit in the order 3 bitmap corresponding to this 4th order block was found to be a 0,whereas this bit should have been a 1 as one 3rd order buddy is completely free. I got the same result (a 0, where a 1 should have been found) in another case too.
Is this an anomaly in the buddy bitmaps? Can the buddy bitmaps ever be inconsistent?
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Alok Mooley
I wrote a module in kernel 2.6.0 for scanning a higher order block from
zone_mem_mapforZONE_NORMAL& checking the buddy bitmaps for the same.
In the case of order 4, while scanning on the
order 4 block boundaries, I found an order 4 block with page state 0000000001111111,where 0s represent
Quoted 8 lines
free pages & 1s represent order 0 allocations. The bit in the order 3 bitmap corresponding to this 4th order block was found to be a 0,whereas this bit should have been a 1 as one 3rd order buddy is completely free. I got the same result (a 0, where a 1 should have been found) in another case too.
Is this an anomaly in the buddy bitmaps? Can the buddy bitmaps ever be inconsistent?
This could be the result of one of the free buddies being on the per-cpu freelists. Count those as "semi-free"; they count as allocated as far as the buddy bitmap is concerned.
-- wli
--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>