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
* fix: limit MFS directory cache size to prevent unbounded growth
adds auto-flush mechanism when directory cache exceeds 256 entries
(matching HAMT shard size). this prevents unbounded memory growth
when using --flush=false with many MFS operations.
the cache limit is currently hardcoded but marked as TODO for
future configurability.
related to ipfs/kubo#10842
* feat: make MFS cache size configurable
adds SetMaxCacheSize methods to Root and Directory to allow
runtime configuration of the cache limit. subdirectories inherit
the parent's cache size setting.
this allows users to tune the cache size based on their needs:
- smaller for memory-constrained environments
- larger for heavy MFS usage
- 0 to disable limiting (old behavior)
related to ipfs/kubo#10842
* docs: update changelog for mfs cache limit
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,9 @@ The following emojis are used to highlight certain changes:
55
55
-`DagModifier` now correctly preserves raw node codec when modifying data under the chunker threshold, instead of incorrectly forcing everything to dag-pb
56
56
-`DagModifier` prevents creation of identity CIDs exceeding `verifcid.DefaultMaxIdentityDigestSize` limit when modifying data, automatically switching to proper cryptographic hash while preserving small identity CIDs
57
57
-`DagModifier` now supports appending data to a `RawNode` by automatically converting it into a UnixFS file structure where the original `RawNode` becomes the first leaf block, fixing previously impossible append operations that would fail with "expected protobuf dag node" errors
58
-
-`mfs`: Files with identity CIDs now properly inherit full CID prefix from parent directories (version, codec, hash type, length), not just hash type
58
+
-`mfs`:
59
+
- Files with identity CIDs now properly inherit full CID prefix from parent directories (version, codec, hash type, length), not just hash type ([#1018](https://github.com/ipfs/boxo/pull/1018))
60
+
- Fixed unbounded memory growth when using deferred flushing and user forgets to flush manually. Added `SetMaxCacheSize()` to limit directory cache growth. Default 256 entries, set to 0 to disable. ([#1035](https://github.com/ipfs/boxo/pull/1035))
0 commit comments