calculate_zone_inactive_ratio —
void calculate_zone_inactive_ratio ( | struct zone * zone) ; |
do too much work, but large enough that each inactive page has a chance to be referenced again before it is swapped out.
The inactive_anon ratio is the target ratio of ACTIVE_ANON to INACTIVE_ANON pages on this zone's LRU, maintained by the pageout code. A zone->inactive_ratio of 3 means 3:1 or 25% of the anonymous pages are kept on the inactive list.
total target max memory ratio inactive anon ------------------------------------- 10MB 1 5MB 100MB 1 50MB 1GB 3 250MB 10GB 10 0.9GB 100GB 31 3GB 1TB 101 10GB 10TB 320 32GB