Re: calloc/free: a preplexing observation
From: Clark S. Cox III (clarkcox3_at_gmail.com)
Date: 01/31/05
- Next message: j: "Re: Why do people call addresses "pointers"?"
- Previous message: Alex Fraser: "Re: Bit-fields and integral promotion"
- In reply to: boris_at_borisland.com: "calloc/free: a preplexing observation"
- Next in thread: boris_at_borisland.com: "Re: calloc/free: a preplexing observation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 Jan 2005 12:55:53 -0500
On 2005-01-31 12:18:44 -0500, boris@borisland.com said:
> Hi!
>
> I'm seeking some answers about what seems to be a memory leak.
[snip]
> ... since the
> "largeArray" is about 4000*4000 of double which should be about 16MB -
> and I see usage of > 100MB after a few hundred iterations.
Do the math again:
4,000 * 4,000
= 16,000,000
If sizeof(double) is 8 then:
8B * 16,000,000
= 128,000,000B
≈ 122 MB
So your usage of > 100MB seems to be right in line with what should be
expected.
-- Clark S. Cox, III clarkcox3@gmail.com
- Next message: j: "Re: Why do people call addresses "pointers"?"
- Previous message: Alex Fraser: "Re: Bit-fields and integral promotion"
- In reply to: boris_at_borisland.com: "calloc/free: a preplexing observation"
- Next in thread: boris_at_borisland.com: "Re: calloc/free: a preplexing observation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|