Skip to content

Commit 25ac50e

Browse files
authored
macOS: Also consider compressed pages as usable. (#89)
It should be possible to put them in swap relatively cheaply.
1 parent cdc21b8 commit 25ac50e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ParallelTestRunner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function available_memory()
371371

372372
page_size = Int(@ccall sysconf(29::UInt32)::UInt32)
373373

374-
return (Int(vms[].free_count) + Int(vms[].inactive_count) + Int(vms[].purgeable_count)) * page_size
374+
return (Int(vms[].free_count) + Int(vms[].inactive_count) + Int(vms[].purgeable_count) + Int(vms[].compressor_page_count)) * page_size
375375
end
376376

377377
else

0 commit comments

Comments
 (0)