Statalist The Stata Listserver


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

Re: st: Query dataset size


From   [email protected] (William Gould, Stata)
To   [email protected]
Subject   Re: st: Query dataset size
Date   Tue, 05 Dec 2006 09:16:34 -0600

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/



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