5 Matching Annotations
  1. Aug 2024
    1. int vm_swappiness = 60;

      then main parameter that controls how aggressive the system will swap anon pages vs file pages.

    2. (sc->order > PAGE_ALLOC_COSTLY_ORDER || sc->priority < DEF_PRIORITY - 2))

      constants

    3. MIN_NR_GENS

      magic number?

    4. static long get_nr_to_scan(struct lruvec *lruvec, struct scan_control *sc, bool can_swap)

      figure out how many pages to scan.

    5. static void prepare_scan_control(pg_data_t *pgdat, struct scan_control *sc) {

      sets up the struct scan_control. Most of the value come from elsewhere but this function seems to bring it all together.