[Python-ideas] Support parsing stream with `re`

Chris Angelico rosuav at gmail.com
Tue Oct 9 07:10:45 EDT 2018


On Tue, Oct 9, 2018 at 10:05 PM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Chris Angelico wrote:
> > In contrast, a mmap'd file is memory that you do indeed own.
>
> Although it's not really accurate to say that it's owned by
> a particular process. If two processes mmap the same file,
> the physical memory pages holding it appear in the address
> spaces of both processes.
>

Yeah, which is a constant problem when you ask "why am I out of
memory". Same thing happens if you have any other (non-mmap'd) pages
and then you fork, or if two processes are using the same executable
(though I think that's actually mmap again), etc, etc, etc. Tell me,
which process is responsible for libc being in memory? Other than,
like, all of them?

ChrisA


More information about the Python-ideas mailing list