You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mempressure: Implement two-stage memory release for memory pressure events
Implements Luke's two-stage approach for responding to memory pressure:
- Stage 1: Drop clean cache entries
- Stage 2: If still under pressure, Sync() dirty entries then drop those
Changes:
- Add CCoinsViewCache::UncacheCleanEntries() to remove all clean entries
- Add CCoinsViewCache::HandleMemoryPressure() encapsulating two-stage logic
- Track memory pressure separately from cache size limits in FlushStateToDisk
- Apply two-stage approach only to system memory pressure events
Additional improvements:
- Simplified scheduler to fixed 10-second interval (avoid self-referential lambda)
- Added exception handling for std::stoull when parsing /proc/meminfo
Addresses #216
0 commit comments