Skip to content

Commit 0a75e5e

Browse files
authored
Disable memory reservation check by default
Otherwise it causes really excessive numbers of GC calls on memory constrained systems like laptops and desktops.
1 parent b7828f7 commit 0a75e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datastore.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ isondisk(id::Int) =
386386
isinmemory(x::DRef) = isinmemory(x.id)
387387
isondisk(x::DRef) = isondisk(x.id)
388388

389-
const MEM_RESERVED = Ref{UInt}(512 * (1024^2)) # Reserve 512MB of RAM for OS
389+
const MEM_RESERVED = Ref{UInt}(0) # O to avoid excessive GC
390390
const MEM_RESERVE_LOCK = Threads.ReentrantLock()
391391
const MEM_RESERVE_SWEEPS = Ref{Int}(3)
392392

0 commit comments

Comments
 (0)