1 - SCHED_BATCH option missing in chrt
3 --- util-linux-2.13-pre6/schedutils/chrt.1.batch 2006-11-10 13:23:37.000000000 -0500
4 +++ util-linux-2.13-pre6/schedutils/chrt.1 2006-11-10 13:27:23.000000000 -0500
7 sets or retrieves the real-time scheduling attributes of an existing PID or
8 runs COMMAND with the given attributes. Both policy (one of
15 and priority can be set and retrieved.
23 +set scheduling policy to
27 set scheduling policy to
29 --- util-linux-2.13-pre6/schedutils/chrt.c.batch 2005-08-14 11:18:54.000000000 -0400
30 +++ util-linux-2.13-pre6/schedutils/chrt.c 2006-11-10 13:27:52.000000000 -0500
32 fprintf(stderr, "usage: %s [options] [prio] [pid | cmd [args...]]\n",
34 fprintf(stderr, "manipulate real-time attributes of a process\n");
35 + fprintf(stderr, " -b, --batch "
36 + "set policy to SCHED_BATCH\n");
37 fprintf(stderr, " -f, --fifo "
38 "set policy to SCHED_FF\n");
39 fprintf(stderr, " -p, --pid "
45 + printf("SCHED_BATCH\n");
54 + max = sched_get_priority_max(SCHED_OTHER);
55 + min = sched_get_priority_min(SCHED_OTHER);
56 + if (max >= 0 && min >= 0)
57 + printf("SCHED_OTHER min/max priority\t: %d/%d\n", min, max);
59 + printf("SCHED_OTHER not supported?\n");
61 max = sched_get_priority_max(SCHED_FIFO);
62 min = sched_get_priority_min(SCHED_FIFO);
63 if (max >= 0 && min >= 0)
66 printf("SCHED_RR not supported?\n");
68 - max = sched_get_priority_max(SCHED_OTHER);
69 - min = sched_get_priority_min(SCHED_OTHER);
70 + max = sched_get_priority_max(SCHED_BATCH);
71 + min = sched_get_priority_min(SCHED_BATCH);
72 if (max >= 0 && min >= 0)
73 - printf("SCHED_OTHER min/max priority\t: %d/%d\n", min, max);
74 + printf("SCHED_BATCH min/max priority\t: %d/%d\n", min, max);
76 - printf("SCHED_OTHER not supported?\n");
77 + printf("SCHED_BATCH not supported?\n");
80 int main(int argc, char *argv[])
84 struct option longopts[] = {
85 + { "batch", 0, NULL, 'b' },
86 { "fifo", 0, NULL, 'f' },
87 { "pid", 0, NULL, 'p' },
88 { "help", 0, NULL, 'h' },
93 - while((i = getopt_long(argc, argv, "+fphmorvV", longopts, NULL)) != -1)
94 + while((i = getopt_long(argc, argv, "+bfphmorvV", longopts, NULL)) != -1)
100 + policy = SCHED_BATCH;