From: Peter Weber <peter.weber@flapflap.eu>
To: linux-mm@kvack.org
Subject: Is anonymous memory part of the page cache on Linux?
Date: Fri, 12 Mar 2021 15:43:33 +0100 [thread overview]
Message-ID: <e17246e9216435e0e65b3d99cb190fab@flapflap.eu> (raw)
Hello!
Hopefully I'm asking here in the right place and don't disturb.
Is anonymous memory - i.e. program heap and stack - part of the page
cache on Linux? The documentation[1] of the kernel does not state that.
But the Wikipedia entry about page cache contains a graphic[2] (look at
the top right) which gives me the impression that 'malloc()' allocates
dynamic memory within the page cache.
Is it possible that the page cache serves as general foundation for
memory management on Linux? Taking into account that `mmap()` also
allows for anonymous mappings this could fit together?
I've asked this originally on Stackoverflow[3].
Thank you
Peter
[1]
https://www.kernel.org/doc/html/latest/admin-guide/mm/concepts.html#anonymous-memory
[2]
https://en.wikipedia.org/wiki/Page_cache#/media/File:The_Linux_Storage_Stack_Diagram.svg
[3] https://stackoverflow.com/q/66587345/1054324
next reply other threads:[~2021-03-12 14:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 14:43 Peter Weber [this message]
2021-03-12 15:15 ` Is anonymous memory part of the page cache on Linux? Matthew Wilcox
2021-03-12 15:41 ` Peter Weber
2021-03-12 22:45 ` Matthew Wilcox
2021-03-17 13:42 ` David Hildenbrand
2021-03-14 23:06 Wxz76
2021-03-15 0:07 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e17246e9216435e0e65b3d99cb190fab@flapflap.eu \
--to=peter.weber@flapflap.eu \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).