10-18-2012 02:09 PM
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.
10-18-2012 02:56 PM
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
10-18-2012 03:25 PM
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.
10-18-2012 04:38 PM
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