Using huge-pages for this is folly from the start: For one, we never actually map the fallocate()"d memory. And two... hugetlbfs does not support write()s in any way, splice()s, send_file()s... It only supports read(), and mmap() (its primary use-case...); which isn"t relevant for us.

This branch will be merged but the `hugetlb` feature flag will be removed.

This matter is now closed.

Fortune for collect's current commit: Future blessing − 末吉
hugetlb
Avril 3 years ago
parent 872ea74421
commit 8ea3a23e27
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -44,11 +44,13 @@ mode-buffered = ["jemalloc", "bytes"]
memfile = ["bitflags", "lazy_static", "stackalloc"]
# Use `MAP_HUGE` masks when needed or asked for.
# XXX: This cannot work for our use case as we do not map the fd, we splice() to it... It's entirely useless...
hugetlb = ["memfile"]
# Check the conversion of kernel information into `MAP_HUGE` flags
#
# Usually only useful for debugging.
# XXX: See above
hugepage-checked-masks = ["hugetlb"]
# `memfile`: When unable to determine the size of the input, preallocate the buffer to a multiple of the system page-size before writing to it. This can save extra `ftruncate()` calls, but will also result in the buffer needing to be truncated to the correct size at the end if the sizes as not matched.

Loading…
Cancel
Save