use MADV_WILLNEED for scalar column data (#27170)

Signed-off-by: yah01 <yah2er0ne@outlook.com>
This commit is contained in:
yah01 2023-09-18 18:05:22 +08:00 committed by GitHub
parent 8e17bc3013
commit 0459a662e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@ class ColumnBase {
AssertInfo(data_ != MAP_FAILED,
fmt::format("failed to create file-backed map, err: {}",
strerror(errno)));
madvise(data_, cap_size_ + padding_, MADV_WILLNEED);
}
// mmap mode ctor