Question:
Got error {OSError: [Errno 12] Cannot allocate memory} in python program?
2014-02-27 22:22:27 UTC
Programmer recommended to use 24GB RAM, 24processor system and 64bit OS to run the program. But I have only 4GB RAM and intel i5 3rd gen processor, and hence i got following error. So can anybody help me to solve this problem.?

Traceback (most recent call last):
File "./Makefile.py", line 514, in
threeOneEvaluation()

File "./Makefile.py", line 290, in threeOneEvaluation
SOURCE_LABELED_INSTANCES=800)

File "./Makefile.py", line 207, in processAll
DIelements)

File "/home/ubuntu/Desktop/SST/src/compute_distribution.py", line 168, in write_distribution
p.start()

File "/usr/lib/python2.7/multiprocessing/process.py", line 130, in start
self._popen = Popen(self)

File "/usr/lib/python2.7/multiprocessing/forking.py", line 120, in __init__
self.pid = os.fork()

OSError: [Errno 12] Cannot allocate memory
Three answers:
?
2014-02-28 02:28:15 UTC
"Programmer recommended to use 24GB RAM, 24 processor system and 64bit OS"



Yet you have 4GB RAM, 1 CPU and (probably) 32-bit Windows XP.



As @Francesco said buy more RAM, but also lots of CPUs, and 64-bit OS.
Francesco
2014-02-27 23:05:28 UTC
No, that link explains that there is just one issue, which is "not enough memory".



Really, I don't see the point of this question. Those who wrote the program say, "use 24 GB of memory". You neverthless choose to run with a fraction of that. Now you complain that you do not have enough memory. Please tell me what answer do you expect besides "buy more RAM".
Sadsongs
2014-02-27 22:49:02 UTC
There are several possible issues. See http://stackoverflow.com/questions/20111242/how-to-avoid-errno-12-cannot-allocate-memory-errors-caused-by-using-subprocess


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...