Home
last modified time | relevance | path

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

123456789

/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 Ddrgn_dump_damon_status.py33 def intervals_goal_to_dict(goal): argument
34 return to_dict(goal, [
94 def damos_quota_goal_to_dict(goal): argument
95 return to_dict(goal, [
H A D_damon_sysfs.py133 goal_tuner = None # quota goal tuner
154 for idx, goal in enumerate(self.goals):
155 goal.idx = idx
156 goal.quota = self
197 for goal in self.goals:
198 err = goal.stage()
800 for goal in scheme.quota.goals:
806 goal.effective_bytes = int(content)
831 for goal in scheme.quota.goals:
832 err = goal
[all...]
/linux/mm/damon/
H A Dcore.c494 struct damos_quota_goal *goal; in damon_destroy_scheme()
496 goal = kmalloc_obj(*goal);
497 if (!goal)
499 goal->metric = metric;
500 goal->target_value = target_value;
501 INIT_LIST_HEAD(&goal->list);
502 return goal; in damon_new_target()
861 * damon_valid_intervals_goal() - return if the intervals goal of @attrs is
866 struct damon_intervals_goal *goal in damos_commit_quota_goal()
358 struct damos_quota_goal *goal; damos_new_quota_goal() local
741 struct damon_intervals_goal *goal = &attrs->intervals_goal; damon_valid_intervals_goal() local
834 struct damos_quota_goal *goal; damos_nth_quota_goal() local
1767 struct damon_intervals_goal *goal; kdamond_tune_intervals() local
2177 const unsigned long goal = 10000; damon_feed_loop_next_input() local
2231 damos_get_node_mem_bp(struct damos_quota_goal * goal) damos_get_node_mem_bp() argument
2252 damos_get_node_memcg_used_bp(struct damos_quota_goal * goal) damos_get_node_memcg_used_bp() argument
2292 damos_get_node_mem_bp(struct damos_quota_goal * goal) damos_get_node_mem_bp() argument
2298 damos_get_node_memcg_used_bp(struct damos_quota_goal * goal) damos_get_node_memcg_used_bp() argument
2322 damos_set_quota_goal_current_value(struct damos_quota_goal * goal) damos_set_quota_goal_current_value() argument
2356 struct damos_quota_goal *goal; damos_quota_score() local
[all...]
H A Dsysfs.c440 * intervals goal directory
455 struct damon_sysfs_intervals_goal *goal = kmalloc_obj(*goal); in damon_sysfs_intervals_goal_alloc() local
457 if (!goal) in damon_sysfs_intervals_goal_alloc()
460 goal->kobj = (struct kobject){}; in damon_sysfs_intervals_goal_alloc()
461 goal->access_bp = access_bp; in damon_sysfs_intervals_goal_alloc()
462 goal->aggrs = aggrs; in damon_sysfs_intervals_goal_alloc()
463 goal->min_sample_us = min_sample_us; in damon_sysfs_intervals_goal_alloc()
464 goal->max_sample_us = max_sample_us; in damon_sysfs_intervals_goal_alloc()
465 return goal; in damon_sysfs_intervals_goal_alloc()
471 struct damon_sysfs_intervals_goal *goal = container_of(kobj, access_bp_show() local
480 struct damon_sysfs_intervals_goal *goal = container_of(kobj, access_bp_store() local
495 struct damon_sysfs_intervals_goal *goal = container_of(kobj, aggrs_show() local
504 struct damon_sysfs_intervals_goal *goal = container_of(kobj, aggrs_store() local
519 struct damon_sysfs_intervals_goal *goal = container_of(kobj, min_sample_us_show() local
528 struct damon_sysfs_intervals_goal *goal = container_of(kobj, min_sample_us_store() local
543 struct damon_sysfs_intervals_goal *goal = container_of(kobj, max_sample_us_show() local
552 struct damon_sysfs_intervals_goal *goal = container_of(kobj, max_sample_us_store() local
626 struct damon_sysfs_intervals_goal *goal; damon_sysfs_intervals_add_dirs() local
[all...]
H A Dsysfs-schemes.c1210 * quota goal directory in path_store()
1275 struct damos_sysfs_quota_goal *goal = container_of(kobj,
1283 if (metric_name->metric == goal->metric) in damos_sysfs_quota_goals_alloc()
1292 struct damos_sysfs_quota_goal *goal = container_of(kobj, in damos_sysfs_quota_goals_rm_dirs()
1301 goal->metric = metric_name->metric; in damos_sysfs_quota_goals_add_dirs() local
1311 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in damos_sysfs_quota_goals_add_dirs()
1314 return sysfs_emit(buf, "%lu\n", goal->target_value); in damos_sysfs_quota_goals_add_dirs()
1320 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in damos_sysfs_quota_goals_add_dirs()
1322 int err = kstrtoul(buf, 0, &goal->target_value); in damos_sysfs_quota_goals_add_dirs()
1330 struct damos_sysfs_quota_goal *goal in damos_sysfs_quota_goals_add_dirs()
1101 struct damos_sysfs_quota_goal *goal = container_of(kobj, target_metric_show() local
1118 struct damos_sysfs_quota_goal *goal = container_of(kobj, target_metric_store() local
1137 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct target_value_show() local
1146 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct target_value_store() local
1156 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct current_value_show() local
1165 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct current_value_store() local
1176 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct nid_show() local
1186 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct nid_store() local
1197 struct damos_sysfs_quota_goal *goal = container_of(kobj, path_show() local
1211 struct damos_sysfs_quota_goal *goal = container_of(kobj, path_store() local
1232 struct damos_sysfs_quota_goal *goal = container_of(kobj, damos_sysfs_quota_goal_release() local
2656 struct damos_quota_goal *goal; damos_sysfs_add_quota_score() local
[all...]
H A Dreclaim.c202 struct damos_quota_goal *goal; in damon_reclaim_apply_parameters()
243 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, in damon_reclaim_apply_parameters()
245 if (!goal) in damon_reclaim_apply_parameters()
247 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
251 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); in damon_reclaim_handle_commit_inputs()
252 if (!goal) in damon_reclaim_handle_commit_inputs()
254 goal->current_value = quota_autotune_feedback; in damon_reclaim_handle_commit_inputs()
255 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_handle_commit_inputs()
187 struct damos_quota_goal *goal; damon_reclaim_apply_parameters() local
H A Dlru_sort.c234 struct damos_quota_goal *goal; in damon_lru_sort_add_quota_goals()
238 goal = damos_new_quota_goal(DAMOS_QUOTA_ACTIVE_MEM_BP, active_mem_bp); in damon_lru_sort_add_quota_goals()
239 if (!goal) in damon_lru_sort_add_quota_goals()
241 damos_add_quota_goal(&hot_scheme->quota, goal); in damon_lru_sort_add_quota_goals()
242 /* aim 0.2 % goal conflict, to keep little ping pong */ in damon_lru_sort_add_quota_goals()
243 goal = damos_new_quota_goal(DAMOS_QUOTA_INACTIVE_MEM_BP, in damon_lru_sort_add_quota_goals()
245 if (!goal) in damon_lru_sort_add_quota_goals()
247 damos_add_quota_goal(&cold_scheme->quota, goal); in damon_lru_sort_add_quota_goals()
233 struct damos_quota_goal *goal; damon_lru_sort_add_quota_goals() local
/linux/fs/ext4/
H A Dmballoc-test.c432 /* get block at goal */ in test_new_blocks_simple()
433 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
435 KUNIT_ASSERT_EQ_MSG(test, ar.goal, found, in test_new_blocks_simple()
436 "failed to alloc block at goal, expected %llu found %llu", in test_new_blocks_simple()
437 ar.goal, found); in test_new_blocks_simple()
439 /* get block after goal in goal group */ in test_new_blocks_simple()
440 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
442 KUNIT_ASSERT_EQ_MSG(test, ar.goal + EXT4_C2B(sbi, 1), found, in test_new_blocks_simple()
443 "failed to alloc block after goal i in test_new_blocks_simple()
[all...]
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
1038 * a larger normalized goal len request which can be trimmed to in ext4_mb_scan_groups_goal_fast()
1039 * a smaller goal len such that it can still satisfy original in ext4_mb_scan_groups_goal_fast()
1054 * order we have and proactively trim the goal request length to that order to
1074 * goal length. in ext4_mb_scan_groups_best_avail()
1092 * up the goal len to num_stripe_clusters in ext4_mb_scan_groups_best_avail()
1106 * Scale down goal len to make sure we find something in ext4_mb_scan_groups_best_avail()
[all …]
/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/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c1691 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async()
1692 || tinfo->curr.width != tinfo->goal.width in ahd_send_async()
1693 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async()
1694 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async()
2391 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period()
2394 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period()
2457 period = tinfo->goal.period; in ahd_linux_set_offset()
2458 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset()
2479 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt()
2481 unsigned int period = tinfo->goal.period; in ahd_linux_set_dt()
[all …]
H A Daic7xxx_osm.c1618 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async()
1619 || tinfo->curr.width != tinfo->goal.width in ahc_send_async()
1620 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async()
1621 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async()
2348 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period()
2350 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period()
2403 period = tinfo->goal.period; in ahc_linux_set_offset()
2404 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset()
2422 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt()
2424 unsigned int period = tinfo->goal.period; in ahc_linux_set_dt()
[all …]
H A Daic7xxx_core.c1862 tinfo->goal.transport_version = 2; in ahc_handle_scsiint()
1863 tinfo->goal.ppr_options = 0; in ahc_handle_scsiint()
2138 * channel, but reset our current and goal settings to async/narrow in ahc_alloc_tstate()
2148 memset(&tstate->transinfo[i].goal, 0, in ahc_alloc_tstate()
2149 sizeof(tstate->transinfo[i].goal)); in ahc_alloc_tstate()
2213 * Never allow a value higher than our current goal in ahc_devlimited_syncrate()
2225 transinfo = &tinfo->goal; in ahc_devlimited_syncrate()
2386 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahc_validate_offset()
2414 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width()
2444 if (tinfo->curr.period != tinfo->goal.period in ahc_update_neg_request()
[all …]
/linux/include/linux/
H A Ddamon.h153 * enum damos_quota_goal_metric - Represents the metric to be used as the goal
165 * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics.
183 * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal.
184 * @metric: Metric to be used for representing the goal.
192 * Data structure for getting the current score of the quota tuning goal. The
223 * enum damos_quota_goal_tuner - Goal-based quota tuning logic.
238 * @goal_tuner: Goal-based @esz tuning algorithm to use.
717 * struct damon_intervals_goal - Monitoring intervals auto-tuning goal.
788 * @intervals_goal: Intervals auto-tuning goal.
986 #define damos_for_each_quota_goal(goal, quot in damon_max_nr_accesses()
895 damos_for_each_quota_goal(goal,quota) global() argument
898 damos_for_each_quota_goal_safe(goal,next,quota) global() 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()
/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);
1702 * the goal.
1706 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab()
1710 switch (goal) { in xfs_icwalk_igrab()
1726 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode()
1733 switch (goal) { in xfs_icwalk_process_inode()
1745 * For a given per-AG structure @pag and a goal, grab qualifying inodes and
1751 enum xfs_icwalk_goal goal, in xfs_icwalk_ag()
1704 xfs_icwalk_igrab(enum xfs_icwalk_goal goal,struct xfs_inode * ip,struct xfs_icwalk * icw) xfs_icwalk_igrab() argument
1724 xfs_icwalk_process_inode(enum xfs_icwalk_goal goal,struct xfs_inode * ip,struct xfs_perag * pag,struct xfs_icwalk * icw) xfs_icwalk_process_inode() argument
1749 xfs_icwalk_ag(struct xfs_perag * pag,enum xfs_icwalk_goal goal,struct xfs_icwalk * icw) xfs_icwalk_ag() argument
1858 xfs_icwalk(struct xfs_mount * mp,enum xfs_icwalk_goal goal,struct xfs_icwalk * icw) xfs_icwalk() argument
[all...]
/linux/net/netfilter/ipvs/
H A Dip_vs_lblc.c298 int goal; in ip_vs_lblc_check_expire() local
315 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
316 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
317 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
329 goal--; in ip_vs_lblc_check_expire()
332 if (goal <= 0) in ip_vs_lblc_check_expire()
H A Dip_vs_lblcr.c462 int goal; in ip_vs_lblcr_check_expire() local
479 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire()
480 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire()
481 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire()
493 goal--; in ip_vs_lblcr_check_expire()
496 if (goal <= 0) in ip_vs_lblcr_check_expire()
/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/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/tools/lib/python/
H A Djobserver.py22 Here, the goal is different: This script aims to get the remaining number
29 The end goal here is to keep the total number of build tasks under the
/linux/fs/ocfs2/
H A Dmove_extents.c469 * XXX: helper to validate and adjust moving goal.
483 * make goal become cluster aligned. in ocfs2_validate_and_adjust_move_goal()
488 * validate goal sits within global_bitmap, and return the victim in ocfs2_validate_and_adjust_move_goal()
501 * moving goal is not allowed to start with a group desc blok(#0 blk) in ocfs2_validate_and_adjust_move_goal()
677 * around the goal. in ocfs2_move_extent()
1065 * first best-effort attempt to validate and adjust the goal in ocfs2_ioctl_move_extents()
/linux/Documentation/gpu/rfc/
H A Dindex.rst9 * Each RFC should be a section in this file, explaining the goal and main design
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c451 static bool reclaim_until(const char *memcg, long goal);
882 * Reclaim from @memcg until usage reaches @goal by writing to
886 * goal. in reclaim_until() argument
894 * the usage goal was satisfied. in reclaim_until()
896 static bool reclaim_until(const char *memcg, long goal) in reclaim_until()
906 if (current < goal || values_close(current, goal, 3)) in reclaim_until()
912 to_reclaim = current - goal;

123456789