From: Yang Yanchao <yangyanchao6@huawei.com>
To: <linux-mm@kvack.org>
Cc: <yangyanchao6@huawei.com>, <wuxu.wu@huawei.com>
Subject: The process hangs during memory-hotplug.
Date: Sun, 13 Feb 2022 19:07:03 +0800 [thread overview]
Message-ID: <20220213110703.2008-1-yangyanchao6@huawei.com> (raw)
Hello,
I find a hanging issue during memory-hotplug on kernel-4.18.
Repetition steps:
1. malloc for all system memory, write 'x', then free
2. for each removable memory block:
echo offline > /sys/devices/system/memory/memoryXXX/state
Then during the offline process, there is a high probability of being stuck for more than 20 minutes to five hours.
cat /sys/ Device/system/Memory/memoryXXX/state
The status is "going-offline"
I try to understand it by adding some print to the kernel.The discovery process can't exit in this loop:
__offline_pages
do_migrate_range
migrate_pages
unmap_and_move
move_to_new_page
fallback_migrate_page --> return EAGAIN
I try to clear the cache, but it don't seems to solve the problem.
echo 3 > /proc/sys/vm/drop_caches
Can I fix this problem with other Settings? Or can I see why it's stuck?
System configuration information:
Use physical machines instead of virtual machines
[root@localhost ~]# free -h
total used free shared buff/cache available
Mem: 502Gi 201Gi 300Gi 10Mi 172Mi 299Gi
Swap: 4.0Gi 0B 4.0Gi
[root@localhost ~]# uname -i
x86_64
Regards,
Yang Yanchao
next reply other threads:[~2022-02-13 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-13 11:07 Yang Yanchao [this message]
2022-02-13 12:24 ` Matthew Wilcox
2022-02-14 11:55 ` 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=20220213110703.2008-1-yangyanchao6@huawei.com \
--to=yangyanchao6@huawei.com \
--cc=linux-mm@kvack.org \
--cc=wuxu.wu@huawei.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