From: Pavel Tatashin <pasha.tatashin@oracle.com>
To: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Steve Sistare <steven.sistare@oracle.com>,
Daniel Jordan <daniel.m.jordan@oracle.com>,
m.mizuma@jp.fujitsu.com,
Andrew Morton <akpm@linux-foundation.org>,
Michal Hocko <mhocko@suse.com>,
Catalin Marinas <catalin.marinas@arm.com>,
AKASHI Takahiro <takahiro.akashi@linaro.org>,
Gioh Kim <gi-oh.kim@profitbricks.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
baiyaowei@cmss.chinamobile.com,
Wei Yang <richard.weiyang@gmail.com>,
Paul Burton <paul.burton@mips.com>,
Miles Chen <miles.chen@mediatek.com>,
Vlastimil Babka <vbabka@suse.cz>, Mel Gorman <mgorman@suse.de>,
Johannes Weiner <hannes@cmpxchg.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [PATCH v3 1/1] mm: initialize pages on demand during boot
Date: Wed, 14 Feb 2018 09:16:53 -0500 [thread overview]
Message-ID: <CAOAebxuwn0hvp7Rwv5nFDy=POUJf81X=xVEjM6MBEy6nzaNYgQ@mail.gmail.com> (raw)
In-Reply-To: <20180214050843.GA2811@jagdpanzerIV>
Hi Sergey,
Thank you for noticing this! I will send out an updated patch soon.
Pavel
On Wed, Feb 14, 2018 at 12:08 AM, Sergey Senozhatsky
<sergey.senozhatsky.work@gmail.com> wrote:
> On (02/09/18 14:22), Pavel Tatashin wrote:
> [..]
>> +/*
>> + * If this zone has deferred pages, try to grow it by initializing enough
>> + * deferred pages to satisfy the allocation specified by order, rounded up to
>> + * the nearest PAGES_PER_SECTION boundary. So we're adding memory in increments
>> + * of SECTION_SIZE bytes by initializing struct pages in increments of
>> + * PAGES_PER_SECTION * sizeof(struct page) bytes.
>> + *
>> + * Return true when zone was grown by at least number of pages specified by
>> + * order. Otherwise return false.
>> + *
>> + * Note: We use noinline because this function is needed only during boot, and
>> + * it is called from a __ref function _deferred_grow_zone. This way we are
>> + * making sure that it is not inlined into permanent text section.
>> + */
>> +static noinline bool __init
>> +deferred_grow_zone(struct zone *zone, unsigned int order)
>> +{
>> + int zid = zone_idx(zone);
>> + int nid = zone->node;
>
> ^^^^^^^^^
>
> Should be CONFIG_NUMA dependent
>
> struct zone {
> ...
> #ifdef CONFIG_NUMA
> int node;
> #endif
> ...
>
> -ss
>
> --
> 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>
--
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>
next prev parent reply other threads:[~2018-02-14 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 19:22 [PATCH v3 0/1] " Pavel Tatashin
2018-02-09 19:22 ` [PATCH v3 1/1] mm: " Pavel Tatashin
2018-02-09 20:36 ` Andrew Morton
2018-02-14 5:08 ` Sergey Senozhatsky
2018-02-14 14:16 ` Pavel Tatashin [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-02-09 17:27 [PATCH v3 0/1] " Pavel Tatashin
2018-02-09 17:27 ` [PATCH v3 1/1] mm: " Pavel Tatashin
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='CAOAebxuwn0hvp7Rwv5nFDy=POUJf81X=xVEjM6MBEy6nzaNYgQ@mail.gmail.com' \
--to=pasha.tatashin@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=baiyaowei@cmss.chinamobile.com \
--cc=catalin.marinas@arm.com \
--cc=daniel.m.jordan@oracle.com \
--cc=gi-oh.kim@profitbricks.com \
--cc=hannes@cmpxchg.org \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=m.mizuma@jp.fujitsu.com \
--cc=mgorman@suse.de \
--cc=mhocko@suse.com \
--cc=miles.chen@mediatek.com \
--cc=paul.burton@mips.com \
--cc=richard.weiyang@gmail.com \
--cc=sergey.senozhatsky.work@gmail.com \
--cc=steven.sistare@oracle.com \
--cc=takahiro.akashi@linaro.org \
--cc=vbabka@suse.cz \
/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