On Thu, Jan 09, 2020 at 08:07:05AM +0100, Julien Puydt wrote: > Package: pari-gp > Version: 2.11.2-1 > > When starting with a big parisize on armel (and armhf, mipsel and > powerpc, if I remember well), gp can get stuck on simple computations : > > parisize = 1000000000, primelimit = 500000, nbthreads = 4 > ? isprime(293911884200387681576093) > *** isprime: Warning: not enough memory, new thread stack 500002816 > *** isprime: Warning: not enough memory, new thread stack 250003456 > *** isprime: Warning: not enough memory, new thread stack 125001728 > *** isprime: Warning: not enough memory, new thread stack 500002816 > *** isprime: Warning: not enough memory, new thread stack 250003456 > *** isprime: Warning: not enough memory, new thread stack 125001728 > *** isprime: Warning: not enough memory, new thread stack 62500864 > *** isprime: Warning: not enough memory, new thread stack 31252480 > *** isprime: Warning: not enough memory, new thread stack 15626240 > (and there you have to kill gp or it never ends) > > where the default gives : > > parisize = 4000000, primelimit = 500000, nbthreads = 4 > ? isprime(293911884200387681576093) > %1 = 1 > > Of course, the problem arised in eclib and that's where it will be > patched, but the fact that pari broke on some arches is - as far as I > can tell - still an indication something isn't correct in the code : it > used to work, and doesn't anymore.
Maybe the problem is just that the number of cores has increased. PARI require that parisizemax + threadsizemax * nbthreads fit in the virtual memory. On 32bit system, there is about 3G of virtual memory, so if you want to set a large threadsizemax, you need to limit the number of threads. Cheers, -- Bill. <ballo...@debian.org> Imagine a large red swirl here.