From: Feng Tang <feng.tang@intel.com> To: Waiman Long <longman@redhat.com>, Michal Hocko <mhocko@kernel.org> Cc: kernel test robot <rong.a.chen@intel.com>, Linus Torvalds <torvalds@linux-foundation.org>, Mike Kravetz <mike.kravetz@oracle.com>, Davidlohr Bueso <dbueso@suse.de>, Kirill Tkhai <ktkhai@virtuozzo.com>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>, Matthew Wilcox <willy@infradead.org>, Andi Kleen <ak@linux.intel.com>, Andrew Morton <akpm@linux-foundation.org>, LKML <linux-kernel@vger.kernel.org>, lkp@lists.01.org Subject: Re: [LKP] Re: [mm/hugetlb] c77c0a8ac4: will-it-scale.per_process_ops 15.9% improvement Date: Fri, 17 Jan 2020 14:56:28 +0800 Message-ID: <20200117065628.GC86012@shbuild999.sh.intel.com> (raw) In-Reply-To: <bd474ca4-9f47-0ab1-f461-513789fc074d@redhat.com> Hi Waiman and Michal, On Tue, Jan 14, 2020 at 09:57:14AM -0500, Waiman Long wrote: > On 1/14/20 4:12 AM, Michal Hocko wrote: > > On Tue 14-01-20 16:56:37, kernel test robot wrote: > >> Greeting, > >> > >> FYI, we noticed a 15.9% improvement of will-it-scale.per_process_ops due to commit: > >> > >> > >> commit: c77c0a8ac4c522638a8242fcb9de9496e3cdbb2d ("mm/hugetlb: defer freeing of huge pages if in non-task context") > >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > This is more than surprising because the patch has only changed the > > behavior for hugetlb pages freed from the (soft)interrupt context and > > that should be a very rare event. Does the test really generate a lot of > > those? > > > Yes, I have the same question. I was not expecting to see any > performance impact. We have the same question and did some further check. This is the "pagefault3" test case of will-it-scale, and is mmap/get_page/munmap test. The source code is: https://github.com/antonblanchard/will-it-scale/blob/master/tests/page_fault3.c And its running on LKP does NOT involve any hugetlb actions, as could be checking HugePages_* in /proc/meminfo. We also did another check, reverted c77c0a8ac4c5 and simply added some printk inside free_huge_page(), which can also bring 15% improvement. So one possible reason could be the commit changes the cache alignment of other kernel codes in final bzImage, which happens to hugely affect this test case. Thanks, Feng > > Cheers, > Longman > _______________________________________________ > LKP mailing list -- lkp@lists.01.org > To unsubscribe send an email to lkp-leave@lists.01.org
next prev parent reply index Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-14 8:56 kernel test robot 2020-01-14 9:12 ` Michal Hocko 2020-01-14 14:57 ` Waiman Long 2020-01-17 6:56 ` Feng Tang [this message] 2020-01-17 7:52 ` [LKP] " Michal Hocko 2020-01-17 14:05 ` Waiman Long
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=20200117065628.GC86012@shbuild999.sh.intel.com \ --to=feng.tang@intel.com \ --cc=ak@linux.intel.com \ --cc=akpm@linux-foundation.org \ --cc=aneesh.kumar@linux.ibm.com \ --cc=dbueso@suse.de \ --cc=ktkhai@virtuozzo.com \ --cc=linux-kernel@vger.kernel.org \ --cc=lkp@lists.01.org \ --cc=longman@redhat.com \ --cc=mhocko@kernel.org \ --cc=mike.kravetz@oracle.com \ --cc=rong.a.chen@intel.com \ --cc=torvalds@linux-foundation.org \ --cc=willy@infradead.org \ /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
LKML Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \ linux-kernel@vger.kernel.org public-inbox-index lkml Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git