On 02/12/2026 23:33, Matthew Brost wrote:
The BO defrag per-run size limit, default worker interval and maximum
backed off worker interval are currently fixed at build time via
Kconfig. Tuning them requires a rebuild, which makes experimenting with
defrag behaviour on a running system painful.

Add defrag_size_limit, defrag_interval_ms and defrag_interval_max_ms
device sysfs attributes, defaulting to the Kconfig values. Writes are
validated against the Kconfig ranges, the size limit must be 2M aligned,
and the default interval may not exceed the maximum interval. Lowering
the size limit below 2M (disabling defrag) remains a build time only
decision, so the attributes are only exposed when defrag is supported.
Report the runtime values in the bo_defrag debugfs entry.

Cc: Carlos Santa <[email protected]>
Cc: Ryan Neph <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Thomas Hellström <[email protected]>
Cc: Natalie Vock <[email protected]>
Cc: Arun Pravin <[email protected]>
Signed-off-by: Matthew Brost <[email protected]>

Reviewed-by: Matthew Auld <[email protected]>

Reply via email to