setup_per_zone_inactive_ratio

Langue: en

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

setup_per_zone_inactive_ratio - called when min_free_kbytes changes.

SYNOPSIS

void setup_per_zone_inactive_ratio(void);

ARGUMENTS

void

no arguments

DESCRIPTION

The inactive anon list should be small enough that the VM never has to 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