Re: help with huge memory consumption??



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. Most of the old stack
(data pushed by parents) can be shared. It often is.
Only stack pushes [writes] trigger the CoW.

-- Robert

.