Avril
59363848a2
Started: `memfile::hp`: `MFD_HUGETLB` can be used when a size is known to exceed into the boundary of a hugepage. Currently in the process of writing function to collect all possible hugepage sizes and generate the correct flag masks for `memfd_create(, MFD_HUGETLB | ...)` for each one; and the smallest one that contains the known size can be used for the `memfd_create()` call (if the size fits any at all.)
...
TODO: This will be a seperate comptime feature: `hugetlb`: Extend `memfile` with the ability to allocate apporpirately sized huge-pages when input size is known to extend into them.
Fortune for collect's current commit: Blessing − 吉
3 years ago
Avril
0262ca88d9
Added TODOs for specific bugs (and impl related ideas for how to go about preventing/warning in the event of `mode-memfd` system OOM) ; moved some RawFd-related functions into a submodule
...
Fortune for collect's current commit: Small curse − 小凶
3 years ago
Avril
9ecd0ea3d8
Fixed silly bug preventing building on rust-stable.
...
Fortune for collect's current commit: Small blessing − 小吉
3 years ago
Avril
515a63c3a2
Fixed bug with `memfile` feature not setting stream length properly without `memfile-preallocate`
...
Fortune for collect's current commit: Future small blessing − 末小吉
3 years ago
Avril
23d022b5fe
Added working memfile implementation
...
Fortune for collect's current commit: Blessing − 吉
3 years ago
Avril
0628853b43
Working memfile implementation
...
Fortune for collect's current commit: Future blessing − 末吉
3 years ago
Avril
edb57c7c95
memfile: Disambiguated memfile errors resulting in `fallocate()` sizes being too large or the call itself failing.
...
Fortune for collect's current commit: Half blessing − 半吉
3 years ago
Avril
b3dbb30deb
Fix imports for when feature `memfile` is disabled.
...
Fortune for collect's current commit: Blessing − 吉
3 years ago
Avril
ed957bcec8
feature memfile: added `RawFile::open_mem()`
...
Needs testing, and the XXX comment about `memfd_create()` name lifetimes also needs testing. (If they do need to be static; `stackalloc` as a dependancy can be removed entirely, then: `DEFAULT_NAME` will be changed to a CString, function parameter `name` and `error::MemfileCreationStep::Create(name)` will be changed to `Option<&"static CStr>`.
Fortune for collect's current commit: Future blessing − 末吉
3 years ago
Avril
65c297b228
Started adding `memfile` feature: Use a `memfd_create()`d in-memory temporary file.
...
Fortune for collect's current commit: Curse − 凶
3 years ago
Avril
80a2d65262
Made spantrace capture optional at the compilation level.
...
Added `logging` (default) feature for enabling/disabling spantrace captures entirely on build.
Fortune for collect's current commit: Half curse − 半凶
3 years ago
Avril
cc37f604f1
Fixed tracing causing huge unneeded bottleneck in non `bytes` builds.
...
Fortune for collect's current commit: Future small blessing − 末小吉
3 years ago
Avril
bea5cda4a1
Fixed not copying to buffer when not using feature `bytes`.
...
Fortune for collect's current commit: Curse − 凶
3 years ago
Avril
1cdd5b2187
Made `bytes` an optional feature.
...
Fortune for collect's current commit: Future small blessing − 末小吉
3 years ago
Avril
a5ad02a6de
Working primitive, slow, prototype.
...
Fortune for collect's current commit: Small blessing − 小吉
3 years ago