It appears you have not registered with our community. To register please click here ...

Author Topic: Help me in finding the command to show semaphores and shared memory  (Read 1498 times)

rammu_sivraj

  • Newbie
  • *
  • Posts: 3
  • Karma: +10/-0
    • View Profile
    • Email
Hi..
     Actually.. i\'m trying to write a script which shud display the number of semaphores and no of shared memeory of the my linux system..
  what commands \'ll do this.. plz do help me
   Rammu

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
ipcs will display Semaphore Arrays and Shared Memory Segments
« Reply #1 on: July 11, 2006, 08:40:25 AM »
The command
  ipcs
 will display Semaphore Arrays and Shared Memory Segments.  The Semaphore Arrays are broken down by Key, SemID, Owner, Perms, and Nsems.  The Shared Memory Segments are broken down by Key, ShmID, Owner, Perms, Bytes, Nattch, and Status.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
IPCS Manual Page
« Reply #2 on: July 11, 2006, 08:41:19 AM »
NAME


       ipcs - provide information on ipc facilities

SYNOPSIS


       ipcs [ -asmq ] [ -tclup ]
       ipcs [ -smq ] -i id
       ipcs -h

DESCRIPTION


       ipcs  provides  information on the ipc facilities for which the calling
       process has read acccess.

       The -i option allows a specific resource    id  to    be  specified.     Only
       information on this id will be printed.

       Resources may be specified as follows:

       -m     shared memory segments

       -q     message queues

       -s     semaphore arrays

       -a     all (this is the default)

       The output format may be specified as follows:

       -t     time

       -p     pid

       -c     creator

       -l     limits

       -u     summary
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1829 Views
Last post June 09, 2005, 04:09:22 AM
by contactsonia
1 Replies
1580 Views
Last post January 11, 2006, 04:58:39 AM
by sargek
1 Replies
1921 Views
Last post March 28, 2006, 10:11:04 AM
by dynaweb
0 Replies
1571 Views
Last post September 17, 2006, 11:20:00 AM
by dynaweb
1 Replies
2744 Views
Last post January 23, 2007, 11:54:07 PM
by dynaweb