All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC 15/16] sched/fair: Account kthread runtime debt for CFS bandwidth
Date: Thu, 6 Jan 2022 14:47:17 +0800	[thread overview]
Message-ID: <202201061412.xko6OiVF-lkp@intel.com> (raw)
In-Reply-To: <20220106004656.126790-16-daniel.m.jordan@oracle.com>

Hi Daniel,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 7d2a07b769330c34b4deabeed939325c77a7ec2f]

url:    https://github.com/0day-ci/linux/commits/Daniel-Jordan/padata-vfio-sched-Multithreaded-VFIO-page-pinning/20220106-084934
base:   7d2a07b769330c34b4deabeed939325c77a7ec2f
config: hexagon-buildonly-randconfig-r001-20220105 (https://download.01.org/0day-ci/archive/20220106/202201061412.xko6OiVF-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe09dc6e525109e3cd570cc5182ce568be13)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/4c1eb3c284a7aac84110e319700d89e847dd0874
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Daniel-Jordan/padata-vfio-sched-Multithreaded-VFIO-page-pinning/20220106-084934
        git checkout 4c1eb3c284a7aac84110e319700d89e847dd0874
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:3282:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
           struct rq *rq;
                      ^
>> kernel/sched/core.c:10199:6: warning: no previous prototype for function 'cpu_cgroup_remote_begin' [-Wmissing-prototypes]
   void cpu_cgroup_remote_begin(struct task_struct *p,
        ^
   kernel/sched/core.c:10199:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void cpu_cgroup_remote_begin(struct task_struct *p,
   ^
   static 
>> kernel/sched/core.c:10216:6: warning: no previous prototype for function 'cpu_cgroup_remote_charge' [-Wmissing-prototypes]
   void cpu_cgroup_remote_charge(struct task_struct *p,
        ^
   kernel/sched/core.c:10216:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void cpu_cgroup_remote_charge(struct task_struct *p,
   ^
   static 
   kernel/sched/core.c:3272:20: warning: unused function 'rq_has_pinned_tasks' [-Wunused-function]
   static inline bool rq_has_pinned_tasks(struct rq *rq)
                      ^
   kernel/sched/core.c:5123:20: warning: unused function 'sched_tick_start' [-Wunused-function]
   static inline void sched_tick_start(int cpu) { }
                      ^
   kernel/sched/core.c:5124:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
   static inline void sched_tick_stop(int cpu) { }
                      ^
   kernel/sched/core.c:5853:20: warning: unused function 'sched_core_cpu_starting' [-Wunused-function]
   static inline void sched_core_cpu_starting(unsigned int cpu) {}
                      ^
   kernel/sched/core.c:5854:20: warning: unused function 'sched_core_cpu_deactivate' [-Wunused-function]
   static inline void sched_core_cpu_deactivate(unsigned int cpu) {}
                      ^
   kernel/sched/core.c:5855:20: warning: unused function 'sched_core_cpu_dying' [-Wunused-function]
   static inline void sched_core_cpu_dying(unsigned int cpu) {}
                      ^
   9 warnings generated.


vim +/cpu_cgroup_remote_begin +10199 kernel/sched/core.c

 10185	
 10186	/**
 10187	 * cpu_cgroup_remote_begin - begin charging p's CPU usage to a remote css
 10188	 * @p: the kernel thread whose CPU usage should be accounted
 10189	 * @css: the css to which the CPU usage should be accounted
 10190	 *
 10191	 * Begin charging a kernel thread's CPU usage to a remote (non-root) task group
 10192	 * to account CPU time that the kernel thread spends working on behalf of the
 10193	 * group.  Pair with at least one subsequent call to cpu_cgroup_remote_charge()
 10194	 * to complete the charge.
 10195	 *
 10196	 * Supports CFS bandwidth and cgroup2 CPU accounting stats but not weight-based
 10197	 * control for now.
 10198	 */
 10199	void cpu_cgroup_remote_begin(struct task_struct *p,
 10200				     struct cgroup_subsys_state *css)
 10201	{
 10202		if (p->sched_class == &fair_sched_class)
 10203			cpu_cgroup_remote_begin_fair(p, css_tg(css));
 10204	}
 10205	
 10206	/**
 10207	 * cpu_cgroup_remote_charge - account p's CPU usage to a remote css
 10208	 * @p: the kernel thread whose CPU usage should be accounted
 10209	 * @css: the css to which the CPU usage should be accounted
 10210	 *
 10211	 * Account a kernel thread's CPU usage to a remote (non-root) task group.  Pair
 10212	 * with a previous call to cpu_cgroup_remote_begin() with the same @p and @css.
 10213	 * This may be invoked multiple times after the initial
 10214	 * cpu_cgroup_remote_begin() to account additional CPU usage.
 10215	 */
 10216	void cpu_cgroup_remote_charge(struct task_struct *p,
 10217				      struct cgroup_subsys_state *css)
 10218	{
 10219		if (p->sched_class == &fair_sched_class)
 10220			cpu_cgroup_remote_charge_fair(p, css_tg(css));
 10221	}
 10222	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC 15/16] sched/fair: Account kthread runtime debt for CFS bandwidth
Date: Thu, 06 Jan 2022 14:47:17 +0800	[thread overview]
Message-ID: <202201061412.xko6OiVF-lkp@intel.com> (raw)
In-Reply-To: <20220106004656.126790-16-daniel.m.jordan@oracle.com>

[-- Attachment #1: Type: text/plain, Size: 5485 bytes --]

Hi Daniel,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 7d2a07b769330c34b4deabeed939325c77a7ec2f]

url:    https://github.com/0day-ci/linux/commits/Daniel-Jordan/padata-vfio-sched-Multithreaded-VFIO-page-pinning/20220106-084934
base:   7d2a07b769330c34b4deabeed939325c77a7ec2f
config: hexagon-buildonly-randconfig-r001-20220105 (https://download.01.org/0day-ci/archive/20220106/202201061412.xko6OiVF-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe09dc6e525109e3cd570cc5182ce568be13)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/4c1eb3c284a7aac84110e319700d89e847dd0874
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Daniel-Jordan/padata-vfio-sched-Multithreaded-VFIO-page-pinning/20220106-084934
        git checkout 4c1eb3c284a7aac84110e319700d89e847dd0874
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:3282:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
           struct rq *rq;
                      ^
>> kernel/sched/core.c:10199:6: warning: no previous prototype for function 'cpu_cgroup_remote_begin' [-Wmissing-prototypes]
   void cpu_cgroup_remote_begin(struct task_struct *p,
        ^
   kernel/sched/core.c:10199:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void cpu_cgroup_remote_begin(struct task_struct *p,
   ^
   static 
>> kernel/sched/core.c:10216:6: warning: no previous prototype for function 'cpu_cgroup_remote_charge' [-Wmissing-prototypes]
   void cpu_cgroup_remote_charge(struct task_struct *p,
        ^
   kernel/sched/core.c:10216:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void cpu_cgroup_remote_charge(struct task_struct *p,
   ^
   static 
   kernel/sched/core.c:3272:20: warning: unused function 'rq_has_pinned_tasks' [-Wunused-function]
   static inline bool rq_has_pinned_tasks(struct rq *rq)
                      ^
   kernel/sched/core.c:5123:20: warning: unused function 'sched_tick_start' [-Wunused-function]
   static inline void sched_tick_start(int cpu) { }
                      ^
   kernel/sched/core.c:5124:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
   static inline void sched_tick_stop(int cpu) { }
                      ^
   kernel/sched/core.c:5853:20: warning: unused function 'sched_core_cpu_starting' [-Wunused-function]
   static inline void sched_core_cpu_starting(unsigned int cpu) {}
                      ^
   kernel/sched/core.c:5854:20: warning: unused function 'sched_core_cpu_deactivate' [-Wunused-function]
   static inline void sched_core_cpu_deactivate(unsigned int cpu) {}
                      ^
   kernel/sched/core.c:5855:20: warning: unused function 'sched_core_cpu_dying' [-Wunused-function]
   static inline void sched_core_cpu_dying(unsigned int cpu) {}
                      ^
   9 warnings generated.


vim +/cpu_cgroup_remote_begin +10199 kernel/sched/core.c

 10185	
 10186	/**
 10187	 * cpu_cgroup_remote_begin - begin charging p's CPU usage to a remote css
 10188	 * @p: the kernel thread whose CPU usage should be accounted
 10189	 * @css: the css to which the CPU usage should be accounted
 10190	 *
 10191	 * Begin charging a kernel thread's CPU usage to a remote (non-root) task group
 10192	 * to account CPU time that the kernel thread spends working on behalf of the
 10193	 * group.  Pair with at least one subsequent call to cpu_cgroup_remote_charge()
 10194	 * to complete the charge.
 10195	 *
 10196	 * Supports CFS bandwidth and cgroup2 CPU accounting stats but not weight-based
 10197	 * control for now.
 10198	 */
 10199	void cpu_cgroup_remote_begin(struct task_struct *p,
 10200				     struct cgroup_subsys_state *css)
 10201	{
 10202		if (p->sched_class == &fair_sched_class)
 10203			cpu_cgroup_remote_begin_fair(p, css_tg(css));
 10204	}
 10205	
 10206	/**
 10207	 * cpu_cgroup_remote_charge - account p's CPU usage to a remote css
 10208	 * @p: the kernel thread whose CPU usage should be accounted
 10209	 * @css: the css to which the CPU usage should be accounted
 10210	 *
 10211	 * Account a kernel thread's CPU usage to a remote (non-root) task group.  Pair
 10212	 * with a previous call to cpu_cgroup_remote_begin() with the same @p and @css.
 10213	 * This may be invoked multiple times after the initial
 10214	 * cpu_cgroup_remote_begin() to account additional CPU usage.
 10215	 */
 10216	void cpu_cgroup_remote_charge(struct task_struct *p,
 10217				      struct cgroup_subsys_state *css)
 10218	{
 10219		if (p->sched_class == &fair_sched_class)
 10220			cpu_cgroup_remote_charge_fair(p, css_tg(css));
 10221	}
 10222	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  parent reply	other threads:[~2022-01-06  6:48 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-06  0:46 [RFC 00/16] padata, vfio, sched: Multithreaded VFIO page pinning Daniel Jordan
2022-01-06  0:46 ` [RFC 01/16] padata: Remove __init from multithreading functions Daniel Jordan
2022-01-06  0:46 ` [RFC 02/16] padata: Return first error from a job Daniel Jordan
2022-01-06  0:46 ` [RFC 03/16] padata: Add undo support Daniel Jordan
2022-01-06  0:46 ` [RFC 04/16] padata: Detect deadlocks between main and helper threads Daniel Jordan
2022-01-06  0:46 ` [RFC 05/16] vfio/type1: Pass mm to vfio_pin_pages_remote() Daniel Jordan
2022-01-06  0:46 ` [RFC 06/16] vfio/type1: Refactor dma map removal Daniel Jordan
2022-01-06  0:46 ` [RFC 07/16] vfio/type1: Parallelize vfio_pin_map_dma() Daniel Jordan
2022-01-06  0:46 ` [RFC 08/16] vfio/type1: Cache locked_vm to ease mmap_lock contention Daniel Jordan
2022-01-06  0:53   ` Jason Gunthorpe
2022-01-06  1:17     ` Daniel Jordan
2022-01-06 12:34       ` Jason Gunthorpe
2022-01-06 21:05         ` Alex Williamson
2022-01-07  0:19           ` Jason Gunthorpe
2022-01-07  3:06             ` Daniel Jordan
2022-01-07 15:18               ` Jason Gunthorpe
2022-01-07 16:39                 ` Daniel Jordan
2022-01-06  0:46 ` [RFC 09/16] padata: Use kthreads in do_multithreaded Daniel Jordan
2022-01-06  0:46 ` [RFC 10/16] padata: Helpers should respect main thread's CPU affinity Daniel Jordan
2022-01-06  0:46 ` [RFC 11/16] padata: Cap helpers started to online CPUs Daniel Jordan
2022-01-06  0:46 ` [RFC 12/16] sched, padata: Bound max threads with max_cfs_bandwidth_cpus() Daniel Jordan
2022-01-06  6:06   ` kernel test robot
2022-01-06 11:31   ` kernel test robot
2022-01-06  0:46 ` [RFC 13/16] padata: Run helper threads at MAX_NICE Daniel Jordan
2022-01-06  0:46 ` [RFC 14/16] padata: Nice helper threads one by one to prevent starvation Daniel Jordan
2022-01-06  0:46 ` [RFC 15/16] sched/fair: Account kthread runtime debt for CFS bandwidth Daniel Jordan
2022-01-06  6:47   ` kernel test robot
2022-01-06  6:47   ` kernel test robot [this message]
2022-01-06  6:47     ` kernel test robot
2022-01-11 11:58   ` Peter Zijlstra
2022-01-11 16:29     ` Daniel Jordan
2022-01-12 20:18       ` Tejun Heo
2022-01-13 21:08         ` Daniel Jordan
2022-01-13 21:11           ` Daniel Jordan
2022-01-14  9:31   ` Peter Zijlstra
2022-01-14  9:40     ` Peter Zijlstra
2022-01-14 16:38       ` Tejun Heo
2022-01-18 17:40       ` Daniel Jordan
2022-01-14 16:30     ` Tejun Heo
2022-01-18 17:32     ` Daniel Jordan
2022-01-06  0:46 ` [RFC 16/16] sched/fair: Consider kthread debt in cputime Daniel Jordan
2022-01-06  1:13 ` [RFC 00/16] padata, vfio, sched: Multithreaded VFIO page pinning Jason Gunthorpe
2022-01-07  3:03   ` Daniel Jordan
2022-01-07 17:12     ` Jason Gunthorpe
2022-01-10 22:27       ` Daniel Jordan
2022-01-11  0:17         ` Jason Gunthorpe
2022-01-11 16:20           ` Daniel Jordan

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=202201061412.xko6OiVF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel.m.jordan@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    /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.