[Tutor] job killed: too high numbers?
Random832
random832 at fastmail.com
Tue Sep 20 12:00:30 EDT 2016
On Tue, Sep 20, 2016, at 11:48, Gabriele Brambilla wrote:
> I have this script
...
> points = 33750000000
...
> for iw in range(points):
> print iw
> does it mean that my number of points is too high?
Probably. The most likely thing to cause something to exit with a status
of "Killed" on Linux is that your system ran out of memory.
In particular, on Python 2, the "range" function returns a real list
that allocates space for all those numbers from 0 to 33749999999. Try
using xrange instead, or if you can, switch to Python 3.
More information about the Tutor
mailing list