How to use RAM in SAS Processing..

Reply
Contributor
Posts: 34

How to use RAM in SAS Processing..

I want to use my Main Menory for smaller SAS Programs, so that it can be executed in fraction of seconds...

Anybody is aware of /dev/shm....and how to use it...

Any psuedo code will be helpfull.

Super User
Posts: 3,250

Re: How to use RAM in SAS Processing..

Don't know about /dev/shm but are you aware SAS has its own way of loading datasets into memory for faster processing?

Check this note out: http://support.sas.com/kb/24/828.html

Do a search of SAS notes for others using: sas data in memory

Contributor
Posts: 39

Re: How to use RAM in SAS Processing..

If you're looking to do table look-ups (merging, combining, etc) try having a look at SAS Hash Objects. These can reduce your job run times quite significant if used correctly.

http://support.sas.com/rnd/base/datastep/dot/hash-getting-started.pdf

Good luck.

Contributor
Posts: 34

Re: How to use RAM in SAS Processing..

Hi,

I know about Hash Processing..Thanks

Frequent Contributor
Posts: 129

Re: How to use RAM in SAS Processing..

I have not used /dev/shm, but based on what I saw at http://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html,  I think you should be able to use it.  These types of applications simply make a portion of memory look to applications like a disk drive.  It sounds like /dev/shm is the pathname, any application would need to use this.

I see at least two options in SAS .  1.  Use a libname statement to point to /dev/shm, for example "libname ramdisk 'dev/shm' ;".   2.  Specify /dev/shm  as  work diectory at invocation.  See http://support.sas.com/documentation/cdl/en/hostunx/61879/PDF/default/hostunx.pdf for details on how to do this.  It would be something like your_sas_invocation_string -work /dev/shm

Larry

Ask a Question
Discussion stats
  • 4 replies
  • 343 views
  • 3 likes
  • 4 in conversation