/Linux-v5.4/Documentation/scheduler/ |
D | sched-nice-design.rst | 6 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 …]
|
D | index.rst | 16 sched-nice-design
|
/Linux-v5.4/kernel/sched/ |
D | autogroup.c | 208 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()
|
D | autogroup.h | 14 int nice; member
|
D | core.c | 4494 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument 4501 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice() 4517 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 4527 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 4554 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument 4557 int nice_rlim = nice_to_rlimit(nice); in can_nice() 4572 SYSCALL_DEFINE1(nice, int, increment) in SYSCALL_DEFINE1() argument 4574 long nice, retval; in SYSCALL_DEFINE1() local 4582 nice = task_nice(current) + increment; in SYSCALL_DEFINE1() 4584 nice = clamp_val(nice, MIN_NICE, MAX_NICE); in SYSCALL_DEFINE1() [all …]
|
/Linux-v5.4/include/linux/sched/ |
D | prio.h | 33 #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()
|
D | autogroup.h | 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
|
/Linux-v5.4/fs/proc/ |
D | stat.c | 110 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local 117 user = nice = system = idle = iowait = in show_stat() 126 nice += kcs->cpustat[CPUTIME_NICE]; in show_stat() 148 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat() 164 nice = kcs->cpustat[CPUTIME_NICE]; in show_stat() 175 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/ |
D | omap_dmm_tiler.c | 1036 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument 1039 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map() 1042 while (*nice) in text_map() 1043 *p++ = *nice++; in text_map() 1047 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument 1050 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info() 1052 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info() 1055 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info() 1056 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info() 1058 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info() [all …]
|
/Linux-v5.4/drivers/block/paride/ |
D | pseudo.h | 52 int timeout, int nice) in ps_set_intr() argument 61 ps_nice = nice; in ps_set_intr()
|
D | pf.c | 133 static int nice = 0; variable 167 module_param(nice, int, 0); 728 name, name, PF_VERSION, major, cluster, nice); in pf_detect() 920 ps_set_intr(do_pf_read_start, NULL, 0, nice); in do_pf_read() 938 ps_set_intr(do_pf_read_drq, pf_ready, PF_TMO, nice); in do_pf_read_start() 966 ps_set_intr(do_pf_write_start, NULL, 0, nice); in do_pf_write() 1001 ps_set_intr(do_pf_write_done, pf_ready, PF_TMO, nice); in do_pf_write_start()
|
D | pcd.c | 117 static int nice = 0; variable 150 module_param(nice, int, 0); 715 name, name, PCD_VERSION, major, nice); in pcd_detect() 810 ps_set_intr(do_pcd_read, NULL, 0, nice); in pcd_request() 882 ps_set_intr(do_pcd_read_drq, pcd_ready, PCD_TMO, nice); in pcd_start()
|
D | pd.c | 133 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() 1010 name, name, PD_VERSION, major, cluster, nice); in pd_init()
|
/Linux-v5.4/Documentation/admin-guide/namespaces/ |
D | resource-control.rst | 9 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.4/Documentation/block/ |
D | ioprio.rst | 10 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.4/Documentation/fb/ |
D | pvr2fb.rst | 10 * It provides a nice large console (128 cols + 48 lines with 1024x768) 30 SUN12x22 font which is very nice at high resolutions.
|
D | lxfb.rst | 14 * It provides a nice large console (128 cols + 48 lines with 1024x768)
|
D | gxfb.rst | 13 * It provides a nice large console (128 cols + 48 lines with 1024x768)
|
/Linux-v5.4/drivers/parport/ |
D | TODO-parport | 9 a) ECP support would be nice. This can only work if both the port and
|
/Linux-v5.4/Documentation/ioctl/ |
D | hdio.rst | 29 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.4/Documentation/admin-guide/aoe/ |
D | todo.rst | 9 not been observed, but it would be nice to eliminate any potential for
|
/Linux-v5.4/kernel/ |
D | workqueue.c | 1925 pool->attrs->nice < 0 ? "H" : ""); in create_worker() 1934 set_user_nice(worker->task, pool->attrs->nice); in create_worker() 3368 to->nice = from->nice; in copy_workqueue_attrs() 3383 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash() 3393 if (a->nice != b->nice) in wqattrs_equal() 4613 pr_cont(" flags=0x%x nice=%d", pool->flags, pool->attrs->nice); in pr_cont_pool_info() 5392 written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); in wq_nice_show() 5426 if (sscanf(buf, "%d", &attrs->nice) == 1 && in wq_nice_store() 5427 attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE) in wq_nice_store() 5516 __ATTR(nice, 0644, wq_nice_show, wq_nice_store), [all …]
|
/Linux-v5.4/Documentation/cpu-freq/ |
D | index.txt | 14 fly. This is a nice method to save battery power, because the lower
|
/Linux-v5.4/drivers/pnp/pnpbios/ |
D | Kconfig | 38 See the latest pcmcia-cs (stand-alone package) for a nice set of
|
/Linux-v5.4/Documentation/vm/ |
D | remap_file_pages.rst | 19 architectures. It would be nice to free up the flag for other usage.
|