4 Replies Latest reply: Jul 6, 2014 1:08 PM by Chrisjenkins-Oracle RSS

    Redhat: TT0837: Cannot attach data store shared-memory segment, error 12

    William64

      Customer has two systems, one Solaris and one Linux.  We have six DSNs with one dsn PermSize at 1.85G.  Both OS systems are 32-bit.   After migrating from TT6.0 to 11.2,  I can not get replication working on the Linux system for the 1.85G dsn.   The Solaris system is working correctly.   I've been able to duplicate the issue in out lab also.  If I drop the PermSize down to 1.0G, replication is started.   I've tried changing multiple parameters including setting up HugePages.  

       

      What else could I be missing?  Decreasing the PermSize is not an option for this customer.   Going to a full 64-bit system is on our development roadmap but is at least a year away due to other commitments.

       

      This is my current linux lab configuration.

       

      ttStatus output for the failed Subscriber DSN and a working DynamicDB DSN.    As you can see, the policy is set to "Always" but it has no Subdaemon or Replication processes running.

       

      ------------------------------------------------------------------------

      Data store /space/Database/db/Subscriber

      There are no connections to the data store

      Replication policy  : Always

      Replication agent is running.

      Cache Agent policy  : Manual

       

      ------------------------------------------------------------------------

      Data store /space/Database/db/DynamicDB

      There are 14 connections to the data store

      Shared Memory KEY 0x5602000c ID 1826586625 (LARGE PAGES, LOCKED)

      Type            PID     Context     Connection Name              ConnID

      Replication     88135   0x56700698  LOGFORCE                          4

      Replication     88135   0x56800468  REPHOLD                           3

      Replication     88135   0x56900468  TRANSMITTER                       5

      Replication     88135   0x56a00468  REPLISTENER                       2

      Subdaemon       86329   0x08472788  Manager                        2032

      Subdaemon       86329   0x084c5290  Rollback                       2033

      Subdaemon       86329   0xd1900468  Deadlock Detector              2037

      Subdaemon       86329   0xd1a00468  Flusher                        2036

      Subdaemon       86329   0xd1b00468  HistGC                         2039

      Subdaemon       86329   0xd1c00468  Log Marker                     2038

      Subdaemon       86329   0xd1d00468  AsyncMV                        2041

      Subdaemon       86329   0xd1e00468  Monitor                        2034

      Subdaemon       86329   0xd2000468  Aging                          2040

      Subdaemon       86329   0xd2200468  Checkpoint                     2035

      Replication policy  : Always

      Replication agent is running.

      Cache Agent policy  : Manual

       

       

       

      Summary of Perm and Temp Sizes of each system. 

       

      PermSize=100

      TempSize=50

      PermSize=100

      TempSize=50

      PermSize=64

      TempSize=32

      PermSize=1850    => Subscriber

      TempSize=35     => Subscriber

      PermSize=64

      TempSize=32

      PermSize=200

      TempSize=75

       

       

       

      #####################################################################

      [SubscriberDir]

      Driver=/opt/SANTone/msc/active/TimesTen/lib/libtten.so

      DataStore=/Database/db/Subscriber

      AutoCreate=0

      DurableCommits=0

      ExclAccess=0

      LockLevel=0

      PermWarnThreshold=80

      TempWarnThreshold=80

      PermSize=1850

      TempSize=35

      ThreadSafe=1

      WaitForConnect=1

      Preallocate=1

      MemoryLock=3

      ###MemoryLock=0

      SMPOptLevel=1

      Connections=64

      CkptFrequency=300

      DatabaseCharacterSet=TIMESTEN8

      TypeMode=1

      DuplicateBindMode=1

       

      msclab3201% cat ttendaemon.options

      -supportlog /var/ttLog/ttsupport.log

      -maxsupportlogsize 500000000

      -userlog /var/ttLog/userlog

      -maxuserlogsize 100000000

      -insecure-backwards-compat

      -verbose

      -minsubs 12

      -maxsubs 60

      -server 16002

      -enableIPv6

      -linuxLargePageAlignment 2

       

       

      msclab3201# cat /proc/meminfo

      MemTotal:       66002344 kB

      MemFree:        40254188 kB

      Buffers:          474104 kB

      Cached:         19753148 kB

      SwapCached:            0 kB

      HugePages_Total:2000
      HugePages_Free: 2000
      HugePages_Rsvd:    0
      HugePages_Surp:    0
      Hugepagesize:   2048 kB

       

      ## Before loading Subscriber Dsn

       

      msclab3201# ipcs -m

       

      ------ Shared Memory Segments --------

      key        shmid      owner      perms      bytes      nattch     status

      0xbc0101d6 1703411712 ttadmin    660        1048576    1

      0x79010649 24444930   root       666        404        0

       

      ## After loading Subscriber Dsn

       

      msclab3201# ipcs -m

       

      ------ Shared Memory Segments --------

      key        shmid      owner      perms      bytes      nattch     status

      0xbc0101d6 1703411712 ttadmin    660        1048576    2

      0x7f020012 1825964033 ttadmin    660        236978176  2

      0x79010649 24444930   root       666        404        0

       

       

      msclab3201#

      msclab3201# sysctl -a  | grep huge

      vm.nr_hugepages = 2000

      vm.nr_hugepages_mempolicy = 2000