remove share memory with ipcrm



Hi,

I want to remove the following share memory 1382453391 in FreeBSD 6.2 Pre

# ipcs
Message Queues:
T ID KEY MODE OWNER GROUP

Shared Memory:
T ID KEY MODE OWNER GROUP
m 65536 5432001 --rw------- pgsql pgsql
m 65537 1382453391 --rw-r--r-- root wheel

Semaphores:
T ID KEY MODE OWNER GROUP
s 65536 5432001 --rw------- pgsql pgsql
s 65537 5432002 --rw------- pgsql pgsql
s 65538 5432003 --rw------- pgsql pgsql
s 65539 5432004 --rw------- pgsql pgsql
s 65540 5432005 --rw------- pgsql pgsql
s 65541 5432006 --rw------- pgsql pgsql
s 65542 5432007 --rw------- pgsql pgsql

All options with ipcrm does not work. I may be using wrong commands for removing the shared memory.
What s the correct way to remove shared memory like this?

Here is the commands I used:

# ipcrm 1382453391
unknown argument: 1382453391
usage: ipcrm [-q msqid] [-m shmid] [-s semid]
[-Q msgkey] [-M shmkey] [-S semkey] ...
mail01:test # ipcrm -q 1382453391
ipcrm: msqid(1382453391): : Invalid argument
mail01:test # ipcrm -s 1382453391
ipcrm: semid(1382453391): : Invalid argument
mail01:test # ipcrm -Q 1382453391
ipcrm: msqs(1382453391): : No such file or directory
mail01:test # ipcrm -S 1382453391
ipcrm: sems(1382453391): : No such file or directory
mail01:test # ipcrm -S 65537
ipcrm: sems(65537): : No such file or directory
mail01:test # ipcrm -Q 65537
ipcrm: msqs(65537): : No such file or directory
mail01:test # ipcrm -s 65537
mail01:test # ipc
ipcalc ipcclean ipcount ipcrm ipcs
mail01:test # ipcs
Message Queues:
T ID KEY MODE OWNER GROUP

Shared Memory:
T ID KEY MODE OWNER GROUP
m 65536 5432001 --rw------- pgsql pgsql
m 65537 1382453391 --rw-r--r-- root wheel

Semaphores:
T ID KEY MODE OWNER GROUP
s 65536 5432001 --rw------- pgsql pgsql
s 65538 5432003 --rw------- pgsql pgsql
s 65539 5432004 --rw------- pgsql pgsql
s 65540 5432005 --rw------- pgsql pgsql
s 65541 5432006 --rw------- pgsql pgsql
s 65542 5432007 --rw------- pgsql pgsql

mail01:test # ipcrm -q 65537
ipcrm: msqid(65537): : Invalid argument

Thanks
S
.



Relevant Pages