Operating System - HP-UX
1847620 Members
3132 Online
110265 Solutions
New Discussion

Re: locked shared memory segment

 
Stanimir
Trusted Contributor

locked shared memory segment

Please help me with the following. I cannot start my Informix DB. The reason is locked shared memory segment. The log says:
"...

09:12:17 IBM Informix Dynamic Server Started.
09:12:26 Segment locked: addr=0xc00000000041d000, size=4294705152
09:12:26 Requested shared memory segment size rounded from 2333437KB to 2333440
KB
09:12:30 Segment locked: addr=0xc0000001003dd000, size=2389442560

Wed Jan 25 09:12:35 2006

..."

Bat #ipcs -am said that there are not so big SHMEM-segment locked:

$ ipcs -ma
IPC status from /dev/kmem as of Wed Jan 25 09:39:21 2006
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 0 0x411c0262 --rw-rw-rw- root root root root 0 348 577 577 18:51:37 18:51:37 18:51:31
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 61760 577 577 18:51:33 18:51:37 18:51:31
m 2 0x41200f2e --rw-rw-rw- root root root root 1 8192 577 589 18:51:33 18:51:31 18:51:31
m 9803 0x5e1000d5 --rw------- root root root root 1 512 1564 1564 18:52:28 no-entry 18:52:28

#swapinfo -tam Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 20160 0 20160 0% 0 - 1 /dev/vg00/lvol2
reserve - 147 -147
memory 13172 2486 10686 19%
total 33332 2633 30699 8% - 0 -

How I could unlock the
segment and to free memory?
My OS is HPUX 11.23.





6 REPLIES 6
Muthukumar_5
Honored Contributor

Re: locked shared memory segment

There is some time difference between informix execution and ipcs -ma. Try to get closer information from ipcs -ma.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: locked shared memory segment

Can you use # ipcrm command to remove the shared memory ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: locked shared memory segment

The column-NATTCH if has 0 and user is the one that you use of informix, then try removing it with ipcrm. If that does not work, you will have to remove.

Double check before you do ipcrm.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: locked shared memory segment

Shalom,

Example:

ipcrm -m 9803

# closes memory area 9803

Note the process/server/application that grabbed the shared memory needs to release it for this to be effective.

Use ipcrm -s for s

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Lewis
Honored Contributor

Re: locked shared memory segment

Actually segment locked is NOT the reason your database will not start.

It is just the message you get when you specify RESIDENT 1 in your onconfig file.

I get the same message in my message log every time and the database starts. i.e.
13:50:22 IBM Informix Dynamic Server Version 9.40.FC3 Software Serial Number AAA#B000000
13:50:22 HPUX Version B.11.00 -> Using flag/select style KAIO
13:50:22 HP KAIO concurrent requests changed from 1000 to 3000
13:50:23 HPUX KAIO Segment locked addr=0x385df000 size=1126588416
13:50:25 HPUX KAIO Segment locked addr=0x7b845000 size=614400000
...

Your ipcs output shows no segments owned by informix, so you cannot remove them, this is probably because your database shut itself down and cleaned them up by itself.

You need to post the rest of your message file, not just that part, for us to tell you the real reason your database will not start.

Also please tell us the full version of Informix you are running.


Stanimir
Trusted Contributor

Re: locked shared memory segment

Actually the problem was in permissions
of informix tools. :)

Steve, you are right.