STRUCT DAMOS_WATERMARKS(9)
π§ struct damos_watermarks(9) π§
okay bestie, welcome to the Kernel API Manual β¨ β this one's all about struct damos_watermarks, and honestly? it's giving "little struct that decides when your scheme gets to be the main character." let's get into it π«Ά
πΈ NAME πΈ
struct damos_watermarks β literally the controls for when a given scheme should be activated. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
struct damos_watermarks {
enum damos_wmark_metric metric;
unsigned long interval;
unsigned long high;
unsigned long mid;
unsigned long low;
};
like, look at her. five fields. iconic. π
π Members π
metricβ the metric for the watermarks. the thing we're actually measuring, iykyk π¦intervalβ watermarks check time interval, in microseconds. yes, microseconds. she's precise like that β±οΈhighβ the high watermark π₯midβ the middle watermark πlowβ the low watermark π
π§ Description π§
so here's the tea β β if metric is DAMOS_WMARK_NONE, the scheme is always active. and being active means DAMON does monitoring and applies the action of the scheme to appropriate memory regions. periodt. π
else (as in, not DAMOS_WMARK_NONE, bestie), DAMON checks metric of the system for at least every interval microseconds, and works like this:
- if
metricis higher thanhigh, the scheme is inactivated π - if
metricis betweenmidandlow, the scheme is activated β¨ - if
metricis lower thanlow, the scheme is inactivated π
literally three little rules and she's running the whole vibe check. obsessed. π
π SEE ALSO π
kernel file ./include/linux/damon.h π
struct damon_addr_range(9), struct damon_size_range(9), struct damon_region(9), struct damon_target(9), enum damos_action(9), enum damos_quota_goal_metric(9), struct damos_quota_goal(9), enum damos_quota_goal_tuner(9), struct damos_quota(9), enum damos_wmark_metric(9), struct damos_stat(9), enum damos_filter_type(9), struct damos_filter(9), struct damos_walk_control(9), struct damos_access_pattern(9), struct damos_migrate_dests(9), struct damos(9), enum damon_ops_id(9), struct damon_operations(9), struct damon_intervals_goal(9), enum damon_filter_type(9), struct damon_filter(9), struct damon_probe(9), struct damon_attrs(9), struct damon_ctx(9)
and that's the whole page, bestie π«Ά β sourced from ./include/linux, dated October 2026, and she's still struct damos_watermarks(9) at the end of the day. slay π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms