mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
use MADV_WILLNEED for scalar column data (#27170)
Signed-off-by: yah01 <yah2er0ne@outlook.com>
This commit is contained in:
parent
8e17bc3013
commit
0459a662e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user