| /linux/tools/testing/selftests/damon/ |
| H A D | damos_quota_goal.py | 14 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 | drgn_dump_damon_status.py | 33 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.py | 133 goal_tuner = None # quota goal tuner 151 for idx, goal in enumerate(self.goals): 152 goal.idx = idx 153 goal.quota = self 192 for goal in self.goals: 193 err = goal.stage() 775 for goal in scheme.quota.goals: 781 goal.effective_bytes = int(content) 806 for goal in scheme.quota.goals: 807 err = goal [all...] |
| /linux/mm/damon/ |
| H A D | core.c | 358 struct damos_quota_goal *goal; in damos_new_quota_goal() local 360 goal = kmalloc_obj(*goal); in damos_new_quota_goal() 361 if (!goal) in damos_new_quota_goal() 363 goal->metric = metric; in damos_new_quota_goal() 364 goal->target_value = target_value; in damos_new_quota_goal() 365 INIT_LIST_HEAD(&goal->list); in damos_new_quota_goal() 366 return goal; in damos_new_quota_goal() 736 * damon_valid_intervals_goal() - return if the intervals goal of @attrs is 741 struct damon_intervals_goal *goal = &attrs->intervals_goal; in damon_valid_intervals_goal() local 744 if (!goal->aggrs) in damon_valid_intervals_goal() [all …]
|
| H A D | sysfs.c | 440 * 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, in access_bp_show() local [all …]
|
| H A D | sysfs-schemes.c | 1041 * quota goal directory 1102 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local 1110 if (metric_name->metric == goal->metric) in target_metric_show() 1119 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local 1128 goal->metric = metric_name->metric; in target_metric_store() 1138 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local 1141 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show() 1147 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local 1149 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store() 1157 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local [all …]
|
| H A D | reclaim.c | 187 struct damos_quota_goal *goal; in damon_reclaim_apply_parameters() local 214 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, in damon_reclaim_apply_parameters() 216 if (!goal) in damon_reclaim_apply_parameters() 218 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters() 222 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); in damon_reclaim_apply_parameters() 223 if (!goal) in damon_reclaim_apply_parameters() 225 goal->current_value = quota_autotune_feedback; in damon_reclaim_apply_parameters() 226 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
|
| H A D | lru_sort.c | 233 struct damos_quota_goal *goal; in damon_lru_sort_add_quota_goals() local 237 goal = damos_new_quota_goal(DAMOS_QUOTA_ACTIVE_MEM_BP, active_mem_bp); in damon_lru_sort_add_quota_goals() 238 if (!goal) in damon_lru_sort_add_quota_goals() 240 damos_add_quota_goal(&hot_scheme->quota, goal); in damon_lru_sort_add_quota_goals() 241 /* aim 0.2 % goal conflict, to keep little ping pong */ in damon_lru_sort_add_quota_goals() 242 goal = damos_new_quota_goal(DAMOS_QUOTA_INACTIVE_MEM_BP, in damon_lru_sort_add_quota_goals() 244 if (!goal) in damon_lru_sort_add_quota_goals() 246 damos_add_quota_goal(&cold_scheme->quota, goal); in damon_lru_sort_add_quota_goals()
|
| /linux/fs/ext4/ |
| H A D | mballoc-test.c | 419 /* get block at goal */ in test_new_blocks_simple() 420 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple() 422 KUNIT_ASSERT_EQ_MSG(test, ar.goal, found, in test_new_blocks_simple() 423 "failed to alloc block at goal, expected %llu found %llu", in test_new_blocks_simple() 424 ar.goal, found); in test_new_blocks_simple() 426 /* get block after goal in goal group */ in test_new_blocks_simple() 427 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple() 429 KUNIT_ASSERT_EQ_MSG(test, ar.goal + EXT4_C2B(sbi, 1), found, in test_new_blocks_simple() 430 "failed to alloc block after goal in goal group, expected %llu found %llu", in test_new_blocks_simple() 431 ar.goal + 1, found); in test_new_blocks_simple() [all …]
|
| H A D | mballoc.c | 45 * 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 D | test_ima.c | 100 * - 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 D | aic79xx_osm.c | 1691 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 D | aic7xxx_osm.c | 1618 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 D | aic7xxx_core.c | 1862 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 D | damon.h | 152 * enum damos_quota_goal_metric - Represents the metric to be used as the goal 162 * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics. 179 * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal. 180 * @metric: Metric to be used for representing the goal. 188 * Data structure for getting the current score of the quota tuning goal. The 219 * enum damos_quota_goal_tuner - Goal-based quota tuning logic. 234 * @goal_tuner: Goal-based @esz tuning algorithm to use. 700 * struct damon_intervals_goal - Monitoring intervals auto-tuning goal. 730 * @intervals_goal: Intervals auto-tuning goal. 895 #define damos_for_each_quota_goal(goal, quota) \ argument [all …]
|
| /linux/fs/hfs/ |
| H A D | bitmap.c | 139 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 D | xfs_icache.c | 42 * 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); 1700 * the goal. 1704 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument 1708 switch (goal) { in xfs_icwalk_igrab() 1724 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument 1731 switch (goal) { in xfs_icwalk_process_inode() 1743 * For a given per-AG structure @pag and a goal, grab qualifying inodes and 1749 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument [all …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_lblc.c | 298 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 D | ip_vs_lblcr.c | 462 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 D | machine_kexec.c | 25 * 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 D | sym_hipd.c | 1352 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 D | jobserver.py | 22 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 D | move_extents.c | 469 * 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() 675 * around the goal. in ocfs2_move_extent() 1063 * first best-effort attempt to validate and adjust the goal in ocfs2_ioctl_move_extents()
|
| /linux/Documentation/gpu/rfc/ |
| H A D | index.rst | 9 * Each RFC should be a section in this file, explaining the goal and main design
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_memcontrol.c | 444 static bool reclaim_until(const char *memcg, long goal); 875 * Reclaim from @memcg until usage reaches @goal by writing to 879 * goal. 887 * the usage goal was satisfied. in reclaim_until() 889 static bool reclaim_until(const char *memcg, long goal) in reclaim_until() 899 if (current < goal || values_close(current, goal, 3)) in reclaim_until() 905 to_reclaim = current - goal; in reclaim_until() 886 reclaim_until(const char * memcg,long goal) reclaim_until() argument
|