Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Will Stata/MP speed up running multiple dofiles in batch mode?


From   Alex Eapen <alex.eapen@sydney.edu.au>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Will Stata/MP speed up running multiple dofiles in batch mode?
Date   Thu, 20 Jan 2011 14:12:11 +1100

Thanks, Steve. You are right. What you refer to is the page specific to batch jobs with OS X. Some of the information in the Stata for Unix page which I referred to is also useful in this context though. 
Cheers
Alex
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Steven Samuels [sjsamuels@gmail.com]
Sent: Thursday, 20 January 2011 12:44 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: Will Stata/MP speed up running multiple dofiles in batch mode?

--
I can't answer your questions, Alex, but the web reference for batch
jobs with Stata OS X (GUI) is: http://www.stata.com/support/faqs/mac/advanced8.html
.  Your reference refers to Stata for Unix, but some details are
different.

Steve

On Jan 19, 2011, at 7:32 PM, Alex Eapen wrote:

Hi all,

I would appreciate some advice on whether Stata/MP will be helpful in
the following situation:

I currently have Stata/SE 10.1 for Mac. I would like to run several do-
files at once (rather than sequentially). I see that this can be done
by running Stata in batch mode from, say, the Terminal application in
Mac OS (see http://www.stata.com/support/faqs/unix/batch.html). That
is, at the prompt in the Terminal application in a Mac OS, I type:

statase -b do bigjob1.do &

followed by....
statase -b do bigjob2.do &

and then...
statase -b do bigjob3.do &

And all three dofiles run simultaneously.
1. My first question is whether there is a limit on how many do files
can be run simultaneously in this manner?
2. I compared the time it takes to execute a single dofile alone to
when it is run simultaneously with the other two. (I ensured all three
dofiles contain exactly the same code, so any difference in time-to-
run is not because of different commands in them). When the three
dofiles are running simultaneously, possibly because stata resources
on my computer are being stretched across three dofiles, each one
takes longer to complete. Will Stata/MP help in this situation? Will
Stata/MP distribute the execution of dofiles (or parts of them) across
multiple cores and thus reduce the time it takes for each to complete?
Thanks in advance.
Warm regards,
Alex

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index