BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jamilahmed
Calcite | Level 5

Hi All,

 

One of our SAS users is using proc PHREG on a VM that has 4 vCPUs and 128GB RAM with the following config but code is running slow and only 7 GB RAM is in use out of 128. Ay Hypervisor level the consumed memory is almost 100%. Can it be because of the MEMMAXSZ value? Or something else? 

 

-REALMEMSIZE 100G
-MEMSIZE 102G
-MAXMEMQUERY MAX
-BUFSIZE 16M
-BUFNO 16
-MEMMAXSZ 100G
-SORTSIZE 100G
-SUMSIZE 100G 

1 ACCEPTED SOLUTION
3 REPLIES 3
jamilahmed
Calcite | Level 5

Thanks  @JosvanderVelden  

I will suggest these pages to the SAS users. 

SASKiwi
PROC Star

Check CPU usage while the program is running. Is it using close to 100% or not? If it is close to 100% then the program is CPU bound and memory usage is not the issue. How large is the dataset being analysed (number of rows and columns)? IO can be an issue for large datasets.

 

Also check the CPU time versus real time figures reported for PHREG in the SAS log. Again if CPU time is similar to the real time then PHREG has a CPU bottleneck. If real time is much greater than CPU time then that suggests IO is the bottleneck.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 704 views
  • 0 likes
  • 3 in conversation