Lines Matching +full:monitor +full:- +full:interval +full:- +full:ms

1 /* SPDX-License-Identifier: GPL-2.0 */
19 /* Max priority score for DAMON-based operation schemes */
25 return l + get_random_u32_below(r - l); in damon_rand()
29 * struct damon_addr_range - Represents an address region of [@start, @end).
39 * struct damon_region - Represents a monitoring target region.
46 * @age is initially zero, increased for each aggregation interval, and reset
49 * region are set as region size-weighted average of those of the two regions.
63 * struct damon_target - Represents a monitoring target.
64 * @pid: The PID of the virtual address space to monitor.
82 * enum damos_action - Represents an action of a Data Access Monitoring-based
114 * struct damos_quota - Controls the aggressiveness of the given scheme.
115 * @ms: Maximum milliseconds that the scheme can use.
117 * @reset_interval: Charge reset interval in milliseconds.
124 * &struct damos->action to large memory, DAMON allows users to set time and/or
125 * size quotas. The quotas can be set by writing non-zero values to &ms and
127 * &ms milliseconds within &reset_interval for applying the action. If the
136 * target memory regions using the &struct damon_operations->get_scheme_score.
142 unsigned long ms; member
169 * enum damos_wmark_metric - Represents the watermark metric.
182 * struct damos_watermarks - Controls when a given scheme should be activated.
184 * @interval: Watermarks check time interval in microseconds.
192 * least every &interval microseconds and works as below.
200 unsigned long interval; member
210 * struct damos_stat - Statistics on a given scheme.
226 * enum damos_filter_type - Type of memory for &struct damos_filter
253 * struct damos_filter - DAMOS action target memory filter.
259 * &damon_ctx->adaptive_targets if @type is
263 * Before applying the &damos->action to a memory region, DAMOS checks if each
280 * struct damos_access_pattern - Target access pattern of the given scheme.
283 * @min_nr_accesses: Minimum ``->nr_accesses`` of target regions.
284 * @max_nr_accesses: Maximum ``->nr_accesses`` of target regions.
298 * struct damos - Represents a Data Access Monitoring-based Operation Scheme.
307 * For each aggregation interval, DAMON finds regions which fit in the
338 * enum damon_ops_id - Identifier for each monitoring operations implementation
356 * struct damon_operations - Monitoring operations for given use cases.
359 * @init: Initialize operations-related data structures.
360 * @update: Update operations-related data structures.
365 * @apply_scheme: Apply a DAMON-based operation scheme.
380 * @init should initialize operations-related data structures. For example,
383 * @update should update the operations-related data structures. For example,
396 * DAMON-based operation scheme is found. It should apply the scheme's action
421 * struct damon_callback - Monitoring events notification callbacks.
436 * The monitoring thread calls @after_wmarks_check after each DAMON-based
447 * If any callback returns non-zero, monitoring stops.
464 * struct damon_attrs - Monitoring attributes for accuracy/overhead control.
467 * @aggr_interval: The time between monitor results aggregations.
479 * @ops_update_interval. All time intervals are in micro-seconds.
492 * struct damon_ctx - Represents a context for each monitoring. This is the
541 return container_of(r->list.next, struct damon_region, list); in damon_next_region()
546 return container_of(r->list.prev, struct damon_region, list); in damon_prev_region()
551 return list_last_entry(&t->regions_list, struct damon_region, list); in damon_last_region()
556 return list_first_entry(&t->regions_list, struct damon_region, list); in damon_first_region()
561 return r->ar.end - r->ar.start; in damon_sz_region()
566 list_for_each_entry(r, &t->regions_list, list)
569 list_for_each_entry_from(r, &t->regions_list, list)
572 list_for_each_entry_safe(r, next, &t->regions_list, list)
575 list_for_each_entry(t, &(ctx)->adaptive_targets, list)
578 list_for_each_entry_safe(t, next, &(ctx)->adaptive_targets, list)
581 list_for_each_entry(s, &(ctx)->schemes, list)
584 list_for_each_entry_safe(s, next, &(ctx)->schemes, list)
587 list_for_each_entry(f, &(scheme)->filters, list)
590 list_for_each_entry_safe(f, next, &(scheme)->filters, list)
603 __list_add(&r->list, &prev->list, &next->list); in damon_insert_region()
604 t->nr_regions++; in damon_insert_region()
642 return ctx->ops.id == DAMON_OPS_VADDR || ctx->ops.id == DAMON_OPS_FVADDR; in damon_target_has_pid()