cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory usage

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 23 Dec 2010 01:14:02 +0100

On Wednesday 22 December 2010 23:56:31 Kevin Baughman wrote:
> Yes this is the Fedora 11 curl. I tried running it on F14 as well, same
> memory bloat happened there.

This is not about the version of (lib)curl, but about the version of NSS.
A bunch of patches went in somewhere around the Fedora 11 epoch. I guess
the following discussion is closely related:

https://bugzilla.mozilla.org/show_bug.cgi?id=402712#c56

How much does it allocate per one iteration? If it is a few bytes, then it
is a known bug. If it is more, it may indicate some malfunction of
AddObjectIfNeeded(). The function is responsible for recognizing an already
loaded object and reusing it. The few bytes leakage is given either by
suboptimal design of the framework, or my poor understanding of it.

In both cases it needs to be addressed properly some day. Unfortunately, I am
not really a NSS developer and don't have enough time to work on the issue at
the moment. If your are able to repeat the problem with Fedora 14 NSS,
please open a Fedora bug against it. Thanks in advance!

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-23