Skip to content
Commit b148178b authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Alberto Escolar
Browse files

demand_paging: eviction/nru: fix pathological behavior



Currently, the NRU algorithm always picks the lowest (and very often the
same) clean unaccessed page over and over when e.g. doing large anonymous
memory mappings. Spread the eviction selection more uniformly by by
starting the search right after the last victim instead of always
restarting from 0.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 3222f378
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment