CONFIG_EVICTION_NRU

Not Recently Used (NRU) page eviction algorithm

Type: bool

Help

This implements a Not Recently Used page eviction algorithm.
A periodic timer will clear the accessed state of all virtual pages.
When a page frame needs to be evicted, the algorithm will prefer to
evict page frames using an ascending order of priority:

 - recently accessed, dirty
 - recently accessed, clean
 - not recently accessed, dirty
 - not recently accessed, clean

Direct dependencies

<choice EVICTION_CHOICE: Page frame eviction algorithms>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At <Zephyr>/subsys/demand_paging/eviction/Kconfig:17

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:44<Zephyr>/subsys/Kconfig:67<Zephyr>/subsys/demand_paging/Kconfig:7

Menu path: (Top) → Sub Systems and OS Services → Demand Paging modules → Page frame eviction algorithms

config EVICTION_NRU
    bool "Not Recently Used (NRU) page eviction algorithm"
    depends on <choice EVICTION_CHOICE>
    help
      This implements a Not Recently Used page eviction algorithm.
      A periodic timer will clear the accessed state of all virtual pages.
      When a page frame needs to be evicted, the algorithm will prefer to
      evict page frames using an ascending order of priority:

       - recently accessed, dirty
       - recently accessed, clean
       - not recently accessed, dirty
       - not recently accessed, clean

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)