Shared Memory

From Tuxunix
Jump to: navigation, search
testi:~ # ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096                          /* SHMMNI  */
max seg size (kbytes) = 524288                  /* SHMMAX  */
max total shared memory (kbytes) = 5242880      /* SHMALL  */
min seg size (bytes) = 1


  • SHMMAX is the maximum size of a single shared memory segment set in “bytes”.
cat /proc/sys/kernel/shmmax
  • SHMALL is the total size of Shared Memory Segments System wide set in “pages”.
cat /proc/sys/kernel/shmall

Prise en compte immediat

#> sysctl -w kernel.shmall=2097152
#> sysctl -w kernel.shmmax=2147483648