From: Jerome Glisse <jglisse@redhat.com>
To: lsf-pc@lists.linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [LSF/MM TOPIC] Page flags, can we free up space ?
Date: Tue, 22 Jan 2019 15:17:44 -0500 [thread overview]
Message-ID: <20190122201744.GA3939@redhat.com> (raw)
So lattely i have been looking at page flags and we are using 6 flags
for memory reclaim and compaction:
PG_referenced
PG_lru
PG_active
PG_workingset
PG_reclaim
PG_unevictable
On top of which you can add the page anonymous flag (anonymous or
share memory)
PG_anon // does not exist, lower bit of page->mapping
And also the movable flag (which alias with KSM)
PG_movable // does not exist, lower bit of page->mapping
So i would like to explore if there is a way to express the same amount
of information with less bits. My methodology is to exhaustively list
all the possible states (valid combination of above flags) and then to
see how we change from one state to another (what event trigger the change
like mlock(), page being referenced, ...) and under which rules (ie do we
hold the page lock, zone lock, ...).
My hope is that there might be someway to use less bits to express the
same thing. I am doing this because for my work on generic page write
protection (ie KSM for file back page) which i talk about last year and
want to talk about again ;) I will need to unalias the movable bit from
KSM bit.
Right now this is more a temptative ie i do not know if i will succeed,
in any case i can report on failure or success and discuss my finding to
get people opinions on the matter.
I think everyone interested in mm will be interested in this topic :)
Cheers,
Jérôme
next reply other threads:[~2019-01-22 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-22 20:17 Jerome Glisse [this message]
2019-01-22 21:44 ` [LSF/MM TOPIC] Page flags, can we free up space ? Andi Kleen
2019-01-22 23:52 ` Jerome Glisse
2019-01-23 1:56 ` Mike Kravetz
2019-01-30 11:51 ` David Hildenbrand
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=20190122201744.GA3939@redhat.com \
--to=jglisse@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.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).