With the following script to test whether it works:
import numpy as np
import time
zeros = []
while True:
print([np.zeros((10000, 10000)) for _ in range(100000)])
z = np.zeros((100000, 100000))
time.sleep(1)
zeros.append(z)
print("allocated zeros")
print(zeros)
Then the os still crash immediately...
Could you please give me some suggestions? Thanks.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, thanks for the script.
I want to limit the RAM usage of python script with the systemd style (the limitmem.sh works for me though). I tried the following systemd service:
pylimitmem.service
After this, I ran the following comand:
With the following script to test whether it works:
Then the os still crash immediately...
Could you please give me some suggestions? Thanks.