Memory Leak in SMART History #12

Open
opened 2026-02-02 14:47:31 -05:00 by jared · 0 comments
Owner

The history retention keeps 30 days of data but _enforce_storage_limit only enforces 10MB total. For a system with 50 drives checking hourly:

50 drives × 24 checks/day × 30 days = 36,000 entries

At ~1KB each = 36MB (exceeds 10MB limit)

This will cause constant file deletion/recreation. Either:

Increase limit to 50MB

Reduce retention to 7 days

Implement per-drive size limits

The history retention keeps 30 days of data but _enforce_storage_limit only enforces 10MB total. For a system with 50 drives checking hourly: 50 drives × 24 checks/day × 30 days = 36,000 entries At ~1KB each = 36MB (exceeds 10MB limit) This will cause constant file deletion/recreation. Either: Increase limit to 50MB Reduce retention to 7 days Implement per-drive size limits
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/hwmonDaemon#12