search for: nr_scanned

Displaying 3 results from an estimated 3 matches for "nr_scanned".

Did you mean: nr_scanned++
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...ier(page_alloc_cpu_notify, 0); } diff -urpN linux-2.6/mm/vmscan.c linux-2.6-patched/mm/vmscan.c --- linux-2.6/mm/vmscan.c 2006-09-01 12:50:23.000000000 +0200 +++ linux-2.6-patched/mm/vmscan.c 2006-09-01 12:50:25.000000000 +0200 @@ -1034,6 +1034,9 @@ unsigned long try_to_free_pages(struct z sc.nr_scanned = 0; if (!priority) disable_swap_token(); +#ifdef CONFIG_PAGE_DISCARD_LIST + nr_reclaimed += page_shrink_discards(); +#endif nr_reclaimed += shrink_zones(priority, zones, &sc); shrink_slab(sc.nr_scanned, gfp_mask, lru_pages); if (reclaim_state) {
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...ier(page_alloc_cpu_notify, 0); } diff -urpN linux-2.6/mm/vmscan.c linux-2.6-patched/mm/vmscan.c --- linux-2.6/mm/vmscan.c 2006-09-01 12:50:23.000000000 +0200 +++ linux-2.6-patched/mm/vmscan.c 2006-09-01 12:50:25.000000000 +0200 @@ -1034,6 +1034,9 @@ unsigned long try_to_free_pages(struct z sc.nr_scanned = 0; if (!priority) disable_swap_token(); +#ifdef CONFIG_PAGE_DISCARD_LIST + nr_reclaimed += page_shrink_discards(); +#endif nr_reclaimed += shrink_zones(priority, zones, &sc); shrink_slab(sc.nr_scanned, gfp_mask, lru_pages); if (reclaim_state) {
2018 Aug 03
1
[PATCH v3 2/2] virtio_balloon: replace oom notifier with shrinker
On Fri, Aug 03, 2018 at 04:32:26PM +0800, Wei Wang wrote: > The OOM notifier is getting deprecated to use for the reasons: > - As a callout from the oom context, it is too subtle and easy to > generate bugs and corner cases which are hard to track; > - It is called too late (after the reclaiming has been performed). > Drivers with large amuont of reclaimable memory is expected