Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: out of space/memory error on Unix


From   Partha Deb <[email protected]>
To   [email protected]
Subject   Re: st: Re: out of space/memory error on Unix
Date   Wed, 14 Dec 2005 22:07:37 -0500

Kit and all,

Thanks to Kevin Crow at Stata, it was determined that I was indeed chewing through all of my RAM (8GB) because a number of very large matrices were being defined and stored during execution. The workaround is to write better code - not to define intermediate matrices which made the code more transparent, but also less memory efficient.

Cheers,

Partha

--On Monday, December 12, 2005 9:26 AM -0500 Kit Baum <[email protected]> wrote:


I wonder if this Mata error message is the equivalent of the regular
Stata error message "op.sys. refuses to provide memory." Since such a
matrix would have 34.5 million cells, it would require ~275  megabytes.
Although this is far below any limit Mata would impose  (Mata allows 2+
billion rows and 2+ billion columns) your machine may  not be willing to
satisfy the memory request.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html


On Dec 12, 2005, at 2:33 AM, statalist-digest wrote:

Thanks to Kit for both suggestions -tmpdir-, which I've now
installed, and
the Stata FAQ, which I should have found.  I've managed to change the
tmpdir from /tmp to something in my user, for which the limit is
only the
physical hard disk space, but I'm not sure I've solved the problem.  I
still get the same error message - "3900  unable to allocate real
<tmp>[287115,120]".  I wonder if mentioning that the "problem" is
almost
certainly due to a Mata matrix (287115X120) is worth anything.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



************************************************************************
Partha Deb				ph:  (212) 772-5435
Department of Economics		fax: (212) 772-5398
Hunter College			http://urban.hunter.cuny.edu/~deb/

Emancipate yourselves from mental slavery
None but ourselves can free our minds.
 - Bob Marley
************************************************************************
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index