The most simple way I can think of is this: fricas -nosman --dynamic-space-size 8096 (This gives 8GB memory, you can change to whatever you like.)
The downside is that you lose hyperdoc, graphics and command line shortcuts. The proper solution should be allowing passing extra Lisp arguments in the "fricas" shell script. - Qian On 3/1/25 3:56 AM, 'Prof. Dr. Johannes Grabmeier' via FriCAS - computer algebra system wrote: > using this since yesterday on sbcl 2.5.0 > > but now (don't whether this is responsible, as I have changed the code) > a complicated spad-File now no longer compiles because of heap exhausted. > Any idea, no idea how to use the LDB. How can I increase the memory? > > > ; --> PROGN SB-IMPL::%DEFUN SB-IMPL::%DEFUN SB-INT:NAMED-LAMBDA > ; ==> > ; #'(SB-INT:NAMED-LAMBDA BOOT::|SWTOURN;zeroAscending;PiV;13| > ; (BOOT::|k| BOOT::%) > ; (DECLARE (SB-C::TOP-LEVEL-FORM)) > ; (DECLARE (TYPE (INTEGER 1 *) BOOT::|k|)) > ; (BLOCK BOOT::|SWTOURN;zeroAscending;PiV;13| > ; (BOOT::SPROG ((#:G2251 NIL) (BOOT::|r| NIL) (#:G2250 NIL)) > ; (BOOT::SEQ (PROGN # # #:G2250))))) > ; > ; caught STYLE-WARNING: > ; The variable % is defined but never used. > Heap exhausted during garbage collection: 32752 bytes available, 32784 > requested. > | Immobile Objects | > Gen layout symbol code Boxed Cons Raw Code SmMix Mixed > LgRaw LgCode LgMix Waste% Alloc Trig Dirty GCs Mem-age > 1 0 0 0 246 64 28549 0 8 17 > 0 0 0 49.4 956898448 64584056 28884 1 1.2163 > 2 0 0 0 205 49 17968 0 8 4 > 0 0 0 49.3 606036048 42949672 18227 0 0.0357 > 3 0 0 0 3194 658 13186 5 40 550 > 0 0 86 34.9 755679200 2000000 13265 0 0.3770 > 4 0 0 0 0 0 0 0 0 0 > 0 0 0 0.0 0 2000000 0 0 0.0000 > 5 0 0 0 0 0 0 0 0 0 > 0 0 0 0.0 0 2000000 0 0 0.0000 > 6 0 0 0 146 65 150 256 50 12 > 15 0 5 3.0 44453040 2000000 13 0 0.0000 > Tot 0 0 0 3791 836 59853 261 106 583 > 15 0 91 45.0 2363065872 [55.0% of 4294967296 max] > GC control variables: > *GC-INHIBIT* = true > *GC-PENDING* = true > *STOP-FOR-GC-PENDING* = false > Collection trigger variables: > dynamic_space_size = 4294967296 > bytes_allocated = 2363065872 > auto_gc_trigger = 1873832988 > bytes_consed_between_gcs = 214748364 > fatal error encountered in SBCL pid 47251 pthread 0x1e0d19c40: > Heap exhausted, game over. > > Welcome to LDB, a low-level debugger for the Lisp runtime environment. > (GC in progress, oldspace=1, newspace=2) > ldb> > ldb> > > > > Mit freundlichen Grüßen > > Johannes Grabmeier > > Prof. Dr. Johannes Grabmeier, > Köckstraße 1, D-94469 Deggendorf > Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756 > Fax: +49-(0)-991-2979592 > -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/fricas-devel/5fc6d52b-ef0d-40a2-8897-43c8ff7dff8a%40gmail.com.