Home
last modified time | relevance | path

Searched full:shrink (Results 1 – 25 of 216) sorted by relevance

123456789

/linux/drivers/gpu/drm/xe/
H A Dxe_shrinker.c23 * @shrink: Pointer to the mm shrinker.
31 struct shrinker *shrink; member
35 static struct xe_shrinker *to_xe_shrinker(struct shrinker *shrink) in to_xe_shrinker() argument
37 return shrink->private_data; in to_xe_shrinker()
139 xe_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_count() argument
141 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count()
201 static unsigned long xe_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_scan() argument
203 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan()
272 shrinker_free(shrinker->shrink); in xe_shrinker_fini()
290 shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique); in xe_shrinker_create()
[all …]
/linux/scripts/
H A Dbloat-o-meter55 grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0
80 if d<0: shrink, down = shrink+1, down-d
84 return grow, shrink, add, remove, up, down, delta, old, new, otot, ntot
87 grow, shrink, add, remove, up, down, delta, old, new, otot, ntot = \
90 print("add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \
91 (add, remove, grow, shrink, up, -down, up-down))
/linux/arch/powerpc/kernel/
H A Dtau_6xx.c117 int shrink; in tau_timeout() local
129 /* do an exponential shrink of half the amount currently over size */ in tau_timeout()
130 shrink = (2 + size - min_window) / 4; in tau_timeout()
131 if (shrink) { in tau_timeout()
132 tau[cpu].low += shrink; in tau_timeout()
133 tau[cpu].high -= shrink; in tau_timeout()
181 /* set these to a reasonable value and let the timer shrink the in TAU_init_smp()
/linux/fs/f2fs/
H A Dshrinker.c40 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count() argument
79 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan() argument
108 /* shrink extent cache entries */ in f2fs_shrink_scan()
111 /* shrink read extent cache entries */ in f2fs_shrink_scan()
114 /* shrink clean nat cache entries */ in f2fs_shrink_scan()
118 /* shrink free nids cache entries */ in f2fs_shrink_scan()
/linux/drivers/cpuidle/governors/
H A Dhaltpoll.c27 /* division factor to shrink halt_poll_ns */
98 unsigned int shrink = guest_halt_poll_shrink; in adjust_poll_limit() local
101 if (shrink == 0) { in adjust_poll_limit()
104 val /= shrink; in adjust_poll_limit()
/linux/rust/kernel/
H A Did_pool.rs19 /// if the grow or shrink is sill valid.
87 /// [`IdPool::grow`] or [`IdPool::shrink`] operation, which will check
147 /// pool.shrink(resizer);
158 // Determine if the bitmap can shrink based on the position of in shrink_request()
161 // bitmap should shrink to half its current size. in shrink_request()
176 pub fn shrink(&mut self, mut resizer: PoolResizer) { in shrink() method
177 // Between request to shrink that led to allocation of `resizer` and now, in shrink()
/linux/samples/pktgen/
H A Dfunctions.sh187 local shrink
194 # if shrink '::' occurs multiple, it's malformed.
195 shrink=( $(grep -E -o "$sep{2,}" <<< $addr) )
196 if [[ ${#shrink[@]} -ne 0 ]]; then
197 if [[ ${#shrink[@]} -gt 1 || ( ${shrink[0]} != $sep2 ) ]]; then
/linux/mm/
H A Dshrinker.c480 * lockless algorithm of memcg shrink. in shrink_slab_memcg()
491 * So in the memcg shrink: in shrink_slab_memcg()
505 * Note: here is different from the global shrink, we don't in shrink_slab_memcg()
595 * shrink_slab - shrink slab caches
601 * Call the shrink functions to age shrinkable caches.
624 * shrink, but skip global shrink. This may result in premature in shrink_slab()
631 * lockless algorithm of global shrink. in shrink_slab()
637 * So in the global shrink: in shrink_slab()
H A Dvma_exec.c29 * 5) Shrink the vma to cover only the new range. in relocate_vma_down()
90 /* Shrink the vma to just the new range */ in relocate_vma_down()
/linux/fs/
H A Dmbcache.c293 static unsigned long mb_cache_count(struct shrinker *shrink, in mb_cache_count() argument
296 struct mb_cache *cache = shrink->private_data; in mb_cache_count()
301 /* Shrink number of entries in cache */
332 static unsigned long mb_cache_scan(struct shrinker *shrink, in mb_cache_scan() argument
335 struct mb_cache *cache = shrink->private_data; in mb_cache_scan()
339 /* We shrink 1/X of the cache when we have too many entries in it */
/linux/fs/ubifs/
H A Dshrinker.c49 * shrink_tnc - shrink TNC tree.
135 * shrink_tnc_trees - shrink UBIFS TNC trees.
155 /* Iterate over all mounted UBIFS file-systems and try to shrink them */ in shrink_tnc_trees()
267 unsigned long ubifs_shrink_count(struct shrinker *shrink, in ubifs_shrink_count() argument
279 unsigned long ubifs_shrink_scan(struct shrinker *shrink, in ubifs_shrink_scan() argument
/linux/fs/nfsd/
H A Dnfscache.c41 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink,
43 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink,
285 * @shrink: our registered shrinker context
294 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument
296 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count()
303 * @shrink: our registered shrinker context
313 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
315 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_scan()
/linux/include/uapi/linux/
H A Dvirtio_mem.h67 * "requested_size" and will grow dynamically. It will only shrink when
103 /* request to unplug all blocks and shrink the usable size */
203 * shrink due to VIRTIO_MEM_REQ_UNPLUG_ALL (in which case no config
/linux/fs/erofs/
H A Dzutil.c243 static unsigned long erofs_shrink_count(struct shrinker *shrink, in erofs_shrink_count() argument
249 static unsigned long erofs_shrink_scan(struct shrinker *shrink, in erofs_shrink_scan() argument
264 /* Iterate over all mounted superblocks and try to shrink them */ in erofs_shrink_scan()
/linux/tools/testing/selftests/perf_events/
H A Dmmap.c25 /* Reserve space for rb, aux with space for shrink-beyond-vma testing. */
196 // Shrink the end of the mapping such that we only unmap past end of the VMA, in TEST_F()
/linux/drivers/md/bcache/
H A Dbtree.c665 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan()
668 struct cache_set *c = shrink->private_data; in bch_mca_scan()
732 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count()
735 struct cache_set *c = shrink->private_data; in bch_mca_count()
753 if (c->shrink) in bch_btree_cache_free()
754 shrinker_free(c->shrink); in bch_btree_cache_free()
829 c->shrink = shrinker_alloc(0, "md-bcache:%pU", c->set_uuid); in bch_btree_cache_alloc()
830 if (!c->shrink) { in bch_btree_cache_alloc()
835 c->shrink->count_objects = bch_mca_count; in bch_btree_cache_alloc()
836 c->shrink in bch_btree_cache_alloc()
664 bch_mca_scan(struct shrinker * shrink,struct shrink_control * sc) bch_mca_scan() argument
731 bch_mca_count(struct shrinker * shrink,struct shrink_control * sc) bch_mca_count() argument
[all...]
/linux/tools/mm/
H A Dslabinfo.c74 int shrink; variable
130 "-s|--shrink Shrink slabs\n" in usage()
335 set_obj(s, "shrink", 1); in slab_shrink()
739 set_obj(s, "shrink", 1); in slab_empty()
1344 else if (shrink) in output_slabs()
1410 { "shrink", no_argument, NULL, 's' },
1488 shrink = 1; in main()
1523 && !validate && !shrink && !set_debug && !show_ops) in main()
/linux/drivers/md/dm-vdo/
H A Dint-map.h21 * shrink as entries are removed.
/linux/Documentation/filesystems/
H A Dbtrfs.rst34 * Online resize (shrink, grow)
/linux/scripts/kconfig/
H A Dgconf.ui450 <property name="shrink">True</property>
482 <property name="shrink">True</property>
515 <property name="shrink">True</property>
521 <property name="shrink">True</property>
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_adjust_tail_shrink.c22 offset = 256; /* shrink too much */ in _xdp_adjust_tail_shrink()
/linux/Documentation/userspace-api/media/v4l/
H A Dselection-api-intro.rst9 shrink or enlarge it to an image of arbitrary size. Next, the devices
/linux/arch/arm/mach-sa1100/include/mach/
H A Dhardware.h32 #define VIO_SHIFT 3 /* x = IO space shrink power */
/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dqcom,rmtfs-mem.yaml38 effective size of the region will thereby shrink with two pages.
/linux/fs/xfs/libxfs/
H A Dxfs_attr.h149 * shrink tree? ─n─┐
160 * do the shrink
353 * │ shrink to sf │

123456789