Home
last modified time | relevance | path

Searched full:goal (Results 1 – 25 of 249) sorted by relevance

12345678910

/linux/tools/testing/selftests/damon/
H A Ddamos_quota_goal.py14 goal = _damon_sysfs.DamosQuotaGoal(
23 goals=[goal], reset_interval_ms=100),
39 goal.current_value = score_values_to_test.pop(0)
40 expect_increase = goal.current_value < goal.target_value
51 last_effective_bytes = goal.effective_bytes
61 goal.current_value, last_effective_bytes, goal.effective_bytes,
62 goal.effective_bytes / last_effective_bytes
65 if last_effective_bytes == goal.effective_bytes:
69 print('efective bytes not changed: %d' % goal.effective_bytes)
72 increased = last_effective_bytes < goal.effective_bytes
[all …]
H A D_damon_sysfs.py149 for idx, goal in enumerate(self.goals):
150 goal.idx = idx
151 goal.quota = self
190 for goal in self.goals:
191 err = goal.stage()
762 for goal in scheme.quota.goals:
768 goal.effective_bytes = int(content)
793 for goal in scheme.quota.goals:
794 err = goal.stage()
/linux/fs/ext2/
H A Dballoc.c256 * @grp_goal: given goal block relative to the allocation block group
260 * Test if the given goal block (group relative) is within the file's
263 * If the reservation window is outside the goal allocation group, return 0;
264 * grp_goal (given goal block) could be -1, which means no specific
265 * goal block. In this case, always return 1.
266 * If the goal block is within the reservation window, return 1;
290 * @goal: target allocation block
292 * Find the reserved window which includes the goal, or the previous one
293 * if the goal is not in any window.
294 * Returns NULL if there are no windows or if all windows start after the goal.
[all …]
H A Dinode.c16 * Goal-directed block allocation by Stephen Tweedie
327 * Returns preferred place for a block (the goal).
390 * @goal: Preferred place for allocation.
400 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
422 current_block = ext2_new_blocks(inode, goal, &count, err, 0); in ext2_alloc_blocks()
457 * @goal: preferred place for allocation
480 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument
491 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch()
587 * in i_block_alloc_info, to assist find the proper goal block for next in ext2_splice_branch()
633 ext2_fsblk_t goal; in ext2_get_blocks() local
[all …]
/linux/mm/damon/
H A Dsysfs.c412 * intervals goal directory
427 struct damon_sysfs_intervals_goal *goal = kmalloc(sizeof(*goal), in damon_sysfs_intervals_goal_alloc() local
430 if (!goal) in damon_sysfs_intervals_goal_alloc()
433 goal->kobj = (struct kobject){}; in damon_sysfs_intervals_goal_alloc()
434 goal->access_bp = access_bp; in damon_sysfs_intervals_goal_alloc()
435 goal->aggrs = aggrs; in damon_sysfs_intervals_goal_alloc()
436 goal->min_sample_us = min_sample_us; in damon_sysfs_intervals_goal_alloc()
437 goal->max_sample_us = max_sample_us; in damon_sysfs_intervals_goal_alloc()
438 return goal; in damon_sysfs_intervals_goal_alloc()
444 struct damon_sysfs_intervals_goal *goal = container_of(kobj, in access_bp_show() local
[all …]
H A Dcore.c331 struct damos_quota_goal *goal; in damos_new_quota_goal() local
333 goal = kmalloc(sizeof(*goal), GFP_KERNEL); in damos_new_quota_goal()
334 if (!goal) in damos_new_quota_goal()
336 goal->metric = metric; in damos_new_quota_goal()
337 goal->target_value = target_value; in damos_new_quota_goal()
338 INIT_LIST_HEAD(&goal->list); in damos_new_quota_goal()
339 return goal; in damos_new_quota_goal()
680 * damon_valid_intervals_goal() - return if the intervals goal of @attrs is
685 struct damon_intervals_goal *goal = &attrs->intervals_goal; in damon_valid_intervals_goal() local
688 if (!goal->aggrs) in damon_valid_intervals_goal()
[all …]
H A Dreclaim.c196 struct damos_quota_goal *goal; in damon_reclaim_apply_parameters() local
229 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, in damon_reclaim_apply_parameters()
231 if (!goal) in damon_reclaim_apply_parameters()
233 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
237 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); in damon_reclaim_apply_parameters()
238 if (!goal) in damon_reclaim_apply_parameters()
240 goal->current_value = quota_autotune_feedback; in damon_reclaim_apply_parameters()
241 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
H A Dsysfs-schemes.c993 * quota goal directory
1037 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local
1045 if (metric_name->metric == goal->metric) in target_metric_show()
1054 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local
1063 goal->metric = metric_name->metric; in target_metric_store()
1073 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local
1076 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show()
1082 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local
1084 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store()
1092 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local
[all …]
/linux/fs/affs/
H A Dbitmap.c115 affs_alloc_block(struct inode *inode, u32 goal) in affs_alloc_block() argument
128 pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); in affs_alloc_block()
136 if (!goal || goal > sbi->s_partition_size) { in affs_alloc_block()
137 if (goal) in affs_alloc_block()
138 affs_warning(sb, "affs_balloc", "invalid goal %d", goal); in affs_alloc_block()
141 goal = sbi->s_reserved; in affs_alloc_block()
144 blk = goal - sbi->s_reserved; in affs_alloc_block()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_ima.c100 * - Goal: obtain a sample with the bpf_ima_inode_hash() helper in test_test_ima()
114 * - Goal: obtain samples with the bpf_ima_file_hash() helper in test_test_ima()
131 * - Goal: confirm that bpf_ima_inode_hash() returns a non-fresh digest in test_test_ima()
170 * - Goal: verify that bpf_ima_file_hash() returns a fresh digest in test_test_ima()
201 * - Goal: obtain a sample from the kernel_read_file hook in test_test_ima()
219 * - Goal: ensure that the kernel_read_file hook denies an operation in test_test_ima()
/linux/include/linux/
H A Ddamon.h144 * enum damos_quota_goal_metric - Represents the metric to be used as the goal
150 * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics.
163 * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal.
164 * @metric: Metric to be used for representing the goal.
171 * Data structure for getting the current score of the quota tuning goal. The
660 * struct damon_intervals_goal - Monitoring intervals auto-tuning goal.
690 * @intervals_goal: Intervals auto-tuning goal.
848 #define damos_for_each_quota_goal(goal, quota) \ argument
849 list_for_each_entry(goal, &quota->goals, list)
851 #define damos_for_each_quota_goal_safe(goal, next, quota) \ argument
[all …]
/linux/fs/hfs/
H A Dbitmap.c139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
153 if (goal) in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
H A Dextent.c394 u32 start, len, goal; in hfs_extend_file() local
399 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); in hfs_extend_file()
404 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); in hfs_extend_file()
408 start = hfs_vbm_search_free(sb, goal, &len); in hfs_extend_file()
/linux/fs/xfs/
H A Dxfs_icache.c42 * The goal for walking incore inodes. These can correspond with incore inode
52 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
54 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
1696 * the goal.
1700 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument
1704 switch (goal) { in xfs_icwalk_igrab()
1720 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument
1727 switch (goal) { in xfs_icwalk_process_inode()
1739 * For a given per-AG structure @pag and a goal, grab qualifying inodes and
1745 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument
[all …]
/linux/arch/riscv/kernel/
H A Dmachine_kexec.c25 * provided us with an image to be loaded. Its goal is to validate
101 * below. Its goal is to prepare the rest of the system (the other
121 * and its goal is to shutdown non-crashing cpus and save registers.
/linux/net/netfilter/ipvs/
H A Dip_vs_lblc.c299 int goal; in ip_vs_lblc_check_expire() local
316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
317 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
318 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
330 goal--; in ip_vs_lblc_check_expire()
333 if (goal <= 0) in ip_vs_lblc_check_expire()
H A Dip_vs_lblcr.c463 int goal; in ip_vs_lblcr_check_expire() local
480 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire()
481 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire()
482 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire()
494 goal--; in ip_vs_lblcr_check_expire()
497 if (goal <= 0) in ip_vs_lblcr_check_expire()
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1352 struct sym_trans *goal) argument
1355 goal->width = 0;
1358 goal->iu = 0;
1359 goal->dt = 0;
1360 goal->qas = 0;
1361 goal->offset = 0;
1367 goal->dt = 1;
1369 if (goal->offset == 0)
1370 goal->dt = 0;
1372 goal->dt = 0;
[all …]
/linux/fs/hfsplus/
H A Dextents.c441 u32 start, len, goal; in hfsplus_file_extend() local
455 goal = hfsplus_ext_lastblock(hip->first_extents); in hfsplus_file_extend()
460 goal = hfsplus_ext_lastblock(hip->cached_extents); in hfsplus_file_extend()
464 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend()
466 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend()
467 if (start >= goal) { in hfsplus_file_extend()
/linux/fs/ufs/
H A Dinode.c24 * Goal-directed block allocation by Stephen Tweedie (sct@dcs.ed.ac.uk), 1993
262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local
277 goal = 0; in ufs_inode_getfrag()
279 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag()
281 if (goal) in ufs_inode_getfrag()
282 goal += uspi->s_fpb; in ufs_inode_getfrag()
285 goal, nfrags, err, locked_folio); in ufs_inode_getfrag()
320 u64 tmp = 0, goal; in ufs_inode_getblock() local
346 goal = tmp + uspi->s_fpb; in ufs_inode_getblock()
348 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock()
[all …]
/linux/fs/ext4/
H A Dmballoc.c45 * near to the goal(block) value specified.
179 * fragment size > goal length. So before falling to the slower
180 * CR_GOAL_LEN_SLOW, in CR_BEST_AVAIL_LEN we proactively trim goal length and
208 * the group specified as the goal value in allocation context via
1006 * a larger normalized goal len request which can be trimmed to in ext4_mb_scan_groups_goal_fast()
1007 * a smaller goal len such that it can still satisfy original in ext4_mb_scan_groups_goal_fast()
1022 * order we have and proactively trim the goal request length to that order to
1042 * goal length. in ext4_mb_scan_groups_best_avail()
1060 * up the goal len to num_stripe_clusters in ext4_mb_scan_groups_best_avail()
1074 * Scale down goal len to make sure we find something in ext4_mb_scan_groups_best_avail()
[all …]
H A Dindirect.c20 * Goal-directed block allocation by Stephen Tweedie
254 ext4_fsblk_t goal; in ext4_find_goal() local
257 * XXX need to get goal block from mballoc's data structures in ext4_find_goal()
260 goal = ext4_find_near(inode, partial); in ext4_find_goal()
261 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS; in ext4_find_goal()
262 return goal; in ext4_find_goal()
342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
343 ar->inode, ar->goal, in ext4_alloc_branch()
620 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
/linux/fs/ocfs2/
H A Dmove_extents.c463 * XXX: helper to validate and adjust moving goal.
477 * make goal become cluster aligned. in ocfs2_validate_and_adjust_move_goal()
482 * validate goal sits within global_bitmap, and return the victim in ocfs2_validate_and_adjust_move_goal()
495 * moving goal is not allowed to start with a group desc blok(#0 blk) in ocfs2_validate_and_adjust_move_goal()
663 * around the goal. in ocfs2_move_extent()
1041 * first best-effort attempt to validate and adjust the goal in ocfs2_ioctl_move_extents()
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c441 static bool reclaim_until(const char *memcg, long goal); in test_memcg_protection()
872 * Reclaim from @memcg until usage reaches @goal by writing to in test_memcg_reclaim()
876 * goal. in test_memcg_reclaim()
884 * the usage goal was satisfied. in test_memcg_reclaim()
886 static bool reclaim_until(const char *memcg, long goal) in test_memcg_reclaim()
896 if (current < goal || values_close(current, goal, 3)) in test_memcg_reclaim()
902 to_reclaim = current - goal; in test_memcg_reclaim()
808 reclaim_until(const char * memcg,long goal) reclaim_until() argument
/linux/mm/
H A Dsparse.c325 unsigned long goal, limit; in sparse_early_usemaps_alloc_pgdat_section() local
337 goal = pgdat_to_phys(pgdat) & (PAGE_SECTION_MASK << PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
338 limit = goal + (1UL << PA_SECTION_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
339 nid = early_pfn_to_nid(goal >> PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
341 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()

12345678910