From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH -V11 2/3] NUMA balancing: optimize page placement for memory tiering system
Date: Fri, 28 Jan 2022 23:24:44 +0800 [thread overview]
Message-ID: <202201282334.HfXqLBa5-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5016 bytes --]
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220128082751.593478-3-ying.huang@intel.com>
References: <20220128082751.593478-3-ying.huang@intel.com>
TO: Huang Ying <ying.huang@intel.com>
Hi Huang,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.17-rc1 next-20220128]
[cannot apply to tip/sched/core hnaz-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Huang-Ying/NUMA-balancing-optimize-memory-placement-for-memory-tiering-system/20220128-162856
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2c271fe77d52a0555161926c232cd5bc07178b39
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220128/202201282334.HfXqLBa5-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
mm/vmscan.c:3987 pgdat_balanced() warn: bitwise AND condition is false here
vim +3987 mm/vmscan.c
904d2532d3f5bf3 Huang Ying 2022-01-28 3965
e716f2eb24defb3 Mel Gorman 2017-05-03 3966 /*
e716f2eb24defb3 Mel Gorman 2017-05-03 3967 * Returns true if there is an eligible zone balanced for the request order
97a225e69a1f880 Joonsoo Kim 2020-06-03 3968 * and highest_zoneidx
e716f2eb24defb3 Mel Gorman 2017-05-03 3969 */
97a225e69a1f880 Joonsoo Kim 2020-06-03 3970 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx)
60cefed485a02bd Johannes Weiner 2012-11-29 3971 {
e716f2eb24defb3 Mel Gorman 2017-05-03 3972 int i;
e716f2eb24defb3 Mel Gorman 2017-05-03 3973 unsigned long mark = -1;
e716f2eb24defb3 Mel Gorman 2017-05-03 3974 struct zone *zone;
60cefed485a02bd Johannes Weiner 2012-11-29 3975
1c30844d2dfe272 Mel Gorman 2018-12-28 3976 /*
1c30844d2dfe272 Mel Gorman 2018-12-28 3977 * Check watermarks bottom-up as lower zones are more likely to
1c30844d2dfe272 Mel Gorman 2018-12-28 3978 * meet watermarks.
1c30844d2dfe272 Mel Gorman 2018-12-28 3979 */
97a225e69a1f880 Joonsoo Kim 2020-06-03 3980 for (i = 0; i <= highest_zoneidx; i++) {
e716f2eb24defb3 Mel Gorman 2017-05-03 3981 zone = pgdat->node_zones + i;
e716f2eb24defb3 Mel Gorman 2017-05-03 3982
e716f2eb24defb3 Mel Gorman 2017-05-03 3983 if (!managed_zone(zone))
e716f2eb24defb3 Mel Gorman 2017-05-03 3984 continue;
e716f2eb24defb3 Mel Gorman 2017-05-03 3985
e716f2eb24defb3 Mel Gorman 2017-05-03 3986 mark = high_wmark_pages(zone);
904d2532d3f5bf3 Huang Ying 2022-01-28 @3987 if (sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING &&
904d2532d3f5bf3 Huang Ying 2022-01-28 3988 numa_demotion_enabled &&
904d2532d3f5bf3 Huang Ying 2022-01-28 3989 next_demotion_node(pgdat->node_id) != NUMA_NO_NODE) {
904d2532d3f5bf3 Huang Ying 2022-01-28 3990 unsigned long promote_mark;
904d2532d3f5bf3 Huang Ying 2022-01-28 3991
904d2532d3f5bf3 Huang Ying 2022-01-28 3992 promote_mark = max(NUMA_BALANCING_PROMOTE_WATERMARK_MIN,
904d2532d3f5bf3 Huang Ying 2022-01-28 3993 mark / NUMA_BALANCING_PROMOTE_WATERMARK_DIV);
904d2532d3f5bf3 Huang Ying 2022-01-28 3994 mark += promote_mark;
904d2532d3f5bf3 Huang Ying 2022-01-28 3995 }
97a225e69a1f880 Joonsoo Kim 2020-06-03 3996 if (zone_watermark_ok_safe(zone, order, mark, highest_zoneidx))
e716f2eb24defb3 Mel Gorman 2017-05-03 3997 return true;
e716f2eb24defb3 Mel Gorman 2017-05-03 3998 }
6256c6b499a1689 Mel Gorman 2016-07-28 3999
e716f2eb24defb3 Mel Gorman 2017-05-03 4000 /*
97a225e69a1f880 Joonsoo Kim 2020-06-03 4001 * If a node has no populated zone within highest_zoneidx, it does not
e716f2eb24defb3 Mel Gorman 2017-05-03 4002 * need balancing by definition. This can happen if a zone-restricted
e716f2eb24defb3 Mel Gorman 2017-05-03 4003 * allocation tries to wake a remote kswapd.
e716f2eb24defb3 Mel Gorman 2017-05-03 4004 */
e716f2eb24defb3 Mel Gorman 2017-05-03 4005 if (mark == -1)
6256c6b499a1689 Mel Gorman 2016-07-28 4006 return true;
e716f2eb24defb3 Mel Gorman 2017-05-03 4007
e716f2eb24defb3 Mel Gorman 2017-05-03 4008 return false;
60cefed485a02bd Johannes Weiner 2012-11-29 4009 }
60cefed485a02bd Johannes Weiner 2012-11-29 4010
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-28 15:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 15:24 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-28 8:27 [PATCH -V11 0/3] NUMA balancing: optimize memory placement for memory tiering system Huang Ying
2022-01-28 8:27 ` [PATCH -V11 2/3] NUMA balancing: optimize page " Huang Ying
2022-02-07 17:47 ` Johannes Weiner
2022-02-09 5:24 ` Huang, Ying
2022-02-17 16:26 ` Johannes Weiner
2022-02-18 2:15 ` Huang, Ying
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=202201282334.HfXqLBa5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.