DSB2017 icon indicating copy to clipboard operation
DSB2017 copied to clipboard

MemoryError

Open z744364418p opened this issue 7 years ago • 3 comments
trafficstars

Traceback (most recent call last): File "prepare.py", line 374, in full_prep(step1=True,step2=True) File "prepare.py", line 181, in full_prep _=pool.map(partial_savenpy,range(N)) File "/home/gpu/anaconda2/lib/python2.7/multiprocessing/pool.py", line 253, in map return self.map_async(func, iterable, chunksize).get() File "/home/gpu/anaconda2/lib/python2.7/multiprocessing/pool.py", line 572, in get raise self._value MemoryError

z744364418p avatar Jan 29 '18 03:01 z744364418p

That't maybe because the lack of memory. reduce the cpu thread used for preprocessing

lfz avatar Feb 01 '18 12:02 lfz

See the README file, which says: "if you have bug about short of memory, set the 'n_worker_preprocessing' in config_submit.py to a int that is smaller than your core number."

mepster avatar Mar 13 '18 04:03 mepster

Alternatively, you can add memory.

For reference, the preprocessing of the stage2 data completed successfully for me on AWS on a r4.2xlarge instance (8 CPU, 61GB RAM), but got the out of memory failure on a t2.2xlarge (8 CPU, 32 GB RAM)... i.e., looks like you need more than 4GB/CPU.

mepster avatar Mar 13 '18 06:03 mepster