Economics should be open

June 3, 2010

Tips for running long stata jobs, UNIX

Filed under: Uncategorized — howardchong @ 12:51 am

Here are some tips for running large stata jobs in linux/Unix

  1. Turn off the GUI and run the command on the command line
  2. hit CTRL-F1
    login
    sudo /etc/init.d/gdm stop  // this stops the GUI
    stata -b do mydofile.do
  3. Run one command after another
  4. stata -b do firstfile.do ; stata -b do secondfile.do ; stata -b do third.do
  5. Delay the start of the command
  6. sleep 14400 ; stata -b do myfile.do
    #NOTE: sleep takes seconds as argument, so that is 4 hours. Adjust to your needs.

Don’t forget top to check on your processes. Don’t allocate so much memory that you start paging to disk.

Your hints/advice are welcome!


Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.