[SciPy-dev] St9bad_alloc
Nils Wagner
nwagner at iam.uni-stuttgart.de
Thu Jun 21 05:04:54 EDT 2007
David Cournapeau wrote:
> Maik Trömel wrote:
>
>> My system has:
>> Python 2.4.1
>> Scipy '0.5.2'
>> Numpy '1.0.1'
>>
>> The Second System was Python 2.5.1, with the same scipy and numpy versions.
>> Both system are running with Debian Testing.
>>
>>
> Something to keep in mind is that your script is using a lot of memory
> (several hundred MB seems likely). This would depend on the algorithms
> used, but with arrays of 2000x2000 double, it could simply be that one
> new call in the C++ code fails because no memory is available to the
> system anymore (new raises bad_alloc if not enough memory can be
> allocated, if I remember correctly).
>
> How much memory do you have on your computer ? Can you check the memory
> behaviour of the application with eg top, etc... ?
>
> David
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
Just for comparison with Maik
cat /proc/meminfo
MemTotal: 1024720 kB
MemFree: 17524 kB
Buffers: 48128 kB
Cached: 488172 kB
SwapCached: 4416 kB
Active: 674772 kB
Inactive: 227788 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1024720 kB
LowFree: 17524 kB
SwapTotal: 4200956 kB
SwapFree: 4151064 kB
Dirty: 20 kB
Writeback: 0 kB
Mapped: 499428 kB
Slab: 83668 kB
CommitLimit: 4713316 kB
Committed_AS: 645804 kB
PageTables: 7212 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 14860 kB
VmallocChunk: 34359720875 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
Nils
More information about the SciPy-Dev
mailing list