Lines Matching defs:scan

364 	 * copy the current shrinker scan count into a local variable
402 * Hence only allow the shrinker to scan the entire cache when
420 * Normally, we should not scan less than batch_size objects in one
429 * number of objects we want to scan (total_scan). If it is greater
458 * move the unused scan count back into the shrinker in a
460 * scan, there is no need to do an update.
571 * in order to get the scan target.
1603 unsigned long scan, total_scan, nr_pages;
1608 scan = 0;
1609 while (scan < nr_to_scan && !list_empty(src)) {
1636 scan += nr_pages;
2165 * to the established workingset on the scan-resistant active list,
2213 * nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan
2214 * nr[2] = file inactive pages to scan; nr[3] = file active pages to scan
2249 * system is close to OOM, scan both anon and file equally
2258 * If the system is almost out of file pages, force-scan anon.
2309 unsigned long scan;
2329 * If there is any protection in place, we reduce scan
2341 * memory they are using, reducing the scan pressure
2359 scan = lruvec_size - lruvec_size * protection /
2367 scan = max(scan, SWAP_CLUSTER_MAX);
2369 scan = lruvec_size;
2372 scan >>= sc->priority;
2378 if (!scan && !mem_cgroup_online(memcg))
2379 scan = min(lruvec_size, SWAP_CLUSTER_MAX);
2393 scan = mem_cgroup_online(memcg) ?
2394 div64_u64(scan * fraction[file], denominator) :
2395 DIV64_U64_ROUND_UP(scan * fraction[file],
2402 scan = 0;
2409 nr[lru] = scan;
2426 /* Record the original scan target for proportional adjustments later */
2469 * proportional to the original scan target.
2500 * Recalculate the other LRU scan count based on its original
2501 * scan target and the percentage scanning already complete
2563 * scan, but that approximation was wrong, and there were corner cases
2672 * Determine the scan balance between anon and file LRUs.
2723 * the scan balance towards the file LRU. And as the file LRU
2886 * scan then give up on it.
2899 * allowed level, force direct reclaim to scan the highmem zone as
3000 * If a full scan of the inactive list fails to free enough memory then we
3308 * here is not a good idea, since it limits the pages we can scan.
4276 * Do not scan if the allocation should not be delayed.