Re: make swappiness safer to use

YAMAMOTO Takashi
2007-11-12T02:07:47Z

> + /*
> + * Reduce the effect of imbalance if swappiness is low,
> + * this means for a swappiness very low, the imbalance
> + * must be much higher than 100 for this logic to make
> + * the difference.
> + *
> + * Max temporary value is vm_total_pages*100.
> + */
> + imbalance *= (vm_swappiness + 1);
> + imbalance /= 100;

why vm_swappiness rather than sc->swappiness?

YAMAMOTO Takashi