From: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: "Tang Chen" <tangchen@cn.fujitsu.com>,
linux-mm <linux-mm@kvack.org>,
"\"Ishimatsu, Yasuaki/石松 靖章\"" <isimatu.yasuaki@jp.fujitsu.com>
Subject: Re: [PATCH v3 2/2] mem-hotplug: Reset node present pages when hot-adding a new pgdat.
Date: Wed, 19 Nov 2014 01:48:12 +0900 [thread overview]
Message-ID: <546B784C.4090503@jp.fujitsu.com> (raw)
In-Reply-To: <1415781434-20230-3-git-send-email-tangchen@cn.fujitsu.com>
(2014/11/12 17:37), Tang Chen wrote:
> When memory is hot-added, all the memory is in offline state. So
> clear all zones' present_pages because they will be updated in
> online_pages() and offline_pages(). Otherwise, /proc/zoneinfo
> will corrupt:
>
> When the memory of node2 is offline:
> # cat /proc/zoneinfo
> ......
> Node 2, zone Movable
> ......
> spanned 8388608
> present 8388608
> managed 0
>
> When we online memory on node2:
> # cat /proc/zoneinfo
> ......
> Node 2, zone Movable
> ......
> spanned 8388608
> present 16777216
> managed 8388608
>
> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
> Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
> Cc: stable@vger.kernel.org # 3.16+
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2014-11-18 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 8:37 [PATCH v3 0/2] Fix node meminfo and zoneinfo corruption Tang Chen
2014-11-12 8:37 ` [PATCH v3 1/2] mem-hotplug: Reset node managed pages when hot-adding a new pgdat Tang Chen
2014-11-18 16:46 ` Kamezawa Hiroyuki
2014-11-12 8:37 ` [PATCH v3 2/2] mem-hotplug: Reset node present " Tang Chen
2014-11-18 16:48 ` Kamezawa Hiroyuki [this message]
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=546B784C.4090503@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=tangchen@cn.fujitsu.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