Find the answer to your Linux question:
Results 1 to 2 of 2
When I boot into Linux i see some shared memory which is blocked, due to this I am unable to start my processes which needs some shared memory. I tried ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    1

    unable to remove shared memory


    When I boot into Linux i see some shared memory which is blocked, due to this I am unable to start my processes which needs some shared memory.
    I tried removing the shared memory using ipcrm -m but no use, the shared memory is not cleaned but its still in use.
    I tried removing the shared memory using root user also normal user but unable to remove the shared memory.
    [pin01]$ ipcs -m

    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 32768 root 644 80 2
    0x00000000 65537 root 644 16384 2
    0x00000000 98306 root 644 280 2
    0x00000000 196612 pin01 600 393216 2 dest
    0x00000000 229381 pin01 600 393216 2 dest
    0x00000000 262150 pin01 600 393216 2 dest
    0x00000000 294919 pin01 600 393216 2 dest
    0x00000000 327688 pin01 600 393216 2 dest
    0x00000000 360457 pin01 600 393216 2 dest
    0x00000000 393226 pin01 600 393216 2 dest
    0x00000000 425995 pin01 600 393216 2 dest
    0x00000000 458764 pin01 600 393216 2 dest
    0x00000000 491533 pin01 600 393216 2 dest[/CODE]

    tried to remove as below:
    Code:
    [pin01]$ ipcrm -m 196612
    but still the shared memory is not removed
    Code:
    [pin01]$ ipcs -m
    
    ------ Shared Memory Segments --------
    key        shmid      owner      perms      bytes      nattch     status      
    0x00000000 32768      root      644        80         2                       
    0x00000000 65537      root      644        16384      2                       
    0x00000000 98306      root      644        280        2                       
    0x00000000 196612     pin01     600        393216     2          dest         
    0x00000000 229381     pin01     600        393216     2          dest         
    0x00000000 262150     pin01     600        393216     2          dest         
    0x00000000 294919     pin01     600        393216     2          dest         
    0x00000000 327688     pin01     600        393216     2          dest         
    0x00000000 360457     pin01     600        393216     2          dest         
    0x00000000 393226     pin01     600        393216     2          dest         
    0x00000000 425995     pin01     600        393216     2          dest         
    0x00000000 458764     pin01     600        393216     2          dest         
    0x00000000 491533     pin01     600        393216     2          dest

    any help from any one ?
    Thanks

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Location
    Louisville
    Posts
    23

    reply

    The man page states that ipcrm -m <id> only marks it for removal. If you do a ipcs -p it will give you the process id's. Kill the process that you are trying to free and you will see the shared memory segment go away.
    good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •