Home
last modified time | relevance | path

Searched refs:swappiness (Results 1 – 8 of 8) sorted by relevance

/linux/mm/
H A Dvmscan.c2374 int swappiness = sc_swappiness(sc, memcg); in get_scan_count() local
2394 if (cgroup_reclaim(sc) && !swappiness) { in get_scan_count()
2404 if (!sc->priority && swappiness) { in get_scan_count()
2447 ap = swappiness * (total_cost + 1); in get_scan_count()
2450 fp = (MAX_SWAPPINESS - swappiness) * (total_cost + 1); in get_scan_count()
4478 static int get_type_to_scan(struct lruvec *lruvec, int swappiness, int *tier_idx) in get_type_to_scan() argument
4482 int gain[ANON_AND_FILE] = { swappiness, MAX_SWAPPINESS - swappiness }; in get_type_to_scan()
4506 static int isolate_folios(struct lruvec *lruvec, struct scan_control *sc, int swappiness, in isolate_folios() argument
4523 if (!swappiness) in isolate_folios()
4527 else if (swappiness == 1) in isolate_folios()
[all …]
H A Dmemcontrol.c3572 WRITE_ONCE(memcg->swappiness, mem_cgroup_swappiness(parent)); in mem_cgroup_css_alloc()
4285 int swappiness = -1; in memory_reclaim() local
4304 if (match_int(&args[0], &swappiness)) in memory_reclaim()
4306 if (swappiness < MIN_SWAPPINESS || swappiness > MAX_SWAPPINESS) in memory_reclaim()
4334 swappiness == -1 ? NULL : &swappiness); in memory_reclaim()
H A Dmemcontrol-v1.c2827 WRITE_ONCE(memcg->swappiness, val); in mem_cgroup_swappiness_write()
/linux/Documentation/admin-guide/mm/
H A Dmultigen_lru.rst149 ``- memcg_id node_id min_gen_nr [swappiness [nr_to_reclaim]]``
153 the active list) and therefore cannot be evicted. ``swappiness``
154 overrides the default value in ``/proc/sys/vm/swappiness``.
/linux/Documentation/admin-guide/sysctl/
H A Dvm.rst73 - swappiness
943 swappiness chapter
961 is on average 2x faster than IO from the filesystem, swappiness should
/linux/Documentation/mm/
H A Dmultigen_lru.rst107 between anon and file types proportional to the swappiness level.
/linux/Documentation/admin-guide/
H A Dcgroup-v2.rst1337 swappiness Swappiness value to reclaim with
1340 Specifying a swappiness value instructs the kernel to perform
1341 the reclaim with that swappiness value. Note that this has the
1342 same semantics as vm.swappiness applied to memcg reclaim with
H A Dkernel-parameters.txt6640 Example: sysctl.vm.swappiness=40