Operating System - Linux
1828406 Members
3318 Online
109977 Solutions
New Discussion

free displays value of shared as 0

 
Jagadesh
Frequent Advisor

free displays value of shared as 0

When i use the free command it displays the value of shared as 0. Does this mean my shared memory is zero?

When i use #ipcs -l
----- Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 16
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

What is the exact command to display shared memory?
What is the diff of shared value shown by free ans ipcs -l command

Thanks
Jagadesh
1 REPLY 1
Dan Beeler_2
Occasional Advisor

Re: free displays value of shared as 0

Jagadesh,

"free displays the total amount of free and used physical and swap memory in the system, as well as the shared mem??ory and buffers used by the kernel."

The shared column with a value of zero means that currently there is no shared memory being used by the system. If you have a database or other program that uses shared memory this might be of concern, otherwise I would just ignore it. I checked 3 of my DL380s running RH 7.2 and they all had 0 for the shared column.