Home
last modified time | relevance | path

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

12345

/Linux-v4.19/Documentation/scheduler/
Dsched-nice-design.txt2 nice-levels implementation in the new Linux scheduler.
5 pestered us to make nice +19 tasks use up much less CPU time.
8 scheduler, (otherwise we'd have done it long ago) because nice level
12 In the O(1) scheduler (in 2003) we changed negative nice levels to be
15 rule so that nice +19 level would be _exactly_ 1 jiffy. To better
30 -*----------------------------------*-----> [nice level]
45 people were running number crunching apps at nice +19.)
47 So for HZ=1000 we changed nice +19 to 5msecs, because that felt like the
49 But the fundamental HZ-sensitive property for nice+19 still remained,
50 and we never got a single complaint about nice +19 being too _weak_ in
[all …]
D00-INDEX11 sched-nice-design.txt
12 - How and why the scheduler's nice levels are implemented.
/Linux-v4.19/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.c3866 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument
3873 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice()
3889 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
3899 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
3926 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument
3929 int nice_rlim = nice_to_rlimit(nice); in can_nice()
3944 SYSCALL_DEFINE1(nice, int, increment) in SYSCALL_DEFINE1() argument
3946 long nice, retval; in SYSCALL_DEFINE1() local
3954 nice = task_nice(current) + increment; in SYSCALL_DEFINE1()
3956 nice = clamp_val(nice, MIN_NICE, MAX_NICE); in SYSCALL_DEFINE1()
[all …]
/Linux-v4.19/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-v4.19/fs/proc/
Dstat.c85 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
92 user = nice = system = idle = iowait = in show_stat()
99 nice += kcpustat_cpu(i).cpustat[CPUTIME_NICE]; in show_stat()
121 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
135 nice = kcpustat_cpu(i).cpustat[CPUTIME_NICE]; in show_stat()
146 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c879 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
882 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
885 while (*nice) in text_map()
886 *p++ = *nice++; in text_map()
890 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
893 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info()
895 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
898 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
899 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
901 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
[all …]
/Linux-v4.19/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);
712 name, name, PF_VERSION, major, cluster, nice); in pf_detect()
886 ps_set_intr(do_pf_read_start, NULL, 0, nice); in do_pf_read()
904 ps_set_intr(do_pf_read_drq, pf_ready, PF_TMO, nice); in do_pf_read_start()
932 ps_set_intr(do_pf_write_start, NULL, 0, nice); in do_pf_write()
967 ps_set_intr(do_pf_write_done, pf_ready, PF_TMO, nice); in do_pf_write_start()
Dpd.c133 static int nice = 0; variable
168 module_param(nice, int, 0);
366 if (!nice) in schedule_fsm()
369 schedule_delayed_work(&fsm_tq, nice-1); in schedule_fsm()
952 name, name, PD_VERSION, major, cluster, nice); in pd_init()
Dpcd.c117 static int nice = 0; variable
150 module_param(nice, int, 0);
700 name, name, PCD_VERSION, major, nice); in pcd_detect()
786 ps_set_intr(do_pcd_read, NULL, 0, nice); in pcd_request()
849 ps_set_intr(do_pcd_read_drq, pcd_ready, PCD_TMO, nice); in pcd_start()
/Linux-v4.19/Documentation/namespaces/
Dresource-control.txt5 users programs to play nice this problems becomes more acute.
10 memory user's they don't trust to play nice can use.
/Linux-v4.19/Documentation/block/
Dioprio.txt9 priorities are supported for reads on files. This enables users to io nice
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-v4.19/Documentation/fb/
Dpvr2fb.txt11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
29 SUN12x22 font which is very nice at high resolutions.
Dgxfb.txt12 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dlxfb.txt12 * It provides a nice large console (128 cols + 48 lines with 1024x768)
/Linux-v4.19/drivers/parport/
DTODO-parport9 a) ECP support would be nice. This can only work if both the port and
/Linux-v4.19/Documentation/ioctl/
Dhdio.txt27 HDIO_GET_NICE get nice flags
50 HDIO_SET_NICE set nice flags
349 HDIO_GET_NICE get nice flags
353 long nice;
354 ioctl(fd, HDIO_GET_NICE, &nice);
360 The drive's "nice" values.
371 HDIO_SET_NICE set nice flags
375 unsigned long nice;
377 ioctl(fd, HDIO_SET_NICE, nice);
380 bitmask of nice flags.
/Linux-v4.19/Documentation/aoe/
Dtodo.txt6 not been observed, but it would be nice to eliminate any potential for
/Linux-v4.19/kernel/
Dworkqueue.c1809 pool->attrs->nice < 0 ? "H" : ""); in create_worker()
1818 set_user_nice(worker->task, pool->attrs->nice); in create_worker()
3246 to->nice = from->nice; in copy_workqueue_attrs()
3261 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash()
3271 if (a->nice != b->nice) in wqattrs_equal()
4436 pr_cont(" flags=0x%x nice=%d", pool->flags, pool->attrs->nice); in pr_cont_pool_info()
5213 written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); in wq_nice_show()
5247 if (sscanf(buf, "%d", &attrs->nice) == 1 && in wq_nice_store()
5248 attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE) in wq_nice_store()
5337 __ATTR(nice, 0644, wq_nice_show, wq_nice_store),
[all …]
/Linux-v4.19/Documentation/cpu-freq/
Dindex.txt14 fly. This is a nice method to save battery power, because the lower
/Linux-v4.19/drivers/pnp/pnpbios/
DKconfig37 See the latest pcmcia-cs (stand-alone package) for a nice set of
/Linux-v4.19/Documentation/vm/
Dremap_file_pages.rst19 architectures. It would be nice to free up the flag for other usage.

12345