07-03-2014 10:46 PM
I am using a 2013 macbook air (2 gig ram), on virtual box. When I run a simple program, it seems to be pretty slow. i,e the following program takes about 30 to 45 seconds to complete. Sometimes more, it seems to be inconsistent. Is this because of internet connection, or because of my machine? Is there anything I can do to improve the speed?
where Chol_Status = "High";
proc print data=highchol;
07-04-2014 01:39 AM
You could have a problem of "thrashing" in fact due to low memory the only activity being done is swapping memory in and out with no real progress.
07-04-2014 11:01 AM
Would this be an issue of my pc, or is there a way to fix it? there are situations when I hit the "run" and either doest run, or takes 5 to 10 minutes.
07-04-2014 11:23 AM
You have 2 GB of memory and apples os has to run, the Linux in vom has to run and sas has to run.
What would you think if just Linux vm and sas in minimum are happy with 4Gb.
07-04-2014 05:12 PM
Its the proc print / display generation that takes the time, so if you can, avoid doing that. This makes some sense as generating the display file does have extra overhead and it is larger, around 1800 records.
Instead navigate to the work library and look at the file by opening it or print only a subset of the data.
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
43 data highchol;
44 set sashelp.heart;
45 where Chol_Status = "High";
NOTE: There were 1791 observations read from the data set SASHELP.HEART.
NOTE: The data set WORK.HIGHCHOL has 1791 observations and 17 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.02 seconds
48 proc print data=highchol;
NOTE: There were 1791 observations read from the data set WORK.HIGHCHOL.
NOTE: The PROCEDURE PRINT printed pages 1-42.
NOTE: PROCEDURE PRINT used (Total process time):
real time 26.51 seconds
cpu time 26.29 seconds