I tried running the following:

x = torch.zeros(3500000000//4)
torch.save(x, “tmp.txt”)

And it is the iotop result

Screen Shot 2017-12-05 at 4.24.21 PM.png1622×88 15.4 KB


time python3 tmp.py
result: 1.51s user 12.60s system 5% cpu 4:06.74 total