Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Query dataset size


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Query dataset size
Date   Tue, 5 Dec 2006 10:25:16 -0500

Julian & Bill--
As nice as the -memory- command is, it has the downside of requiring
you to load the data in memory before issuing the command, whereas the
-describe- command has the handy using option.  If you are deciding
how much memory to allocate with -set mem Xm- for example, it's
helpful to not have to load the data first.
--Austin

On 12/5/06, William Gould, Stata <[email protected]> wrote:
Julian Reif <[email protected]> asked,

> Is there a Stata command available that returns the size of the dataset in
> memory?  I am running a series of very long scripts at the same time on a
> server and am performing an analysis to determine what the optimal memory
> allocation should be for each series of scripts.  I know that the -describe-
> command will tell you the size, but it does not return the value in a local
> and I'd rather not go hunting through log files if possible.

I suggest Julian try the -memory- command, which presents a report and leaves
results behind in r().  The results are different that those reported by
-describe- but they may be more in line with what Julian wants, as these
numbers are more system related and include overhead.

-- Bill
[email protected]
*
*   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/

*
*   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