Home
last modified time | relevance | path

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

123456

/Linux-v5.10/Documentation/scheduler/
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 …]
Dindex.rst17 sched-nice-design
/Linux-v5.10/kernel/sched/
Dautogroup.c208 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument
215 if (nice < MIN_NICE || nice > MAX_NICE) in proc_sched_autogroup_set_nice()
218 err = security_task_setnice(current, nice); in proc_sched_autogroup_set_nice()
222 if (nice < 0 && !can_nice(current, nice)) in proc_sched_autogroup_set_nice()
232 idx = array_index_nospec(nice + 20, 40); in proc_sched_autogroup_set_nice()
238 ag->nice = nice; in proc_sched_autogroup_set_nice()
254 seq_printf(m, "/autogroup-%ld nice %d\n", ag->id, ag->nice); in proc_sched_autogroup_show_task()
Dautogroup.h14 int nice; member
Dcore.c4958 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument
4965 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice()
4981 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
4991 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
5017 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument
5020 int nice_rlim = nice_to_rlimit(nice); in can_nice()
5035 SYSCALL_DEFINE1(nice, int, increment) in SYSCALL_DEFINE1() argument
5037 long nice, retval; in SYSCALL_DEFINE1() local
5045 nice = task_nice(current) + increment; in SYSCALL_DEFINE1()
5047 nice = clamp_val(nice, MIN_NICE, MAX_NICE); in SYSCALL_DEFINE1()
[all …]
/Linux-v5.10/include/linux/sched/
Dprio.h33 #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO) argument
48 static inline long nice_to_rlimit(long nice) in nice_to_rlimit() argument
50 return (MAX_NICE - nice + 1); in nice_to_rlimit()
Dautogroup.h18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
/Linux-v5.10/fs/proc/
Dstat.c110 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
117 user = nice = system = idle = iowait = in show_stat()
129 nice += cpustat[CPUTIME_NICE]; in show_stat()
151 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
170 nice = cpustat[CPUTIME_NICE]; in show_stat()
181 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
/Linux-v5.10/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c1034 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
1037 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
1040 while (*nice) in text_map()
1041 *p++ = *nice++; in text_map()
1045 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
1048 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info()
1050 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
1053 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
1054 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
1056 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
[all …]
/Linux-v5.10/drivers/block/paride/
Dpseudo.h52 int timeout, int nice) in ps_set_intr() argument
61 ps_nice = nice; in ps_set_intr()
Dpf.c133 static int nice = 0; variable
167 module_param(nice, int, 0);
729 name, name, PF_VERSION, major, cluster, nice); in pf_detect()
921 ps_set_intr(do_pf_read_start, NULL, 0, nice); in do_pf_read()
939 ps_set_intr(do_pf_read_drq, pf_ready, PF_TMO, nice); in do_pf_read_start()
967 ps_set_intr(do_pf_write_start, NULL, 0, nice); in do_pf_write()
1002 ps_set_intr(do_pf_write_done, pf_ready, PF_TMO, nice); in do_pf_write_start()
Dpcd.c117 static int nice = 0; variable
150 module_param(nice, int, 0);
718 name, name, PCD_VERSION, major, nice); in pcd_detect()
813 ps_set_intr(do_pcd_read, NULL, 0, nice); in pcd_request()
885 ps_set_intr(do_pcd_read_drq, pcd_ready, PCD_TMO, nice); in pcd_start()
Dpd.c133 static int nice = 0; variable
168 module_param(nice, int, 0);
373 if (!nice) in schedule_fsm()
376 schedule_delayed_work(&fsm_tq, nice-1); in schedule_fsm()
1011 name, name, PD_VERSION, major, cluster, nice); in pd_init()
/Linux-v5.10/Documentation/admin-guide/namespaces/
Dresource-control.rst9 users programs to play nice this problems becomes more acute.
14 memory user's they don't trust to play nice can use.
/Linux-v5.10/Documentation/block/
Dioprio.rst10 priorities are supported for reads on files. This enables users to io nice
33 to the cpu nice levels just more coarsely implemented. 0 is the highest
34 BE prio level, 7 is the lowest. The mapping between cpu nice level and io
35 nice level is determined as: io_nice = (cpu_nice + 20) / 5.
/Linux-v5.10/Documentation/fb/
Dpvr2fb.rst10 * It provides a nice large console (128 cols + 48 lines with 1024x768)
30 SUN12x22 font which is very nice at high resolutions.
Dlxfb.rst14 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dgxfb.rst13 * It provides a nice large console (128 cols + 48 lines with 1024x768)
/Linux-v5.10/drivers/parport/
DTODO-parport9 a) ECP support would be nice. This can only work if both the port and
/Linux-v5.10/drivers/leds/
DTODO67 It would be also nice to have useful listing mode -- name, type,
74 ethernet interface would be nice.
/Linux-v5.10/Documentation/userspace-api/ioctl/
Dhdio.rst29 HDIO_GET_NICE get nice flags
54 HDIO_SET_NICE set nice flags
437 get nice flags
442 long nice;
444 ioctl(fd, HDIO_GET_NICE, &nice);
452 The drive's "nice" values.
466 set nice flags
471 unsigned long nice;
474 ioctl(fd, HDIO_SET_NICE, nice);
477 bitmask of nice flags.
/Linux-v5.10/Documentation/admin-guide/aoe/
Dtodo.rst9 not been observed, but it would be nice to eliminate any potential for
/Linux-v5.10/Documentation/cpu-freq/
Dindex.rst10 fly. This is a nice method to save battery power, because the lower
/Linux-v5.10/Documentation/translations/zh_CN/admin-guide/
Dcpu-load.rst12 avg-cpu: %user %nice %system %iowait %steal %idle
/Linux-v5.10/kernel/
Dworkqueue.c1928 pool->attrs->nice < 0 ? "H" : ""); in create_worker()
1937 set_user_nice(worker->task, pool->attrs->nice); in create_worker()
3377 to->nice = from->nice; in copy_workqueue_attrs()
3392 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash()
3402 if (a->nice != b->nice) in wqattrs_equal()
4663 pr_cont(" flags=0x%x nice=%d", pool->flags, pool->attrs->nice); in pr_cont_pool_info()
5443 written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); in wq_nice_show()
5477 if (sscanf(buf, "%d", &attrs->nice) == 1 && in wq_nice_store()
5478 attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE) in wq_nice_store()
5567 __ATTR(nice, 0644, wq_nice_show, wq_nice_store),
[all …]

123456