Archive for 三月 9th, 2010

linux ipcs max sharememory

星期二, 三月 9th, 2010
最近同事遇到一个LINUX上共享内存段的问题,一般我们会根据系统内存的大小来定义系统支持的最大内存段大小,kernel.shmmax ,检查了这些设置都没问题,系统版本也没啥问题,最后经老熊提醒确认为NUMA的问题
ipcs -m
 
----
-- Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status     
0x00000000 98304      gdm       600        393216     2          dest         
0x00000000 1310721    oracle    640        1543503872 31                     
0x00000000 1343490    oracle    640        2835349504 31                     
0x00000000 1376259    oracle    640        2835349504 31                     
0x00000000 1409028    oracle    640        2852126720 31                     
0x00000000 1441797    oracle    640        2835349504 31                     
0x1714b88c 1474566    oracle    640        2097152    31   
设置了如下参数后就解决了次问题
alter system set "_enable_numa_optimization"=false scope=spfile;
有关
NUMA的问题,可以看文档:759565.1