我对什么是最大值应该设置什么是不明确的。
看看我的系统统计数据后,显示如下:
#cat /proc/sys/kernel/shmmax 18446744073692774399 #ipcs -l ------ Messages Limits -------- max queues system wide = 3675 max size of message (bytes) = 8192 default max size of queue (bytes) = 16384 ------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 18014398509465599 max total shared memory (kbytes) = 18014398442373116 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
理想情况下,共享内存的值不应超过实际的内存大小(即21474836480字节)。 那么这是可能的吗? 或者这是一个垃圾值。
我正在search你的问题,只发现文档如何configurationshmmax
和shmall
参数。 最好的一个是在这个答案 。 所以对于你的问题,如果你的shmmax
设置为更高的值,更多的是你有内存,这是垃圾值,系统不允许用于共享内存更多然后你有RAM(不知道交换)。