Skip to content

perf(resources): cache read_disk_usage via mtime to avoid full-tree walk every 5s #107

@AbstractNucleus

Description

@AbstractNucleus

What: resources.read_disk_usage walks the entire server tree on every Resources card poll (every 5s).

Why: For a multi-GB world this hits disk continuously. Doesn't scale beyond a handful of servers.

Approach: Cache the result keyed by (server_id, mtime of server root) — invalidate when the root's mtime advances. Or split the poll cadence: stats every 5s, disk usage every 60s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions