From: David Hildenbrand <david@redhat.com>
To: "lipeifeng@oppo.com" <lipeifeng@oppo.com>,
Vlastimil Babka <vbabka@suse.cz>,
peifengl55 <peifengl55@gmail.com>,
schwidefsky <schwidefsky@de.ibm.com>,
"heiko.carstens" <heiko.carstens@de.ibm.com>,
zhangshiming <zhangshiming@oppo.com>,
zhouhuacai <zhouhuacai@oppo.com>,
guoweichao <guoweichao@oppo.com>, guojian <guojian@oppo.com>
Cc: linux-s390 <linux-s390@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>
Subject: Re: [RFC] mm: support multi_freearea to the reduction of external fragmentation
Date: Tue, 27 Apr 2021 14:46:06 +0200 [thread overview]
Message-ID: <9808e36a-9e4e-d1e2-da49-beb567681a8b@redhat.com> (raw)
In-Reply-To: <20210426181947189100132@oppo.com>
On 26.04.21 12:19, lipeifeng@oppo.com wrote:
> Hi David Hildenbrand <mailto:david@redhat.com>:
>
> >> And you don't mention what the baseline configuration was. For example,
> >> how was compaction configured?
> >> Just to clarify, what is monkey?
> >> Monkey HTTP server? MonkeyTest disk benchmark? UI/Application Exerciser
> >> Monkey?
> -------------------------------------------------------------------------------------
> I am sorry that i didn't give a clear explanation about Monkey.
> It meant "UI/Application Exerciser Monkey" from google.
>
> Excuse me, let me introduce our test:
>
Thanks for more details on the test.
> 1. record COMPACT_STALL
> We tested the patch on linux-4.4/linux-4.9/linux-4.14/linux-4.19 and the
> results shows that the patch is effective in reducing COMPACTSTALL.
> - monkey for 12 hours.
> - record COMPACTSTALL after test.
>
> Test-result: reduced COMPACTSTALL by 95.6% with the patch.
> (the machine with 4 gigabytes of physical memery and in linux-4.19.)
> ---------------------------------
> | COMPACTSTALL
> ---------------------------------
> ori | 2189
> ---------------------------------
> optimization | 95
> ---------------------------------
>
> I fully agree with the value of compaction, but compaction also bring cpu
> consumption and will increase the time of alloc_stall. So if we can let more
> free high-orders-pages in buddy instead of signal pages, it will decrease
> COMPACT_STALL and speed up memory allocation.
Okay, but then I assume the target goal of your patch set is to minimize
CPU consumption/allocation stall time when allocating larger order pages.
Currently you state "the probablity of high-order-pages allocation would
be increased significantly", but I assume that's then not 100% correct.
What you measure is the stall time to allocate higher order pages, not
that you can allocate them.
>
> 2. record the speed of the high-orders-pages allocation(order=4 and
> order = 8)
> Before and after optimization, we tested the speed of the
> high-orders-pages allocation
> after 120-hours-Monkey in 10 Android mobile phones. and the result show that
> the speed has been increased by more than 18%.
>
> Also, we do some test designed by us:
> (the machine with 4 gigabytes of physical memery and in linux-4.19.)
> model the usage of users, and constantly start and
> operate the diffrent application for 120h, and we record COMPACT_STALL
> is decreased by
> 90+% and speed of the high-orders-pages is increaed by 15+%.
Okay, again, this is then some optimization for allocation speed; which
makes it less attractive IMHO (at least for more invasive changes),
because I suspect this mostly helps in corner cases (Monkey benchmarks
corner cases AFAIU).
>
> and I have some question, i hope you can guide me if when you are free.
> 1) What is the compaction configured?
> Dost it meant the members in zone? like as follows:
> unsigned int compact_considered;
> unsigned int compact_defer_shift;
> int compact_order_failed;
> bool compact_blockskip_failed;
> Or the some Macro variable? like as follows:
> PAGE_ALLOC_COSTLY_ORDER = 3
> MIN_COMPACT_PRIORITY = 1
> MAX_COMPACT_RETRIES = 16
>
Rather if you have proactive compaction
(/proc/sys/vm/compaction_proactiveness). But I assume because you're
messing with older kernels, that you didn't compare against that yet.
Would be worth a comparison.
>>> 1) multi freearea (which might
> >> be problematic with sparcity)
> 2) Can you pls tell me what is soarcity and what is the impact of this?
> and whether there are some documents about it?
Essentially CONFIG_SPARSEMEM, whereby we can have huge holes in physical
memory layout and memory areas coming/going with memory hot(un)plug.
Usually we manage all metadata per section. For example, pageblocks are
allocated per section. We avoid arrays that depend on the
initial/maximum physical memory size.
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2021-04-27 12:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-14 2:38 [RFC] mm: support multi_freearea to the reduction of external fragmentation lipeifeng
2021-04-16 11:06 ` Vlastimil Babka
2021-04-22 9:29 ` David Hildenbrand
[not found] ` <2021042611194631963076@oppo.com>
2021-04-26 8:37 ` David Hildenbrand
[not found] ` <20210426181947189100132@oppo.com>
2021-04-27 12:46 ` David Hildenbrand [this message]
[not found] ` <2021042812031720737751@oppo.com>
2021-04-28 9:04 ` David Hildenbrand
[not found] ` <2021041910374593320011@oppo.com>
2021-04-22 9:37 ` 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=9808e36a-9e4e-d1e2-da49-beb567681a8b@redhat.com \
--to=david@redhat.com \
--cc=guojian@oppo.com \
--cc=guoweichao@oppo.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=lipeifeng@oppo.com \
--cc=peifengl55@gmail.com \
--cc=schwidefsky@de.ibm.com \
--cc=vbabka@suse.cz \
--cc=zhangshiming@oppo.com \
--cc=zhouhuacai@oppo.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