Re: help with huge memory consumption??



Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> writes:
Rainer Weikusat <rainer.weikusat@xxxxxxxxx> wrote in part:
A virtual page that hasn't been used yet will have no
physical page associated with it.

True enough. But will take resources for kernel memory
maps, even if the pages are never used.
AFAIK, minor pagefaults have not gotten this minor :)

But how can a stack page possibly be shared and with whom?

fork() does this by default.

The original article talked about stacks allocated for thread
within a process and I did, too. So, how can stack pages allocated
for threads withing a single process be shared with whom?

BTW, the answer is 'they cannot'.
.