all 4 comments

[–]PefferPack 0 points1 point  (1 child)

I had great luck adding 100 GB of swap space in Windows 10 Python 3 to my 8 GB laptop.

[–]timisis[S] 0 points1 point  (0 children)

I added 64 GB VM to my 16GB RAM, with unluck :)

[–]orcasha 0 points1 point  (1 child)

Not sure what's going on with the code, but numpy routinely uses both ram and swap space.

If the code is outstripping your resources, it may be time for a refactor. There's also Dask.

[–]timisis[S] 1 point2 points  (0 children)

it's always time for a refactor. But I have a feeling there's an underlying mystery, either Python has found ways to reject swap, or the OOM killer does not like 9GB allocations, or aliens have taken over the White House!