Home
last modified time | relevance | path

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

12345678910

/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/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/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/bcachefs/
H A Dbtree_key_cache.c593 static unsigned long bch2_btree_key_cache_scan(struct shrinker *shrink, in bch2_btree_key_cache_scan() argument
596 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_scan()
672 static unsigned long bch2_btree_key_cache_count(struct shrinker *shrink, in bch2_btree_key_cache_count() argument
675 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_count()
700 shrinker_free(bc->shrink); in bch2_fs_btree_key_cache_exit()
754 struct shrinker *shrink; in bch2_fs_btree_key_cache_init() local
769 shrink = shrinker_alloc(0, "%s-btree_key_cache", c->name); in bch2_fs_btree_key_cache_init()
770 if (!shrink) in bch2_fs_btree_key_cache_init()
772 bc->shrink = shrink; in bch2_fs_btree_key_cache_init()
773 shrink->count_objects = bch2_btree_key_cache_count; in bch2_fs_btree_key_cache_init()
[all …]
H A Dbtree_cache.c462 static unsigned long bch2_btree_cache_scan(struct shrinker *shrink, in bch2_btree_cache_scan() argument
465 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_scan()
565 static unsigned long bch2_btree_cache_count(struct shrinker *shrink, in bch2_btree_cache_count() argument
568 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_count()
582 shrinker_free(bc->live[1].shrink); in bch2_fs_btree_cache_exit()
583 shrinker_free(bc->live[0].shrink); in bch2_fs_btree_cache_exit()
640 struct shrinker *shrink; in bch2_fs_btree_cache_init() local
660 shrink = shrinker_alloc(0, "%s-btree_cache", c->name); in bch2_fs_btree_cache_init()
661 if (!shrink) in bch2_fs_btree_cache_init()
663 bc->live[0].shrink = shrink; in bch2_fs_btree_cache_init()
[all …]
H A Dbtree_key_cache_types.h11 struct shrinker *shrink; member
H A Dsysfs.c456 bc->live[0].shrink->scan_objects(bc->live[0].shrink, &sc); in STORE()
464 c->btree_key_cache.shrink->scan_objects(c->btree_key_cache.shrink, &sc); in STORE()
/linux/drivers/android/
H A Ddbitmap.h11 * A dbitmap can grow or shrink as needed. This part has been designed
14 * are verified to determine if the grow or shrink is sill valid.
42 /* Returns the nbits that a dbitmap can shrink to, 0 if not possible. */
51 * Determine if the bitmap can shrink based on the position of in dbitmap_shrink_nbits()
54 * bitmap should shrink to half its current size. in dbitmap_shrink_nbits()
/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/include/trace/events/
H A Dvmscan.h210 __field(void *, shrink)
222 __entry->shrink = shr->scan_objects;
232 TP_printk("%pS %p: nid: %d objects to shrink %ld gfp_flags %s cache items %ld delta %lld total_scan %ld priority %d",
233 __entry->shrink,
254 __field(void *, shrink)
264 __entry->shrink = shr->scan_objects;
272 __entry->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()
/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,
296 * @shrink: our registered shrinker context
305 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument
307 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count()
314 * @shrink: our registered shrinker context
324 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
326 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/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c105 bool (*shrink)(struct drm_gem_object *obj); in msm_gem_shrinker_scan() member
126 stages[i].shrink); in msm_gem_shrinker_scan()
/linux/drivers/md/bcache/
H A Dbtree.c667 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() argument
670 struct cache_set *c = shrink->private_data; in bch_mca_scan()
734 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count() argument
737 struct cache_set *c = shrink->private_data; in bch_mca_count()
755 if (c->shrink) in bch_btree_cache_free()
756 shrinker_free(c->shrink); in bch_btree_cache_free()
831 c->shrink = shrinker_alloc(0, "md-bcache:%pU", c->set_uuid); in bch_btree_cache_alloc()
832 if (!c->shrink) { in bch_btree_cache_alloc()
837 c->shrink->count_objects = bch_mca_count; in bch_btree_cache_alloc()
838 c->shrink->scan_objects = bch_mca_scan; in bch_btree_cache_alloc()
[all …]
/linux/tools/mm/
H A Dslabinfo.c74 int shrink; variable
130 "-s|--shrink Shrink slabs\n" in usage()
332 set_obj(s, "shrink", 1); in slab_shrink()
736 set_obj(s, "shrink", 1); in slab_empty()
1341 else if (shrink) in output_slabs()
1407 { "shrink", no_argument, NULL, 's' },
1485 shrink = 1; in main()
1520 && !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/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.rst8 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 */

12345678910