Home
last modified time | relevance | path

Searched refs:goal (Results 1 – 25 of 97) sorted by relevance

1234

/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
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 Dcore.c358 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()
741 struct damon_intervals_goal *goal = &attrs->intervals_goal; in damon_valid_intervals_goal() local
744 if (!goal->aggrs) in damon_valid_intervals_goal()
746 if (goal->min_sample_us > goal->max_sample_us) in damon_valid_intervals_goal()
[all …]
H A Dreclaim.c187 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 Dsysfs.c455 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
474 return sysfs_emit(buf, "%lu\n", goal->access_bp); in access_bp_show()
[all …]
H A Dlru_sort.c233 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()
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()
H A Dsysfs-schemes.c1101 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local
1109 if (metric_name->metric == goal->metric) in target_metric_show()
1118 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local
1127 goal->metric = metric_name->metric; in target_metric_store()
1137 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local
1140 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show()
1146 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local
1148 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store()
1156 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local
1159 return sysfs_emit(buf, "%lu\n", goal->current_value); in current_value_show()
[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/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()
2148 memset(&tstate->transinfo[i].goal, 0, in ahc_alloc_tstate()
2149 sizeof(tstate->transinfo[i].goal)); in ahc_alloc_tstate()
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()
2445 || tinfo->curr.width != tinfo->goal.width in ahc_update_neg_request()
2446 || tinfo->curr.offset != tinfo->goal.offset in ahc_update_neg_request()
[all …]
H A Daic79xx_core.c3140 tinfo->goal.transport_version = 2; in ahd_handle_nonpkt_busfree()
3141 tinfo->goal.ppr_options = 0; in ahd_handle_nonpkt_busfree()
3623 memset(&tstate->transinfo[i].goal, 0, in ahd_alloc_tstate()
3624 sizeof(tstate->transinfo[i].goal)); in ahd_alloc_tstate()
3691 transinfo = &tinfo->goal; in ahd_devlimited_syncrate()
3773 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahd_validate_offset()
3801 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahd_validate_width()
3831 if (tinfo->curr.period != tinfo->goal.period in ahd_update_neg_request()
3832 || tinfo->curr.width != tinfo->goal.width in ahd_update_neg_request()
3833 || tinfo->curr.offset != tinfo->goal.offset in ahd_update_neg_request()
[all …]
/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/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/include/linux/
H A Ddamon.h895 #define damos_for_each_quota_goal(goal, quota) \ argument
896 list_for_each_entry(goal, &quota->goals, list)
898 #define damos_for_each_quota_goal_safe(goal, next, quota) \ argument
899 list_for_each_entry_safe(goal, next, &(quota)->goals, list)
945 void damos_destroy_quota_goal(struct damos_quota_goal *goal);
/linux/fs/xfs/
H A Dxfs_icache.c52 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
54 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
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()
1749 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument
1762 if (goal == XFS_ICWALK_RECLAIM) in xfs_icwalk_ag()
1776 XFS_LOOKUP_BATCH, goal); in xfs_icwalk_ag()
1790 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
[all …]
/linux/fs/ext4/
H A Dmballoc-test.c420 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()
424 ar.goal, found); 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()
431 ar.goal + 1, found); in test_new_blocks_simple()
435 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
445 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
455 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
H A Dialloc.c934 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode() argument
1013 if (!goal) in __ext4_new_inode()
1014 goal = sbi->s_inode_goal; in __ext4_new_inode()
1016 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { in __ext4_new_inode()
1017 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
1018 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
/linux/Documentation/gpu/rfc/
H A Dindex.rst9 * Each RFC should be a section in this file, explaining the goal and main design
/linux/net/dccp/
H A Dproto.c
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c444 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
/linux/block/
H A DKconfig.iosched17 goal.
/linux/Documentation/networking/
H A Dsctp.rst21 The initial project goal is to create an Linux kernel reference implementation

1234