mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2016-07-01, 09:38   #1
cardmaker
 
Jun 2016

1016 Posts
Default error failled to reallocate

hello, im having this error ``failed to reallocate 122880000 bytes´´ whit msieve 1.52 afther the script factmsieve.084 reach the 100%.

anyine have an ideia what is this error?

read 10M relations
read 20M relations
read 30M relations
read 40M relations
read 50M relations
failed to reallocate 122880000 bytes
Return value -1. terminating...
cardmaker is offline   Reply With Quote
Old 2016-07-01, 11:17   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

101010000000012 Posts
Default

Quote:
Originally Posted by cardmaker View Post
hello, im having this error ``failed to reallocate 122880000 bytes´´ whit msieve 1.52 afther the script factmsieve.084 reach the 100%.

anyine have an ideia what is this error?

read 10M relations
read 20M relations
read 30M relations
read 40M relations
read 50M relations
failed to reallocate 122880000 bytes
Return value -1. terminating...
Yes.

You don't have enough memory, physical or virtual, to proceed. The process is asking for ~120MB.
xilman is offline   Reply With Quote
Old 2016-07-01, 15:53   #3
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

If this is a 32-bit msieve binary and you need more than 3GB of virtual memory, you will get this failure even if you have more RAM than that and even if you are using a 64-bit operating system.
jasonp is offline   Reply With Quote
Old 2016-07-01, 17:01   #4
cardmaker
 
Jun 2016

1016 Posts
Default

Yes, is a 32bit version and i have 4 mg ram. do i have to change for another pc 64bit ?
cardmaker is offline   Reply With Quote
Old 2016-07-01, 19:52   #5
TemPiQ
 
Mar 2016

112 Posts
Default

I also had exact the same error on both a 32-Bit system with 4GB RAM and a 64 Bit system with 8GB RAM.
Therefore the size of the RAM is not the cause of this error, I would say.

How do I continue the factorization after this error without invoking having to "factmsieve example.poly" again?
TemPiQ is offline   Reply With Quote
Old 2016-07-03, 02:51   #6
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by TemPiQ View Post
I also had exact the same error on both a 32-Bit system with 4GB RAM and a 64 Bit system with 8GB RAM.
Therefore the size of the RAM is not the cause of this error, I would say.

How do I continue the factorization after this error without invoking having to "factmsieve example.poly" again?
If you are still using the 32-bit binary then you still have a 4GB limit on the virtual memory a process can allocate, even on a 64-bit OS. You would need to recompile Msieve as a 64-bit binary to get past this point. Precompiled 64-bit binaries of the latest SVN are available here; read through the whole thread to get the binary and dependencies that you need.

Last fiddled with by jasonp on 2016-07-03 at 03:08
jasonp is offline   Reply With Quote
Old 2016-07-03, 16:54   #7
TemPiQ
 
Mar 2016

3 Posts
Default

Quote:
Originally Posted by jasonp View Post
If you are still using the 32-bit binary then you still have a 4GB limit on the virtual memory a process can allocate, even on a 64-bit OS.
Yes it looks like I had mixed some x86 and x64 binaries on the x64 computer.

Quote:
Originally Posted by jasonp View Post
You would need to recompile Msieve as a 64-bit binary to get past this point. Precompiled 64-bit binaries of the latest SVN are available here; read through the whole thread to get the binary and dependencies that you need.
Thanks for the hint to the dependencies for the precompiled binaries. I had restarted the factoring with the x64 binary before seeing your message.
Shortly afterwards the process was terminated because msieve could not find "vcomp110.dll".
I downloaded and installed the corresponding Visual Studio 2012 Redistribution package and was able to continue.

Now I have another error "integrator failed 1. #QNAN0e+000 1.#INF00e+000" after which msieve.exe is terminated.

Any hint to the cause of this failure?

Thanks a bunch

PS: I was using the binary from the package "msieve152_svn939_win64_i7.zip"
TemPiQ is offline   Reply With Quote
Old 2016-07-03, 19:05   #8
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101012 Posts
Default

You usually get that failure when the NFS polynomial is not read in at all, or some piece of it is missing. Check readme.nfs to make sure all your input files are in the correct format.
jasonp is offline   Reply With Quote
Old 2016-07-03, 23:39   #9
TemPiQ
 
Mar 2016

3 Posts
Default

Quote:
Originally Posted by jasonp View Post
You usually get that failure when the NFS polynomial is not read in at all, or some piece of it is missing. Check readme.nfs to make sure all your input files are in the correct format.
After checking the readme.nfs, I could confirm that all the input files were correct.
The order of the polynomial coefficients were in descending order i.e. A5 ... A0, which is ok according to the readme.nfs.

I believe the problem was caused by the parameters passed to msieve by the python script factmsieve.86.py and if I am not mistaken on line #1881 viz.
ret=run_msieve('-t {0:d} -nc1'.format(LA_THREADS))
In my case the failure and the subsequent error message "error generating or reading NFS polynomials" occurred while the following command was been invoked:
msieve -s examples\rb84.dat -l examples\rb84.log -i examples\rb84.ini examples\rb84.fb -t 8 -nc1

The sieving process started after deleting the parameter -nc1.
TemPiQ is offline   Reply With Quote
Old 2016-07-04, 00:02   #10
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

The "error generating or reading NFS polynomials" message is benign and quite common. It may generally be ignored.
Dubslow is offline   Reply With Quote
Old 2016-07-05, 13:09   #11
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

DD516 Posts
Default

Complaints about the integrator failing usually stem from the polynomial not being there in the first place.

Removing the '-nc1' switch means you are now running the quadratic sieve and not the number field sieve, which is likely not what you want.

Last fiddled with by jasonp on 2016-07-05 at 13:09
jasonp is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: cudaGetLastError() returned 30: unknown error garo GPU Computing 10 2013-04-27 19:01
Software error or hardware error GuloGulo Software 3 2011-01-19 00:36
Error, hardware causing CRC error's Unregistered Information & Answers 3 2008-05-05 05:40
Error 5 causes userid change and error 17 updates for exponents Old man PrimeNet PrimeNet 0 2006-02-05 02:27
ERROR: Primenet error 2252. Q: which tcp/ip ports are being used for the transfer? nevillednz PrimeNet 15 2004-05-17 23:08

All times are UTC. The time now is 00:50.


Sat Jul 17 00:50:41 UTC 2021 up 49 days, 22:37, 1 user, load averages: 1.92, 1.59, 1.44

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.