/linux/io_uring/ |
H A D | io-wq.c | 83 atomic_t nr_running; member 133 int nr_running; member 194 atomic_dec(&acct->nr_running); in io_worker_cancel_cb() 324 atomic_inc(&acct->nr_running); in io_wq_create_worker() 333 atomic_inc(&acct->nr_running); in io_wq_inc_running() 357 atomic_dec(&acct->nr_running); in create_worker_cb() 405 atomic_dec(&acct->nr_running); in io_queue_worker_create() 418 if (!atomic_dec_and_test(&acct->nr_running)) in io_wq_dec_running() 424 atomic_inc(&acct->nr_running); in io_wq_dec_running() 790 atomic_dec(&acct->nr_running); in create_worker_cont() [all …]
|
/linux/Documentation/translations/zh_CN/scheduler/ |
H A D | sched-design-CFS.rst | 24 相同的速度并行运行,速度均为1/nr_running。举例来说,如果有两个任务正在运行,那么每个 137 当任务进入可运行状态时,被调用。它将调度实体(任务)放到红黑树中,增加nr_running变量 142 当任务不再可运行时,这个函数被调用,对应的调度实体被移出红黑树。它减少nr_running变量
|
/linux/arch/s390/appldata/ |
H A D | appldata_os.c | 64 u32 nr_running; /* number of runnable threads */ member 102 os_data->nr_running = nr_running(); in appldata_get_os_data()
|
H A D | appldata_base.c | 425 EXPORT_SYMBOL_GPL(nr_running);
|
/linux/kernel/sched/ |
H A D | fair.c | 918 if (cfs_rq->nr_running == 1) in pick_eevdf() 1253 if (cfs_rq->nr_running == 1) in update_curr() 2044 unsigned int nr_running; member 2074 if ((ns->nr_running > ns->weight) && in numa_classify() 2079 if ((ns->nr_running < ns->weight) || in numa_classify() 2134 ns->nr_running += rq->cfs.h_nr_running; in update_numa_stats() 2137 if (find_idle && idle_core < 0 && !rq->nr_running && idle_cpu(cpu)) { in update_numa_stats() 2454 src_running = env->src_stats.nr_running - 1; in task_numa_find_cpu() 2455 dst_running = env->dst_stats.nr_running + 1; in task_numa_find_cpu() 3685 cfs_rq->nr_running++; in account_entity_enqueue() [all …]
|
H A D | loadavg.c | 82 nr_active = this_rq->nr_running - adjust; in calc_load_fold_active()
|
H A D | sched.h | 653 unsigned int nr_running; member 774 u32 nr_running; member 1109 unsigned int nr_running; member 2577 return rq->cfs.nr_running > 0; in sched_fair_runnable() 2749 unsigned prev_nr = rq->nr_running; in add_nr_running() 2751 rq->nr_running = prev_nr + count; in add_nr_running() 2757 if (prev_nr < 2 && rq->nr_running >= 2) in add_nr_running() 2766 rq->nr_running -= count; in sub_nr_running()
|
H A D | syscalls.c | 209 if (rq->nr_running) in idle_cpu() 1445 if (rq->nr_running == 1 && p_rq->nr_running == 1) in yield_to()
|
H A D | core.c | 298 if (!(flags & DEQUEUE_SAVE) && rq->nr_running == 1 && in sched_core_dequeue() 1297 if (rq->nr_running != 1) in __need_bw_check() 3957 if (!cpu_rq(cpu)->nr_running) in ttwu_queue_cond() 5381 unsigned int nr_running(void) in nr_running() function 5386 sum += cpu_rq(i)->nr_running; in nr_running() 5406 return raw_rq()->nr_running == 1; in single_task_running() 6021 rq->nr_running == rq->cfs.h_nr_running)) { in __pick_next_task() 6243 if (rq_i->nr_running) { in pick_next_task() 6424 if (!rq->nr_running) /* not forced idle */ in queue_core_balance() 6700 if (!rq->nr_running && !scx_enabled()) { in __schedule() [all …]
|
H A D | debug.c | 846 SEQ_printf(m, " .%-30s: %d\n", "nr_running", cfs_rq->nr_running); in print_cfs_rq() 966 P(nr_running); in print_cpu()
|
H A D | ext.c | 2121 rq->scx.nr_running++; in enqueue_task_scx() 2217 rq->scx.nr_running--; in dequeue_task_scx() 5250 cpu, rq->scx.nr_running, rq->scx.flags, in scx_dump_state()
|
H A D | rt.c | 1035 BUG_ON(!rq->nr_running); in dequeue_top_rt_rq()
|
/linux/include/linux/sched/ |
H A D | stat.h | 20 extern unsigned int nr_running(void);
|
/linux/include/uapi/linux/ |
H A D | cgroupstats.h | 32 __u64 nr_running; /* Number of tasks running */ member
|
/linux/fs/proc/ |
H A D | loadavg.c | 24 nr_running(), nr_threads, in loadavg_proc_show()
|
/linux/Documentation/translations/zh_TW/dev-tools/ |
H A D | gdb-kernel-debugging.rst | 119 (gdb) p $lx_per_cpu("runqueues").nr_running 121 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
|
/linux/Documentation/translations/zh_CN/dev-tools/ |
H A D | gdb-kernel-debugging.rst | 123 (gdb) p $lx_per_cpu("runqueues").nr_running 125 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
|
/linux/Documentation/dev-tools/ |
H A D | gdb-kernel-debugging.rst | 130 (gdb) p $lx_per_cpu("runqueues").nr_running 132 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
|
/linux/Documentation/scheduler/ |
H A D | sched-design-CFS.rst | 23 1/nr_running speed. For example: if there are 2 tasks running, then it runs 176 increments the nr_running variable. 182 the nr_running variable.
|
/linux/kernel/ |
H A D | workqueue.c | 200 int nr_running; member 934 return !list_empty(&pool->worklist) && !pool->nr_running; in need_more_worker() 946 return !list_empty(&pool->worklist) && (pool->nr_running <= 1); in keep_working() 981 pool->nr_running--; in worker_set_flags() 1010 pool->nr_running++; in worker_clr_flags() 1053 WARN_ON_ONCE(pool->nr_workers == pool->nr_idle && pool->nr_running); in worker_enter_idle() 1400 worker->pool->nr_running++; in wq_worker_running() 1451 pool->nr_running--; in wq_worker_sleeping() 6514 pool->nr_running = 0; in unbind_workers()
|
/linux/tools/accounting/ |
H A D | getdelays.c | 264 (unsigned long long)c->nr_running, in print_cgroupstats()
|
/linux/Documentation/translations/sp_SP/scheduler/ |
H A D | sched-design-CFS.rst | 191 e incrementa la variable nr_running. 197 decrementa la variable nr_running.
|
/linux/kernel/cgroup/ |
H A D | cgroup-v1.c | 736 stats->nr_running++; in cgroupstats_build()
|