I have a problem with "MemoryError". What should I do?

Asked by jimtianxi

My computer has 8 cores. I run a yade programme with 6 threads and the simulation needs a long time to calculate. Sometime, I want to save the calculation state to avoid the impact of a sudden electric shut off, so I use the O.save('xxx.xml') command. But when the xml file is saved beyond 4GB, the MemoryError appears. Some answer on the internet says that my operating system (or even the hardware platform) might restrict the size of a single process to 4 GB. What should I do?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hadda (hadda) said :
#1

Hi,

Save to an NTFS formatted disk or partition for example, or save with another extention which may lighten the size of your files.

Revision history for this message
Emanuele Catalano (catalano) said :
#2

Hello,
if you put no extension,

O.save(simulation)

the state of your calculation will be saved in binary format and occupy much less space on your HD.

By the way I'm not sure that your MemoryError problem is linked to the size of your *.xml files.
Also, there are sometimes some issues with "numerical" error in multi-thread mode.
You should wait for some expert's advice, but as a first attempt try to save your files in binary format.

Emanuele

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

Could you, please, post here an exact error, what you get?

Anton

Can you help with this problem?

Provide an answer of your own, or ask jimtianxi for more information if necessary.

To post a message you must log in.