From: Yifan Feng <evanfengff@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Hugh Dickins <hughd@google.com>,
David Hildenbrand <david@kernel.org>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Greg Thelen <gthelen@google.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tmpfs: reset the memory policy on remount with mpol=default
Date: Sat, 28 Nov 2026 11:03:02 -0800 [thread overview]
Message-ID: <20261128190302.24895-1-evanfengff@gmail.com> (raw)
In-Reply-To: <20261127161049.aa45a628196a82f90021b0f0@linux-foundation.org>
On Fri, 27 Nov 2026 16:10:49 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
> So aiui, remounting with mpol=default "succeeds", but new file
> policies still get the old mempolicy instead of using the "process
> allocation policy"?
Yes. The remount returns 0, /proc/mounts keeps the old mpol=, and
files created after it are still allocated by the old policy. In a
2-node guest, after mount mpol=interleave:0-1 and remount,mpol=default,
a new 32 MB file was still 16 MB on each node. With the patch it is
all on the node of the writing task.
> hp2:/usr/src/mm> egrep -r "mempolicy|mpol" tools/testing/selftests/mm
I can write a selftest for the tmpfs mpol= option if that is welcome.
Thanks,
Yifan
next prev parent reply other threads:[~2026-11-28 19:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 23:00 [PATCH] tmpfs: reset the memory policy on remount with mpol=default Yifan Feng
2026-11-28 0:10 ` Andrew Morton
2026-11-28 19:03 ` Yifan Feng [this message]
2026-11-28 19:33 ` Andrew Morton
2026-11-28 0:11 ` + tmpfs-reset-the-memory-policy-on-remount-with-mpol=default.patch added to mm-new branch Andrew Morton
2026-11-29 8:36 ` David Hildenbrand (Arm)
2026-11-29 21:25 ` [-] tmpfs-reset-the-memory-policy-on-remount-with-mpol=default.patch removed from -mm tree Andrew Morton
2026-11-30 8:00 ` [PATCH] tmpfs: reset the memory policy on remount with mpol=default Baolin Wang
2026-11-30 12:21 ` 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=20261128190302.24895-1-evanfengff@gmail.com \
--to=evanfengff@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=david@kernel.org \
--cc=gthelen@google.com \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.