xpmem: support large page
1. try to use as large page as possible on attach 2. pre-map resident remote pages on attach Change-Id: I5580682a4199e94085a9bad9ce3958a0f14cdcea
This commit is contained in:
committed by
Masamichi Takagi
parent
3aaa5350f0
commit
d2db639853
11
test/issues/1473/util.h
Normal file
11
test/issues/1473/util.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifdef __aarch64__
|
||||
#define LARGE_PAGE_SHIFT 21
|
||||
#elif defined(__x86_64__)
|
||||
#define LARGE_PAGE_SHIFT 21
|
||||
#else
|
||||
#error "Non-compliant architecture."
|
||||
#endif
|
||||
|
||||
#define MAP_HUGE_SHIFT 26
|
||||
#define SZ_MEM (2 * (1ULL << LARGE_PAGE_SHIFT))
|
||||
#define TEST_VAL 0x1129
|
||||
Reference in New Issue
Block a user