[SciPy-dev] St9bad_alloc
Maik Trömel
mtroemel81 at web.de
Thu Jun 21 05:55:26 EDT 2007
I've watched the memory behaviour with 'top'. The example script runs for example until the third sub-matirx constantly with 33% memory. Then the memory usage raises very fast to 86% bevor the script crashes.
For comparison:
cat /proc/meminfo
MemTotal: 2075184 kB
MemFree: 324188 kB
Buffers: 139112 kB
Cached: 998348 kB
SwapCached: 70988 kB
Active: 990008 kB
Inactive: 531008 kB
HighTotal: 1177788 kB
HighFree: 137732 kB
LowTotal: 897396 kB
LowFree: 186456 kB
SwapTotal: 1951888 kB
SwapFree: 1819768 kB
Dirty: 256 kB
Writeback: 0 kB
AnonPages: 379712 kB
Mapped: 98196 kB
Slab: 208668 kB
PageTables: 2948 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2989480 kB
Committed_AS: 735168 kB
VmallocTotal: 114680 kB
VmallocUsed: 14140 kB
VmallocChunk: 100312 kB
> -----Ursprüngliche Nachricht-----
> Von: SciPy Developers List <scipy-dev at scipy.org>
> Gesendet: 21.06.07 11:05:12
> An: SciPy Developers List <scipy-dev at scipy.org>
> Betreff: Re: [SciPy-dev] St9bad_alloc
>
> 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
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://produkte.web.de/club/?mc=021130
More information about the SciPy-Dev
mailing list