From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: akpm@linux-foundation.org
Cc: ziy@nvidia.com, shy828301@gmail.com,
baolin.wang@linux.alibaba.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] Improve the migration stats
Date: Sun, 7 Nov 2021 16:57:24 +0800 [thread overview]
Message-ID: <cover.1636275127.git.baolin.wang@linux.alibaba.com> (raw)
Hi,
According to talk with Zi Yan [1], this patch set changes the return
value of migrate_pages() to avoid returning a number which is larger
than the number of pages the users tried to migrate by move_pages() syscall.
Also fix the hugetlb migration stats and migration stats in
trace_mm_compaction_migratepages(). Please help to review. Thanks.
[1] https://lore.kernel.org/linux-mm/7E44019D-2A5D-4BA7-B4D5-00D4712F1687@nvidia.com/
Changes from RFC:
- Increase nr_thp_failed when THP is split, no matter how many subpages are
migrated successfully.
- Add reviewed-by tags.
Baolin Wang (3):
mm: migrate: Fix the return value of migrate_pages()
mm: migrate: Correct the hugetlb migration stats
mm: compaction: Fix the migration stats in
trace_mm_compaction_migratepages()
include/trace/events/compaction.h | 24 +++-----------
mm/compaction.c | 7 ++--
mm/migrate.c | 68 ++++++++++++++++++++++++++++-----------
3 files changed, 57 insertions(+), 42 deletions(-)
--
1.8.3.1
next reply other threads:[~2021-11-07 8:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 8:57 Baolin Wang [this message]
2021-11-07 8:57 ` [PATCH 1/3] mm: migrate: Fix the return value of migrate_pages() Baolin Wang
2021-11-09 18:10 ` Zi Yan
2021-11-23 18:46 ` Mike Kravetz
2021-11-24 10:30 ` Baolin Wang
2021-11-24 18:46 ` Mike Kravetz
2021-11-07 8:57 ` [PATCH 2/3] mm: migrate: Correct the hugetlb migration stats Baolin Wang
2021-11-16 4:21 ` Andrew Morton
2021-11-16 6:03 ` Baolin Wang
2021-11-23 19:25 ` Mike Kravetz
2021-11-24 10:47 ` Baolin Wang
2021-11-24 19:05 ` Mike Kravetz
2021-11-25 5:50 ` Baolin Wang
2021-11-07 8:57 ` [PATCH 3/3] mm: compaction: Fix the migration stats in trace_mm_compaction_migratepages() Baolin Wang
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=cover.1636275127.git.baolin.wang@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shy828301@gmail.com \
--cc=ziy@nvidia.com \
/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).