On 10/30/23 09:28, Waldek Hebisch wrote:

Have you tried to set GCL_MEM_MULTIPLE so that GCL uses slightly
less than 2Gb of memory?  With such setting patch below should
be not needed.   And IME parallel builds with GCL are usable
only with sufficiently small GCL_MEM_MULTIPLE (otherwise
system is thrashing).

Setting *default-large-memory-model-p* means that generated
code is slower.  I do not know how much slower, old info
said that about 7-10% slower.  We should do some testing
to know.

I run all tests in src/input, the results are:

GCL_MEM_MULTIPLE:

real    4m38.479s
user    4m14.601s
sys     0m25.861s

large-memory-model-p:

real    4m53.449s
user    4m7.267s
sys     0m48.138s

So with *default-large-memory-model-p*, the code spends much more time
in kernel space, but the overall slow down is 5%.

- Qian


- Qian


--- trunk/src/lisp/Makefile.in  2022-07-16 14:43:58.443666098 +0200
+++ dist/src/lisp/Makefile.in   2023-02-11 15:36:50.248556407 +0100
@@ -68,7 +68,8 @@
                                         ' (compiler::emit-fn t))' \
                                    ' (when (fboundp (quote si::sgc-on))' \
                                          ' (si::sgc-on nil))' \
-                                  ' (setq compiler::*default-system-p*
t))"' \
+                                  ' (setq compiler::*default-system-p* t)'
\
+                     ' (setq compiler::*default-large-memory-model-p* t))"'
\
                        ' si::*system-directory* (quote (list ".lsp")))' \
                 '  "$(lisp_c_objects) $(fricas_c_runtime_extra)")' \
              | $(FRICAS_LISP)

--
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 on the web visit 
https://groups.google.com/d/msgid/fricas-devel/318057da-c7ff-47da-9614-9d6b3ba198b2%40gmail.com.


--
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 on the web visit 
https://groups.google.com/d/msgid/fricas-devel/5f48e028-b014-4e13-b519-47fefff182fd%40gmail.com.

Reply via email to