lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
2017-09-26T22:31:50.000155Z

Is there a way to increase the memory, I'm running audio engine within lumo and I know that I'm calling buffer heavy process, what I get is

lumo: malloc.c:2369: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

anmonteiro 2017-09-26T22:34:52.000171Z

@hlolli still looking for feedback https://github.com/anmonteiro/lumo/issues/218

2017-09-26T22:36:36.000291Z

hm ok, so this is a compile time setting?

2017-09-26T22:41:57.000087Z

found the answer, and its a startup option node script.js --max-old-space-size=8192 and there are plenty of node flags of course. We could add a lumo flag that takes a vector of native node flags lumo --node-flags ["--max-old-space-size=8192"] etc...

anmonteiro 2017-09-26T22:42:24.000091Z

not possible

anmonteiro 2017-09-26T22:42:38.000186Z

it’s gotta be compile time in Lumo

2017-09-26T22:44:10.000047Z

ok, for my part I'm ok with compileing lumo for my usecase. Guess this could be documented then. I guess these are relatively rare edge cases.

anmonteiro 2017-09-26T22:44:40.000198Z

@hlolli what I’m suggesting in the issue is Lumo should ship with sensible defaults

anmonteiro 2017-09-26T22:44:45.000237Z

we shouldn’t require you to compile Lumo

2017-09-26T22:47:18.000117Z

ok, I hope there'll be feedback, I'd assume 512mb should be plenty, what's the current value?

anmonteiro 2017-09-26T22:58:36.000226Z

the current value is 1.5GB

2017-09-26T23:11:14.000038Z

I misread that 1.5GB was the maximum settable limit and 512MB was default. I compile lumo with 8gb limit by setting v8.setFlagsFromString('--max_old_space_size=8192'); in cli.js