- 论坛徽章:
- 0
|
在s90/m85上aix5.1执行如下代码:
for (i=0;i<_SI_COMP_CONNT_;i++)
{
pSIComponent = (TSIComponent*)malloc(sizeof(TSIComponent));
if (pSIComponent == NULL)
{
lHasAlloced = i;
printf("Not enough memory to allocate %ld buffer\n",i);
break;
}
pSIComponent->;lSICompSeq = i;
pSIComponent->;lSvrInstID = i;
pSIComponent->;pLeftChild = pSIComponent_temp;
pSIComponent_temp = pSIComponent;
}
在_SI_COMP_CONNT_为2500000时,分配内存量为150M左右,程序运行正常,但当将_SI_COMP_CONNT_调整为3000000或更大时,程序core segment,请教各位大侠是何原因?是程序问题还是要作系统参数的调整?要调整的参数有哪些?目前将rss调整为-1似乎不能解决问题,而机器物理内存是绝对足够的。 |
|