Skip to content

Commit

Permalink
core.memory: Fix selftest() broken by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 12, 2015
1 parent cfbebe5 commit dec0a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/memory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end

function selftest (options)
print("selftest: memory")
print("HugeTLB pages (/proc/sys/vm/nr_hugepages): " .. get_hugepages())
print("Kernel vm.nr_hugepages: " .. syscall.sysctl("vm.nr_hugepages"))
for i = 1, 4 do
io.write(" Allocating a "..(huge_page_size/1024/1024).."MB HugeTLB: ")
io.flush()
Expand All @@ -119,7 +119,7 @@ function selftest (options)
ffi.cast("uint32_t*", dmaptr)[0] = 0xdeadbeef -- try a write
assert(dmaptr ~= nil and dmalen == huge_page_size)
end
print("HugeTLB pages (/proc/sys/vm/nr_hugepages): " .. get_hugepages())
print("Kernel vm.nr_hugepages: " .. syscall.sysctl("vm.nr_hugepages"))
print("HugeTLB page allocation OK.")
end

0 comments on commit dec0a64

Please sign in to comment.