Am Montag, den 24.11.2008, 17:37 +0100 schrieb Koen Deforche:
> Hey Goetz,
Hello Koen,

> 2008/11/24 Goetz Babin-Ebell <[EMAIL PROTECTED]>:
> >> The way you phrase your question suggests you saw a big jump in memory
> >> usage with the latest release?
> >
> > With 2.1.5 it was a problem (20MB), but not that burning...
> 
> I think I have found a reason for this behaviour: threads were
> allocated but not used when using the built-in httpd controller. I
> have fixed this in CVS.

OK, will try tomorrow.

> >> What do you mean by using 36MB of RAM? Is this total mapped memory?
> > VmData(36532K) + VmStack(84K)
> 
> These (I assume you read this from the /proc filesystem) are memory
> sizes that are mapped, but do not reflect what is actually used. To
> see what is used, you could use a memory profiling tool, such as
> valgrind's massif

It is an embedded device.

> With a default Wt debug build (including SSL), and the default of 10
> threads (not sure if that matters for heap usage), the actual heap
> memory used after starting hello world is 300,568 bytes.

> The main users indicated by massif are boost::asio (33%), SSL
> initialization (16%) and boost::regex used in CgiParser (which you can
> disable on linux with a compile time option HAVE_GNU_REGEX).

I'll look into that.

> >> You should probably also differentiate between shared (rx) en
> >> non-shared (rw) memory segments?
> > Only stack and heap...
> 
> That is okay. But, those are mapped memory, not actually used. Mapped
> memory does not consume memory until it is actually used (i.e.
> swapped in).

And that is the problem:
It is an embedded device, which means no swap.
And unfortunately with all the running applications and modules
we reached the limit at which every additionally used K can mean
an oops...


Bye

Goetz

-- 
Goetz Babin-Ebell <[EMAIL PROTECTED]>
4G Systems GmbH & Co KG


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to