2.4 Gestion des IPCS

De UnixWiki
Aller à la navigation Aller à la recherche

IPCS

Afficher les files de message

 # ipcs -q

Afficher les mémoires partagées

 # ipcs -m

Afficher les sémaphores

 # ipcs -s

Tout afficher

 # ipcs -a
IPC status from /dev/kmem as of Fri May 18 10:34:02 2012 T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME Message Queues: q 0 0x3c1829cc -Rrw--w--w- root root root root 0 0 32768 0 0 no-entry no-entry 11:44:35 q 1 0x3e1829cc --rw-r--r-- root root root root 0 0 264 0 0 no-entry no-entry 11:44:35 T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME Shared Memory: m 0 0x4118297d --rw-rw-rw- root root root root 0 348 1567 1567 11:44:42 11:44:42 11:44:36 m 1 0x4e0c0002 --rw-rw-rw- root root root root 2 61760 1567 1569 11:44:42 11:44:42 11:44:36 m 2 0x411c001d --rw-rw-rw- root root root root 2 8192 1567 1569 11:44:42 11:44:36 11:44:36 m 5123 0x06347849 --rw-rw-rw- root root root root 2 65544 2399 2445 11:49:48 11:49:41 11:49:40 m 2052 0x0c6629c9 --rw-r----- root root root root 4 18995752 2411 5010 0:02:47 21:53:13 11:49:41 m 4101 0x4914003e --rw-r--r-- root root root root 0 22908 2404 2445 10:34:00 10:34:00 11:49:47 m 3178502 0x011d0ec0 --rw-rw-rw- root root root root 2 1002 22760 20573 22:43:21 no-entry 22:43:21 T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME Semaphores: s 0 0x4118297d --ra-ra-ra- root root root root 1 11:44:42 11:44:36 s 1 0x4e0c0002 --ra-ra-ra- root root root root 2 11:44:38 11:44:36 s 2 0x411c001d --ra-ra-ra- root root root root 2 11:44:42 11:44:36 s 3 0x00446f6e --ra-r--r-- root root root root 1 no-entry 11:44:45


Supprimer un IPCS

Un message

 # ipcrm -q $MSG_ID

Une mémoire partagé

 # ipcrm -m SHM_ID

Un semaphore

 # ipcrm -s $SEM_ID