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