Lines Matching refs:scan

780 	 * copy the current shrinker scan count into a local variable
807 * Normally, we should not scan less than batch_size objects in one
816 * number of objects we want to scan (total_scan). If it is greater
850 * move the unused scan count back into the shrinker in a
957 * in order to get the scan target.
2203 * It is waste of effort to scan and reclaim CMA pages if it is not available
2251 unsigned long scan, total_scan, nr_pages;
2255 scan = 0;
2256 while (scan < nr_to_scan && !list_empty(src)) {
2280 scan += nr_pages;
2829 * to the established workingset on the scan-resistant active list,
2888 * Determine the scan balance between anon and file LRUs.
2939 * the scan balance towards the file LRU. And as the file LRU
2981 * nr[0] = anon inactive folios to scan; nr[1] = anon active folios to scan
2982 * nr[2] = file inactive folios to scan; nr[3] = file active folios to scan
3017 * system is close to OOM, scan both anon and file equally
3026 * If the system is almost out of file pages, force-scan anon.
3077 unsigned long scan;
3097 * If there is any protection in place, we reduce scan
3109 * memory they are using, reducing the scan pressure
3127 scan = lruvec_size - lruvec_size * protection /
3135 scan = max(scan, SWAP_CLUSTER_MAX);
3137 scan = lruvec_size;
3140 scan >>= sc->priority;
3146 if (!scan && !mem_cgroup_online(memcg))
3147 scan = min(lruvec_size, SWAP_CLUSTER_MAX);
3161 scan = mem_cgroup_online(memcg) ?
3162 div64_u64(scan * fraction[file], denominator) :
3163 DIV64_U64_ROUND_UP(scan * fraction[file],
3170 scan = 0;
3177 nr[lru] = scan;
3583 /* force scan for those added after the last iteration */
4605 * the scan was done cacheline efficiently, it adds the PMD entry pointing to
5067 * type to scan. Also need to compare other tiers of the selected type
6289 /* Record the original scan target for proportional adjustments later */
6332 * proportional to the original scan target.
6363 * Recalculate the other LRU scan count based on its original
6364 * scan target and the percentage scanning already complete
6426 * scan, but that approximation was wrong, and there were corner cases
6698 * scan then give up on it.
6712 * allowed level, force direct reclaim to scan the highmem zone as
6823 * If a full scan of the inactive list fails to free enough memory then we
7128 * here is not a good idea, since it limits the pages we can scan.
8121 * Do not scan if the allocation should not be delayed.