Home
last modified time | relevance | path

Searched refs:nr_running (Results 1 – 23 of 23) sorted by relevance

/linux/io_uring/
H A Dio-wq.c83 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 Dsched-design-CFS.rst24 相同的速度并行运行,速度均为1/nr_running。举例来说,如果有两个任务正在运行,那么每个
137 当任务进入可运行状态时,被调用。它将调度实体(任务)放到红黑树中,增加nr_running变量
142 当任务不再可运行时,这个函数被调用,对应的调度实体被移出红黑树。它减少nr_running变量
/linux/arch/s390/appldata/
H A Dappldata_os.c64 u32 nr_running; /* number of runnable threads */ member
102 os_data->nr_running = nr_running(); in appldata_get_os_data()
H A Dappldata_base.c425 EXPORT_SYMBOL_GPL(nr_running);
/linux/kernel/sched/
H A Dfair.c918 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 Dloadavg.c82 nr_active = this_rq->nr_running - adjust; in calc_load_fold_active()
H A Dsched.h653 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 Dsyscalls.c209 if (rq->nr_running) in idle_cpu()
1445 if (rq->nr_running == 1 && p_rq->nr_running == 1) in yield_to()
H A Dcore.c298 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 Ddebug.c846 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 Dext.c2121 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 Drt.c1035 BUG_ON(!rq->nr_running); in dequeue_top_rt_rq()
/linux/include/linux/sched/
H A Dstat.h20 extern unsigned int nr_running(void);
/linux/include/uapi/linux/
H A Dcgroupstats.h32 __u64 nr_running; /* Number of tasks running */ member
/linux/fs/proc/
H A Dloadavg.c24 nr_running(), nr_threads, in loadavg_proc_show()
/linux/Documentation/translations/zh_TW/dev-tools/
H A Dgdb-kernel-debugging.rst119 (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 Dgdb-kernel-debugging.rst123 (gdb) p $lx_per_cpu("runqueues").nr_running
125 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
/linux/Documentation/dev-tools/
H A Dgdb-kernel-debugging.rst130 (gdb) p $lx_per_cpu("runqueues").nr_running
132 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
/linux/Documentation/scheduler/
H A Dsched-design-CFS.rst23 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 Dworkqueue.c200 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 Dgetdelays.c264 (unsigned long long)c->nr_running, in print_cgroupstats()
/linux/Documentation/translations/sp_SP/scheduler/
H A Dsched-design-CFS.rst191 e incrementa la variable nr_running.
197 decrementa la variable nr_running.
/linux/kernel/cgroup/
H A Dcgroup-v1.c736 stats->nr_running++; in cgroupstats_build()