mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
999 B
999 B
id, title, status, assignee, parent, priority, tags, whitepaper
| id | title | status | assignee | parent | priority | tags | whitepaper | |||
|---|---|---|---|---|---|---|---|---|---|---|
| RES-001 | Adaptive Resource Throttling | To Do | james | RES-000 | Medium |
|
Section 7.1 |
Description
Make background jobs like indexing and file transfers "good citizens" by implementing adaptive throttling. The system must monitor device status and automatically reduce its resource usage when the device is on battery power or under thermal pressure.
Implementation Steps
- Integrate a cross-platform library to get real-time device status (power source, thermal state).
- Add hooks within the
JobExecutorandIndexerJobto check this status. - Implement logic to dynamically adjust resource usage, such as reducing the number of concurrent tasks or introducing delays between operations.
Acceptance Criteria
- On battery power, background CPU usage is reduced by at least 50%.
- Indexing jobs are automatically paused or slowed when the system reports high thermal pressure.