Cleanup hugepages status
This commit is contained in:
parent
c7f133a6e3
commit
9ff4ec3288
5 changed files with 4 additions and 23 deletions
|
@ -59,6 +59,8 @@ void Mem::allocate(ScratchPadMem& scratchPadMem, bool useHugePages)
|
|||
return allocate(scratchPadMem, false);
|
||||
}
|
||||
|
||||
m_flags |= HugepagesAvailable;
|
||||
|
||||
scratchPadMem.hugePages = scratchPadMem.pages;
|
||||
|
||||
if (madvise(scratchPadMem.memory, scratchPadMem.size, MADV_RANDOM | MADV_WILLNEED) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue