Shared memory in /var/run instead of /tmp

I use shared memory segment on a diskless node.
This shared memory segment are stored in /tmp.
Is there a way to put them in a "memory based" directory, as /var/run (solaris 8) instead of
the disk-based directory

My problem was especially to change toe location
of the shared memory on file system. I succeed
with FIFO but not with shared memory. I
don't find any solution.
concerning the definition of memory base vs. file
based I have no clue but the following extract from
docset
------[Extract from solaris 8 documentation]-----
The /var/run File System
A new TMPFS-mounted file system, /var/run, is the
repository for temporary system files that are not
needed across system reboots in this Solaris release
and future releases. The /tmp directory continues to
be repository for non-system temporary files.
Because /var/run is mounted as a memory-based file
system rather than a disk-based file system, updates
to this directory do not cause unnecessary disk
traffic that would interfere with systems running
power management software.
The /var/run directory requires no administration.
You may notice that it is not unmounted with the
umount -a or the umountall command.
For security reasons, /var/run is owned by root.

Similar Messages

  • Shared memory and ABAP

    Dear developers,
    I have some documentation on ABAP SHARED OBJECTS and I wonder how I could define shared memory objects at run time ( so I would need something like an API ) instead of using the SHMA transaction.
    I actually also wonder what would happen if 2 users of the same shared object would call on one of its methods ? Can we have concurrent access ? How does the whole locking thing works ? Is it possible to implement waiting calls/locks ?
    If you have any serious/technical documentation on semaphores/locks in SAP/ABAP I'd also be very interested.
    Sincerely,
    Olivier MATT

    Hi matt,
                This is vijay here.
                                          if you r working on frequntly changed data then you must use this locking technique.
    well jus go to se11 and make a lock object by starting initial......EZ....
    EX: EZENMARA.
    then u can fix the lock as shared or (exclusive,cumulative) or( exclusive, not cumulative)
    you can also fix the lock parameters like  specific fields.then jus save and activate.
    and when you will make a program jus call the function module enqueue_ezenmara for locking and dequeue_ezenmara for unlocking and u can get rest in my program.
    regards
    vijay
    rewards if answer is helpfull.
    TABLES: MARA.
    PARAMETER: MATNR LIKE MARA-MATNR.
    CALL FUNCTION 'ENQUEUE_EZENMARA'
    EXPORTING
       MODE_MARA            = 'S'
       MANDT                = SY-MANDT
      MATNR                =
       X_MATNR              = 'MATNR'
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    WRITE: 'TABLE IS LOCKED'.
    ELSE.
    SELECT * FROM MARA WHERE MATNR = MATNR.
    WRITE:/ MARA-MATNR,MARA-ERNAM,MARA-MTART.
    ENDSELECT.
    ENDIF.

  • Storing berkeley db in shared memory

    Hello,
    In our case, the durability of the bdb is required only for application restart and not for system restart. Therefore, it is desired to back the bdb by the shared memory for performance reasons instead of the file system. The article "Writing In-Memory Berkeley DB Applications" talks only about storing the bdb in the heap memory. Any pointers regarding this would be highly appreciated.
    Thanks
    Sundar

    Sundar, can you please explain what the exact problem is?
    Bogdan Coman

  • SAPOsCol running but not working (shared memory not available)

    Dear Forum,
    We have just set new passwords for SAP AD users (incl SAPService<SID> and <SID>adm), after this restarted SAP instances and servers / clusters). Everything came up well and all services, incl SAPOsCol started up automatically with the new passwords.
    Everything works fine - only this morning i wanted to have a look in ST06 and the program tells me "SAPOSCOL not running? (shared memory not available).
    The service is running tho, would a restart of the service do any difference, and is there any possibility that a restart of the service on a live and running system would force a system restart? (i couldnt think of any, but I hate restarting services on a live running production system).
    Would it be an option to stop/start the collector from ST06?
    Thanks in advance,
    Kind regards,
    Soren

    Hello Kaushal,
    Thank you for your answer!
    I tried to start and stop/start the service from ST06, but it doesnt work. Here is a content og the log - any ideas how i could start the collector without booting the server?
    HWO description
          SAPOSCOL version  COLL 20.95 701 - 20.64 NT 07/10/17, 64 bit, multithreaded, Non-Unicode
          compiled at   Feb 24 2009
          systemid      562 (PC with Windows NT)
          relno         7010
          patch text    COLL 20.95 701 - 20.64 NT 07/10/17
          patchno       32
          intno         20020600
          running on    L5183N01 Windows NT 6.0 6002 Service Pack 2 16x AMD64 Level 6 (Mod 26 Step 5)
          PATCHES
          DATE     CHANGELIST           PLATFORM             PATCHTEXT
          20081211 1032251              ALL                  Option -w support. Removed SizeOfRecord warning rt 130.
          20090114 1036522              UNIX                 Log file permissions: 664.
          20090203 1041526              UNIX                 Add. single instance check.
          20090210 1042962              ALL                  Continue after EWA HW XML generation failure.
    09:46:39 12.04.2010   LOG: Profile          : no profile used
    09:46:39 12.04.2010   LOG: Saposcol Version  : [COLL 20.95 701 - 20.64 NT 07/10/17]
    09:46:39 12.04.2010   LOG: Working directory : C:\usr\sap\PRFCLOG
    09:46:39 12.04.2010   LOG: Allocate Counter Buffer [10000 Bytes]
    09:46:39 12.04.2010   LOG: Allocate Instance Buffer [10000 Bytes]
    09:46:40 12.04.2010   LOG: Shared Memory Size: 118220.
    09:46:40 12.04.2010   LOG: Connected to existing shared memory.
    09:46:40 12.04.2010   LOG: MaxRecords = 1037 <> RecordCnt + Dta_offset = 1051 + 61
    09:46:55 12.04.2010 WARNING: WaitFree: could not set new shared memory status after 15 sec
    09:46:55 12.04.2010 WARNING: Cannot create Shared Memory
    thanks!
    Soren
    Edited by: Soeren Friis Pedersen on Apr 12, 2010 9:49 AM

  • SAPOSCOLL not running...shared memory not available...!!!!

    Hi All,
    The saposcoll is always getting terminated with a error message "shared memory not available".We have tried all possible remedies but it was of no use, There is no version mismatch and and there is also one saposcoll service running on that host.The problem is coming after we have upgraded our system.
    Please suggest me some suitable notes or any solution for it as it is a production server.
    Ashwini

    Hi,
    Please have a look at below link.
    SAPOSCOL not running ? (shared memory not available )
    Also Check SAP Note 548699 - FAQ: OS collector SAPOSCOL.
    Hope this helps.
    Thanks
    Sushil

  • SAPOSCOL is not running,shared memory not available

    Hi,
    While I tried to start the SAPOSCOL ,it is not starting and throughing the below error.
    Profile          : no profile used
    06:59:26 05.03.2010   LOG: Saposcol Version  : [COLL 20.95 701 - V3.72 64Bit]
    06:59:26 05.03.2010   LOG: Working directory : /usr/sap/tmp
    06:59:26 05.03.2010   LOG: Process Monitoring active.
    06:59:26 05.03.2010   LOG: searching for Process Monitoring Templates in /usr/sap/tmp/dev_proc
    06:59:26 05.03.2010   LOG: searching for Process Monitoring Templates in /usr/sap/tmp/procmon/
    06:59:26 05.03.2010   LOG: The following processes will be monitored:
    06:59:26 05.03.2010   LOG: Process:    jlaunch-DSAPINFO=IDH_00_dispatcher*  for user:               idhadm
    06:59:26 05.03.2010   LOG: Process:        jlaunch-DSAPINFO=IDH_00_server*  for user:               idhadm
    06:59:26 05.03.2010   LOG: Process:           jlaunch-DSAPINFO=IDH_00_sdm*  for user:               idhadm
    06:59:26 05.03.2010   LOG: RefreshDeviceFiltering failed - no filtering done!
    06:59:26 05.03.2010   LOG: Shared Memory Size: 328100.
    06:59:26 05.03.2010   LOG: Connected to existing shared memory.
    06:59:26 05.03.2010   LOG: MaxRecords = 3492 <> RecordCnt + Dta_offset = 3031 + 61
    06:59:42 05.03.2010 WARNING: WaitFree: could not set new shared memory status after 15 sec
    06:59:42 05.03.2010   LOG: PfDeleteMonArea Failed
    06:59:42 05.03.2010 _WARNING: Cannot create Shared Memory_
    06:59:53 05.03.2010   LOG:  check_remap: Switched to new shared memory.
    Please help me regarding this .
    Regards,
    Minakshi

    This is a bug in NT
    Note 1322232 - saposcol: attaching to existing shared memory
    I donot see a straight forward correction declared for the same issue in unix flavored systems. From the log file,working directory format(/usr/sap/tmp) looks like a unix box. Could you let us know the OS ? If its AIX there are many notes u may check , to begin with
    Note 561356 - saposcol on AIX terminates due to memory leak
    Note 710975 - FAQ: which saposcol should be used on AIX
    cheers !
    PRADi

  • SAPOSCOL not running:Shared Memory not available

    Dears,
    On my PI 7.1 server when I go to ST06 I get message:
    SAPOSCOL not running:Shared Memory not available
    Please suggest.
    Shivam

    few suggestions
    FAQs on saposcol - http://www.saptechies.com/os-collector-saposcol/
    SAP Note 165188 - saposcol not running on AIX-DB2
    SAP Note 548699 - FAQ: OS collector SAPOSCOL
    SAP Note 103135 - DB2-z/OS: Installing saposcol manually
    Regards
    Sekhar

  • Centos 5.2 'shared memory init failed' issue - doesn't start

    I am running centos 5.2 32bit and I installed FMS 3.0.2 (Tried FMS 3.0.4 also)
    FMS installed just fine with the -platformWarnOnly flag.
    My problem is it will not start at all, nothing starts. no logs in the /opt/adobe/fms either, I only get logs in /var/log/messages with the following
    Apr  8 17:14:48 vid Server[22463]: Process (22463) : shared memory (__FCS__serverstats_) init failed.
    Apr  8 17:14:53 vid Server[22475]: Process (22475) : shared memory (__FCS__serverstats_) init failed.
    Apr  8 17:21:15 vid Server[22733]: Process (22733) : shared memory (__FCS__serverstats_) init failed.
    Apr  8 17:21:20 vid Server[22745]: Process (22745) : shared memory (__FCS__serverstats_) init failed.
    I also did a ldd on fmsmaster and symlinked "libasneu.so.1 => not found" to the real file, that did nothing.
    Here are some of the rpms that im pretty sure are needed.
    [root@vid fms]# rpm -qa | grep compat
    compat-gcc-34-g77-3.4.6-4
    compat-libgcc-296-2.96-138
    compat-glibc-headers-2.3.4-2.26
    compat-gcc-34-3.4.6-4
    compat-libf2c-34-3.4.6-4
    compat-gcc-34-c++-3.4.6-4
    compat-libstdc++-296-2.96-138
    compat-glibc-2.3.4-2.26
    compat-libstdc++-33-3.2.3-61
    [root@vid fms]# rpm -qa | grep stdc
    compat-libstdc++-296-2.96-138
    libstdc++-4.1.2-44.el5
    compat-libstdc++-33-3.2.3-61
    libstdc++-devel-4.1.2-44.el5
    [root@vid9 fms]# rpm -qa | grep nspr
    nspr-devel-4.7.3-2.el5
    nspr-4.7.3-2.el5
    Would appreciate any help guys!!
    I also googled my error and there is one post with no answer here: http://forums.adobe.com/message/105674#105674
    Thanks!

    tmp/ is (/opt/adobe/fms/tmp) 777 and owned by root, I even tried chown'ing to the user that runs fms, no luck.
    tmp gets created when i run it the FIRST time:
    [root@vid10 fms]# ls -al tmp/
    total 8
    drwxrwxrwx  2 admin admin 4096 Apr  8 21:15 .
    drwxr-xr-x 11 admin admin 4096 Apr  8 21:09 ..
    -rwxrwxrwx  1 admin admin    0 Apr  8 21:09 __FCS__serverstats__shm_mem
    -rwxrwxrwx  1 admin admin    0 Apr  8 21:09 __FCS__serverstats__shm_mtx
    Could it be something with the shm setting, maybe sysctl?
    I have 4GB of ram in this machine.  Same exact machine works perfect on rhel 4
    I appreciate your quick reply.

  • FMS3 - shared memory (__FCS__serverstats_) init failed

    We are using SLES10 on 64-bit system and are unable to start
    the development version of FMS3. An error is reported in
    /var/log/messages :
    shared memory (__FCS__serverstats_) init failed
    Help is needed, thank you.

    tmp/ is (/opt/adobe/fms/tmp) 777 and owned by root, I even tried chown'ing to the user that runs fms, no luck.
    tmp gets created when i run it the FIRST time:
    [root@vid10 fms]# ls -al tmp/
    total 8
    drwxrwxrwx  2 admin admin 4096 Apr  8 21:15 .
    drwxr-xr-x 11 admin admin 4096 Apr  8 21:09 ..
    -rwxrwxrwx  1 admin admin    0 Apr  8 21:09 __FCS__serverstats__shm_mem
    -rwxrwxrwx  1 admin admin    0 Apr  8 21:09 __FCS__serverstats__shm_mtx
    Could it be something with the shm setting, maybe sysctl?
    I have 4GB of ram in this machine.  Same exact machine works perfect on rhel 4
    I appreciate your quick reply.

  • Oracle Error 'ORA-27102: out of memory' - Shared memory parameters correct.

    Advice please!
    We’ve recently shut down our Oracle test server in order to increase file system capacity.  When we rebooted some of the databases wouldn’t start up.  It started the first 4 instances and then errored out saying “ORA-27102: out of memory“.
    I’m pretty sure it’s nothing to do with the file system because we actually reverted back to the old file system and the databases still wouldn’t start.  I think it’s more likely that something’s gone awry whilst the databases were actually running, and the problem has only manifested itself once we stopped and restarted them.
    I have researched the error and forud this artical and similar:  http://var-adm.blogspot.co.uk/2013/04/adjust-solaris-10-shared-memory-to.html 
    Everything suggests that Oracle is trying to create a larger shared memory segment than is allowed.  The thing is, we’ve never changed our shared memory settings, and one minute it was working, the next it isn’t.  To confirm this I checked the shared memory, which is as follows:
    sswift4# prctl -n project.max-shm-memory $$
    process: 926: bash
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      7.64GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    As suggested in the above article, I checked the alert log and found the ‘WARNING: EINVAL’ message which is as follows:
    WARNING: EINVAL creating segment of size 0x000000005e002000
    Converting this to decimal, it’s trying to create something of 1.5 GB, well within the shared memory settings, which suggests that this isn’t the problem.
    We are running Oracle 10g and 11g on Solaris 10 Sparc. The error does not seem to be instance specific, we have 8 instances on this box all with SGA max of 2000m. The server has 32GB of memory available.
    Any advice would be helpful.
    Thanks in advance.
    Debs

    Thanks for your quick responses - we have now resolved the issue.
    The shared memory value was set on the command line but not saved.
    Therefore once we rebooted it lost the configuration. this has been altered by our UNIX admin and all DBs have started without issue.
    Thanks
    Debs

  • No space left in shared memory error when executing a query

    Hi,
    When I executed a query, it showed the results. But when I drilled down it by material, it showed the following error message.
    Error An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occured
    Error No space left in shared memory
    Is there anyone know what is the reason and how to resolve?
    Many Thanks
    Jean

    Your report got too big and you ran out of memory on the server.
    Run it for a smaller data set (e.g., a few months instead of a year) to avoid this problem.
    Hope this helps...
    Bob

  • TNS-01115: OS error 28 creating shared memory segment of 129 bytes

    hi
    we are operating a solaris v5.8 with 10 instances of 10.2.0.1 databases running. each with its own listener. the system shmmni=3600 and using ipcs all are being used causing the error TNS-01115: OS error 28 creating shared memory segment of 129 bytes to occur.
    The kernal parameters were set to be the same as a similiar server we have with the same configuration and more databases and that box uses only 53 memory segments
    Does anyone have any ideas as to what would make this happen?

    i wish i could. there was one db that was not needed so i just shut it down and stopped the listener. then took an ipcs -m reading. it returned 48 rows, instead of 3603 as it did when this particular db was up. in my haste i removed the db as it was not needed so i no longer have the logs to research. too bad on my part.
    well at least i have a fix but have no idea why this happened. thank you for your responses. greatly appreciated.

  • Shared memory crashed

    My application uses Versant database which allocates shared memeory for its purpose. Last week, my application crashed. Core file showed program was in system call malloc() function. I also got some error message like "ss.d:shared memory crashed" in /var/adm/messages file. I know ss.d is some Versant datbase process. My question is, when can one process give this error?
    My second question is, what are ways to track down shared memory leaks?
    My application is running on Solaris 7 platform.
    Thanks in advance,
    Sarowar

    see note 153961.1. you can get the shmid by using '$OH/bin/sysresv'
    -ap

  • Unable to start DSC Shared Memory

    I am running LabView 7.0 (I know its an older setup), with DSC and Lookout OPC to do Serial communications to an Omron PLC. I needed to update the Ni-DAQ because the PCI-6220 board needs the driver. I upgraded to NI-DAQ 7.5 and now a get the Unable to start the DSC Shared Memory Manager Service. I have uninstalled the DSC and reinstalled it with no change. I found in the discussion boards that I need nidscsm.exe in the windows\system32 folder but it is not there. I am running Windows XP.
    I have 2 setups like this. 1 PC still connects to the PLC even though the error pops up, another PC will not connect at all, lights blink but then comms timeout error. 
    Thanks!
    Solved!
    Go to Solution.

    NI DAQ is now out of date, if possible you should use DAQmx instead. According to this chart, you can use any version before DAQmx 8.1. This new driver should work better with DSC. If you need some help converting your code check out this tutorial:Transition from Traditional NI-DAQ to NI-DAQmx in LabVIEW

  • SAPOSCOL Problems with Shared Memory

    Has anyone had any problems in either starting the saposcol or with keeping it running?  We have noticed multiple problems for several years now, and are at a point where the saposcol is not running at all on any of our servers, nor can we start it running.
    We're seeing "SAPOSCOL not running ? (Shared memory not available)".  I am working with SAP with two different customer messages trying to determine why we cannot start the saposcol.
    Does anyone have any ideas?
    Thanks,
    Traci Wakefield
    CV Industries

    I do have entries in the os-collector log:
          SAPOSCOL version  COLL 20.89 640 - AS/400 SAPOSCOL Version 18 Oct 2005, 64 bit, single threaded, Non-Unicode
          compiled at   Nov 26 2005
          systemid      324 (IBM iSeries with OS400)
          relno         6400
          patch text    COLL 20.89 640 - AS/400 SAPOSCOL Version 18 Oct 2005
          patchno       102
          intno         20020600
          running on    CENTDB1 OS400 3 5 0010000A1E1B
    13:25:06 28.02.2007   LOG: Profile          : no profile used
    13:25:06 28.02.2007   LOG: Saposcol Version  : [COLL 20.89 640 - AS/400 SAPOSCOL Version 18 Oct 2005]
    13:25:06 28.02.2007   LOG: Working directory : /usr/sap/tmp
    13:26:01 28.02.2007   LOG: Shared Memory Size: 339972.
    13:26:01 28.02.2007   LOG: INFO: size = (1 + 60 + 3143) * 106 + 348.
    13:26:01 28.02.2007   LOG: Connected to existing shared memory.
    13:26:01 28.02.2007   LOG: Reused shared memory. Clearing contents.
    13:26:04 28.02.2007   LOG: Collector daemon started
    13:26:04 28.02.2007   LOG: read coll.put Wed Feb 28 13:22:01 2007
    13:26:04 28.02.2007   LOG: Collector PID: 2469
    13:27:05 28.02.2007   LOG: Set validation records.
    14:00:32 28.02.2007 WARNING: Out of int limits in pfas41c1.c line 1528
    12:58:37 10.03.2007   LOG: Stop Signal received.
    12:58:38 10.03.2007   LOG: ==== Starting to deactivate collector ==========
    12:59:01 10.03.2007   LOG: ==== Collector deactivated  ================
    Also, I have tried saposcol -d (and other parameters below):
    saposcol -d
    kill
    clean
    leave
    quit.
    delete the files coll.put, dev_coll"
    4" From my open SAP message:
    I have also done the following:
    1 Check the authorizations of SAPOSCOL as mentioned in SAP Notes:
    637174 SAPOSCOL cannot access Libraries of different SAP systems
    175852 AS/400: Authorization problems in SAPOSCOL
    2 Remove the shared memory (coll.put)
    (according to SAP Note: #189072). You could find 'coll.put' in path:
    '/usr/sap/tmp'.
    3 End the following jobs in QSYSWRK:
    QPMASERV, QPMACLCT, QYPSPFRCOL and CRTPFRDTA
    4 Delete the temporary user space:
    WRKOBJ OBJ(R3400/PERFMISC) OBJTYPE(USRSPC)
    Afterwards you could start SAPOSCOL on operating system level.
    Just logon to iSeries as <SID>OFR and run the following command:
    SBMJOB CMD(CALL PGM(<kernel_lib>/SAPOSCOL) PARM('-l'))
    JOB(SAPOSCOL) JOBQ(R3<SID>400/R3_<nn>)
    LOG(4 0 SECLVL) CPYENVVAR(YES)
    Thanks,
    Traci"

Maybe you are looking for

  • 450GB of my data erased by Itunes update. This is unacceptable.

    Digital goods are particularly fragile. I have research data in the form of podcasts on my computer from the last seven years of my work. MANY of these files are irreplacable! A simple update of my application software should not be ABLE to erase tha

  • Extracting data from XML using xmltype and extract

    Hello all, I want to write a pl/sql functions that takes a clob as an input and return a some data extracted from the data passed into it. the input will be an xml similar to the following: <FIXML xsi:schemaLocation="http://www.finacle.com/fixml exec

  • Adjusting the timing of a button

    It seems that I used to drag the 2 little vertical to the left or right in order to control where I wanted the slide to pause until the user clicks. I am embarrassed to say that I have fogotten how to do this. When I try to drag the "control point" i

  • MORE HELP: VERSION COMPARISON OF LARGE NO.OF PROGRAMS

    I   need to do version managemengt of large no. of programs, need some help in it. ps: shiva ur function module doesnt run in any system,tell me in which does it run

  • In formscentral, can I put images in dropdowns

    I need to put images into drop-downs in the formcentral form design.  Am I able to do this?  How?