2

The amount of Shared memory being utilized:

#> df -h /dev/shm Filesystem Size Used Avail Use% Mounted on tmpfs 125G 96G 30G 77% /dev/shm

The max amount of shared memory system-wide, set by the SHMALL kernel parameter:

ipcs -lm | grep shared max total shared memory (kbytes) = 67108864

Question: How is this possible? How can the max total shared memory be set to 64GB in the kernel, but df is reporting that 96G shared memory is being used?

1 Answer 1

0

The shmall parameter refers to traditional UNIX IPC shared memory. You can see the memory allocations of that using the command ipcs. The tmpfs temporary filesystem is a totally different subsystem used as a ram based, swap backed filesystem.

tmpfs is used as the basis to perform posix shared memory in fact, which is a different type of shared memory system to unix IPC.

3
  • So basically, other programs that use the POSIX API will show up as using space in tmpfs in addition to programs that use the IPC system? Aug 4, 2015 at 18:12
  • And SHMALL is only governing total shared memory created using the IPC system? Aug 4, 2015 at 18:13
  • Yes, the value does not dictate what tmpfs does. Aug 4, 2015 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .