From af95fdc7331a0127d8b9304c14b68fa8192d08cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hl=C3=B6=C3=B0ver=20Sigur=C3=B0sson?= Date: Fri, 2 Aug 2024 14:09:52 +0200 Subject: [PATCH] feat(nix): update erlang vm-args --- nix/arweave.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nix/arweave.nix b/nix/arweave.nix index 1ae6a153c..db9b1d368 100644 --- a/nix/arweave.nix +++ b/nix/arweave.nix @@ -305,9 +305,12 @@ let : "''${ERL_EPMD_ADDRESS:=127.0.0.1}" export ERL_EPMD_ADDRESS + ARWEAVE_OPTS="+Ktrue +A1024 +SDio1024 \ + +MBsbct 103424 +MBsmbcs 10240 +MBlmbcs 410629 +MBmmmbc 1024 +MBas aobf \ + +sbwtvery_long +sbwtdcpuvery_long +sbwtdiovery_long \ + +swtvery_low +swtdcpuvery_low +swtdiovery_low +Bi" - erl +MBas aobf +MBlmbcs 512 +A100 +SDio100 +A100 +SDio100 +Bi \ - -pa $(echo $PROFILE_DIR/lib/*/ebin) \ + erl $ARWEAVE_OPTS -pa $(echo $PROFILE_DIR/lib/*/ebin) \ -config $ROOT_DIR/config/sys.config \ -args_file $ROOT_DIR/config/vm.args.dev \ -run ar main $RANDOMX_JIT "$@" @@ -343,11 +346,14 @@ let export EMU="beam" export TERM="dumb" BOOTFILE=$(echo $PROFILE_DIR/releases/*/start.boot | sed -e "s/\.boot$//") + ARWEAVE_OPTS="+Ktrue +A1024 +SDio1024 \ + +MBsbct 103424 +MBsmbcs 10240 +MBlmbcs 410629 +MBmmmbc 1024 +MBas aobf \ + +sbwtvery_long +sbwtdcpuvery_long +sbwtdiovery_long \ + +swtvery_low +swtdcpuvery_low +swtdiovery_low +Bi" erlexec -noinput +Bd -boot "$BOOTFILE" \ -config $ROOT_DIR/config/sys.config \ - -mode embedded \ - +MBas aobf +MBlmbcs 512 +A100 +SDio100 +A100 +SDio100 +Bi -pa $(echo $PROFILE_DIR/lib/*/ebin) \ + -mode embedded $ARWEAVE_OPTS -pa $(echo $PROFILE_DIR/lib/*/ebin) \ -args_file $ROOT_DIR/config/vm.args.dev \ -run ar main $RANDOMX_JIT "$@" '';