Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Re: calloc fails and returns NULL (http://www.velocityreviews.com/forums/t954291-re-calloc-fails-and-returns-null.html)

Greg Martin 11-07-2012 04:49 PM

Re: calloc fails and returns NULL
 
On 12-11-07 01:35 AM, k2ibegining wrote:
> in one of our application's module, calloc() is failing and returning NULL. The amount of memory that it is trying to allocate is of structure which is of 9292 bytes. The operating system is AIX 7.1 and running VIOS 2.2.1.3.
>
> The machine has 2+GB ram and does not seems to have an issue with lack of memory. The same application module is running fine on one of the other boxes, which has same configurations as the problematic box.Following is a snippet of memory from both the boxes and they are same !
>
> WORKING BOX:
>
> RLIMIT_AS (infinite) (infinite)
> RLIMIT_CORE 1073741312 (infinite)
> RLIMIT_CPU (infinite) (infinite)
> RLIMIT_DATA 134217728 (infinite)
> RLIMIT_FSIZE (infinite) (infinite)
> RLIMIT_NOFILE 2000 (infinite)
> RLIMIT_RSS 33554432 (infinite)
> RLIMIT_STACK 33554432 2147483646
>
> PROBLEMATIC BOX:
>
> RLIMIT_AS (infinite) (infinite)
> RLIMIT_CORE 1073741312 (infinite)
> RLIMIT_CPU (infinite) (infinite)
> RLIMIT_DATA 134217728 (infinite)
> RLIMIT_FSIZE (infinite) (infinite)
> RLIMIT_NOFILE 2000 (infinite)
> RLIMIT_RSS 33554432 (infinite)
> RLIMIT_STACK 33554432 2147483646
>
> I'm clueless as can't really figure out why calloc() is failing even for 9292 bytes on this box.
>
> Thanks
>
>


I seem to recall a command called "svmon" on AIX and I think I've used
"top" as well. I doubt that they will tell you anything really useful
though since it would seem unlikely that you are failing in the same
place each time because you are out of memory unless the size you are
requesting isn't what you think it is.




All times are GMT. The time now is 06:14 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57