Home
last modified time | relevance | path

Searched refs:nice (Results 1 – 25 of 92) sorted by relevance

1234

/linux/Documentation/translations/zh_CN/scheduler/
H A Dsched-nice-design.rst4 :Original: Documentation/scheduler/sched-nice-design.rst
11 调度器nice值设计
14 本文档解释了新的Linux调度器中修改和精简后的nice级别的实现思路。
16 Linux的nice级别总是非常脆弱,人们持续不断地缠着我们,让nice +19的任务占用
20 nice级别的支持在历史上是与时间片长度耦合的,而时间片单位是由HZ滴答驱动的,
23 在O(1)调度器中(2003年),我们改变了负的nice级别,使它们比2.4内核更强
24 (人们对这一变化很满意),而且我们还故意校正了线性时间片准则,使得nice +19
39 -*----------------------------------*-----> [nice level]
51 nice +19级别运行数量颇多的应用程序)。
53 因此,对于HZ=1000,我们将nice +19改为5毫秒,因为这感觉像是正确的最小
[all …]
H A Dsched-energy.rst248 b. 所有任务,不管它们的nice值是多大,都应该被提供了足够多的CPU算力。
254 又回到了在CPU密集的条件下基于负载的算法做负载均衡。这更好地尊重了任务的nice值。
H A Dindex.rst29 sched-nice-design
/linux/Documentation/scheduler/
H A Dsched-nice-design.rst6 nice-levels implementation in the new Linux scheduler.
9 pestered us to make nice +19 tasks use up much less CPU time.
12 scheduler, (otherwise we'd have done it long ago) because nice level
16 In the O(1) scheduler (in 2003) we changed negative nice levels to be
19 rule so that nice +19 level would be _exactly_ 1 jiffy. To better
34 -*----------------------------------*-----> [nice level]
49 people were running number crunching apps at nice +19.)
51 So for HZ=1000 we changed nice +19 to 5msecs, because that felt like the
53 But the fundamental HZ-sensitive property for nice+19 still remained,
54 and we never got a single complaint about nice +19 being too _weak_ in
[all …]
/linux/kernel/sched/
H A Dautogroup.c233 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument
240 if (nice < MIN_NICE || nice > MAX_NICE) in proc_sched_autogroup_set_nice()
243 err = security_task_setnice(current, nice); in proc_sched_autogroup_set_nice()
247 if (nice < 0 && !can_nice(current, nice)) in proc_sched_autogroup_set_nice()
257 idx = array_index_nospec(nice + 20, 40); in proc_sched_autogroup_set_nice()
263 ag->nice = nice; in proc_sched_autogroup_set_nice()
279 seq_printf(m, "/autogroup-%ld nice %d\n", ag->id, ag->nice); in proc_sched_autogroup_show_task()
H A Dsyscalls.c19 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument
28 prio = NICE_TO_PRIO(nice); in __normal_prio()
65 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument
69 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice()
84 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
89 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
105 static bool is_nice_reduction(const struct task_struct *p, const int nice) in is_nice_reduction() argument
108 int nice_rlim = nice_to_rlimit(nice); in is_nice_reduction()
118 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument
120 return is_nice_reduction(p, nice) || capable(CAP_SYS_NICE); in can_nice()
[all …]
H A Dautogroup.h19 int nice; member
/linux/include/linux/sched/
H A Dprio.h27 #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO) argument
33 static inline long nice_to_rlimit(long nice) in nice_to_rlimit() argument
35 return (MAX_NICE - nice + 1); in nice_to_rlimit()
H A Dautogroup.h18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
/linux/Documentation/translations/zh_CN/core-api/
H A Dworkqueue.rst577 pool[00] ref= 1 nice= 0 idle/workers= 4/ 4 cpu= 0
578 pool[01] ref= 1 nice=-20 idle/workers= 2/ 2 cpu= 0
579 pool[02] ref= 1 nice= 0 idle/workers= 4/ 4 cpu= 1
580 pool[03] ref= 1 nice=-20 idle/workers= 2/ 2 cpu= 1
581 pool[04] ref= 1 nice= 0 idle/workers= 4/ 4 cpu= 2
582 pool[05] ref= 1 nice=-20 idle/workers= 2/ 2 cpu= 2
583 pool[06] ref= 1 nice= 0 idle/workers= 3/ 3 cpu= 3
584 pool[07] ref= 1 nice=-20 idle/workers= 2/ 2 cpu= 3
585 pool[08] ref=42 nice= 0 idle/workers= 6/ 6 cpus=0000000f
586 pool[09] ref=28 nice= 0 idle/workers= 3/ 3 cpus=00000003
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.c1024 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
1027 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
1030 while (*nice) in text_map()
1031 *p++ = *nice++; in text_map()
1035 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
1038 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info()
1040 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
1043 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
1044 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
1046 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
[all …]
/linux/Documentation/block/
H A Dioprio.rst9 The io priority feature enables users to io nice processes or process groups,
32 to the cpu nice levels just more coarsely implemented. 0 is the highest
33 BE prio level, 7 is the lowest. The mapping between cpu nice level and io
34 nice level is determined as: io_nice = (cpu_nice + 20) / 5.
/linux/Documentation/fb/
H A Dpvr2fb.rst10 * It provides a nice large console (128 cols + 48 lines with 1024x768)
30 SUN12x22 font which is very nice at high resolutions.
H A Dgxfb.rst11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
H A Dlxfb.rst11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
/linux/drivers/parport/
H A DTODO-parport9 a) ECP support would be nice. This can only work if both the port and
/linux/drivers/leds/
H A DTODO67 It would be also nice to have useful listing mode -- name, type,
74 ethernet interface would be nice.
/linux/Documentation/cpu-freq/
H A Dindex.rst10 fly. This is a nice method to save battery power, because the lower
/linux/kernel/
H A Dworkqueue.c1239 int high = pool->attrs->nice == HIGHPRI_NICE_LEVEL ? 1 : 0; in bh_pool_irq_work()
1254 if (pool->attrs->nice == HIGHPRI_NICE_LEVEL) in kick_bh_pool()
2807 pool->attrs->nice < 0 ? "H" : ""); in format_worker_id()
2866 set_user_nice(worker->task, pool->attrs->nice); in create_worker()
3768 if (pool->attrs->nice == HIGHPRI_NICE_LEVEL) in drain_dead_softirq_workfn()
3800 if (pool->attrs->nice == HIGHPRI_NICE_LEVEL) in workqueue_softirq_dead()
4775 to->nice = from->nice; in copy_workqueue_attrs()
4806 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash()
4820 if (a->nice != b->nice) in wqattrs_equal()
6355 pool->attrs->nice == HIGHPRI_NICE_LEVEL ? "-hi" : ""); in pr_cont_pool_info()
[all …]
/linux/Documentation/admin-guide/aoe/
H A Dtodo.rst9 not been observed, but it would be nice to eliminate any potential for
/linux/Documentation/translations/zh_CN/admin-guide/
H A Dcpu-load.rst12 avg-cpu: %user %nice %system %iowait %steal %idle
/linux/Documentation/translations/zh_TW/admin-guide/
H A Dcpu-load.rst18 avg-cpu: %user %nice %system %iowait %steal %idle
/linux/Documentation/bpf/
H A Dgraph_ds_impl.rst203 that isn't in rbtree _must_ be owning. This results in a nice property:
209 However, pointer aliasing poses an issue for the above "nice property".
246 States 4 and 5 violate our "nice property", as there are non-owning refs to
252 prevent state 5 then we must abandon our "nice property" and check whether a
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor-ti-sn65dsi86.dtsi21 * bootloader may have left it on and it's nice not to cause an
/linux/drivers/pnp/pnpbios/
H A DKconfig38 See the latest pcmcia-cs (stand-alone package) for a nice set of

1234