Skip to contentSkip to conversation

How zone_balane_ratio is decided?

DISCUSSION amey d inamdar 1 participant 1 message Oct 2, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Hello there,
In a code of zone allocator free_area_init_core() minimum pages, low pages and high pages for any zone are decided using

mask = realpages/zone_balance_ratio
minpages=mask
low pages=2*mask
high pages=3*mask

how zone balance ratio is decided for each zone? What is its significance? Please tell as soon as possible. I am unable to go further reading code.
Thanking you in anticipation

- Amey

--
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/