Max possible shared memory size in 64-bit Linux machine

妖精的绣舞 提交于 2019-12-06 06:19:23

the maximum shm memory size is available thru /proc/sys/kernel/shmmax and you could write into that pseudo-file to change it. It probably cannot be raised above some portion (e.g. half) of physical RAM. Perhaps some kernel configuration can change that.

You can also share memory with the mmap syscall with MAP_SHARED flag.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!