v3.40.1 fixed the eviction formula but fairness parameters were too gentle, allowing metadata to regenerate faster than eviction could keep up. This caused cache thrashing: evict 20% → regenerate → evict 20% → repeat. Changes to prevent thrashing: 1. Fairness interval: 60s → 30s (faster response to imbalances) 2. Size threshold: 90% → 70% (earlier intervention) 3. Access threshold: <10% → <15% (catch more imbalances) 4. Eviction amount: 20% → 50% (more aggressive cleanup) 5. Proactive checking: Added immediate fairness check during set() operations to prevent imbalance formation rather than just reacting to it This should eliminate the "still creating relationships" slowdown reported by Soulcraft Studio while maintaining the OOM crash prevention from v3.40.1. |
||
|---|---|---|
| .. | ||
| api | ||
| augmentations | ||
| cli | ||
| config | ||
| cortex | ||
| critical | ||
| distributed | ||
| embeddings | ||
| errors | ||
| graph | ||
| hnsw | ||
| import | ||
| importers | ||
| interfaces | ||
| mcp | ||
| neural | ||
| patterns | ||
| scripts | ||
| shared | ||
| storage | ||
| streaming | ||
| triple | ||
| types | ||
| universal | ||
| utils | ||
| vfs | ||
| augmentationManager.ts | ||
| augmentationPipeline.ts | ||
| brainy.ts | ||
| coreTypes.ts | ||
| cortex.ts | ||
| index.ts | ||
| pipeline.ts | ||
| setup.ts | ||
| unified.ts | ||
| worker.ts | ||