triton-vm ./factorial run failed in 128G Memory Machine

โš“ Neptune    ๐Ÿ“… 2025-03-18    ๐Ÿ‘ค marco    ๐Ÿ‘๏ธ 78      

marco

change the intput to PublicInput::from([bfe!(128_000u32)]); we got Padded Height is 2M . run in diff machine. 512G memmory is right but in 128G memory and 32G swap got fail thread โ€˜mainโ€™ panicked at triton-vm/examples/factorial.rs:96:5: assertion failed: verdict change the input to 64000. both is ok how to check this issue?

๐Ÿท๏ธ triton-vm factorial OOM

jfs    2025-03-18 ๐Ÿ‘ ๐Ÿ‘Ž

Let me repeat what I think I understand.

You edited the file triton-vm/examples/factorial.rs line 38 to be let public_input = PublicInput::from([bfe!(128_000)]);. You then ran the factorial example of Triton VM, for example, with cargo run --example factorial. On a machine with 512 GiB of RAM, the example succeeds. On a machine with 128 GiB of RAM and 32 GiB of swap, the command fails. factorial.rs has 80 lines, so I donโ€™t know what line 96 does.

If you change the input to be 64_000 instead, the command succeeds on both machines. Is that correct?

1

jfs    2025-03-20 ๐Ÿ‘ ๐Ÿ‘Ž

I cannot reproduce the behavior you describe. Either the proving step succeeds and the verification step then also succeeds, or the proving step gets cancelled because the machine runs out of memory and the verification step is never executed. Does the commit you added change behavior in some way?

If the problem still exists, would you mind opening an issue on Triton VMโ€™s repository?

3