close
有用到一些覺得有趣的指令所以來記錄一下
ipcs -m 可以看 ipc memory的部分
ipcrm -m shmid 指定砍掉shmid
可以用sysctl -a | grep shm
查看系統設定的shared memory
(其他sysctl on different platforms 的介紹:https://www.postgresql.org/docs/8.4/static/kernel-resources.html)
這次因為要allocate兩塊800*800 interger array fail
所以查了一下shared memory size (kern.sysv.shmmax: 4194304)
所以 除2 (兩塊array) 除4(interger size) 開根號,最多size只能到724,到了725就會allocate fail
全站熱搜