in reply to fork on linux 2.6 does not share memory

Note also that just touching that 200MB chunk doesn't copy the whole thing. It just copies the page that you touched (4 or 8 KB usually).
  • Comment on Re: fork on linux 2.6 does not share memory

Replies are listed 'Best First'.
Re^2: fork on linux 2.6 does not share memory
by salva (Canon) on Jul 27, 2005 at 13:57 UTC
    well, it actually depends on how you touch it and how perl internals perform the requested action.

    For instance, running a s/foo/bar/ operation will reallocate the full string even if it just substitutes a few bytes.