Cap.gb: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/cap.bend as Cap Lines 14-24 of ezx@1.11.0.0/src/share/cap.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/cap.bend&start_line=14&end_line=24 import Base import ezx@1.11.0.0/src/share/env.bend as Env # how many gigabytes one `bend` may have. 8 is what fits beside the rest of # this machine; a project whose closure costs more says so in EZ_CAP. # # The cap is also the divisor the gate picks its width from, since a run has to # assume every job it starts at once could want the whole of it. So a cap set # higher than a tree needs does not only reserve memory, it narrows the gate: # the dearest aggregate here peaks at 3.3G, and at the 8G cap that is a width # of 4 where 11 would fit. Lower EZ_CAP, or set EZ_JOBS outright, for a tree # you have measured. def gb() -> IO(String): Env.var("EZ_CAP", "8") Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/env.bend&name=var