diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 81 |
1 files changed, 30 insertions, 51 deletions
diff --git a/init/Kconfig b/init/Kconfig index d95ca7cd5d45..ed9c19e02f93 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -445,57 +445,6 @@ config LOG_BUF_SHIFT | |||
445 | config HAVE_UNSTABLE_SCHED_CLOCK | 445 | config HAVE_UNSTABLE_SCHED_CLOCK |
446 | bool | 446 | bool |
447 | 447 | ||
448 | config GROUP_SCHED | ||
449 | bool "Group CPU scheduler" | ||
450 | depends on EXPERIMENTAL | ||
451 | default n | ||
452 | help | ||
453 | This feature lets CPU scheduler recognize task groups and control CPU | ||
454 | bandwidth allocation to such task groups. | ||
455 | In order to create a group from arbitrary set of processes, use | ||
456 | CONFIG_CGROUPS. (See Control Group support.) | ||
457 | |||
458 | config FAIR_GROUP_SCHED | ||
459 | bool "Group scheduling for SCHED_OTHER" | ||
460 | depends on GROUP_SCHED | ||
461 | default GROUP_SCHED | ||
462 | |||
463 | config RT_GROUP_SCHED | ||
464 | bool "Group scheduling for SCHED_RR/FIFO" | ||
465 | depends on EXPERIMENTAL | ||
466 | depends on GROUP_SCHED | ||
467 | default n | ||
468 | help | ||
469 | This feature lets you explicitly allocate real CPU bandwidth | ||
470 | to users or control groups (depending on the "Basis for grouping tasks" | ||
471 | setting below. If enabled, it will also make it impossible to | ||
472 | schedule realtime tasks for non-root users until you allocate | ||
473 | realtime bandwidth for them. | ||
474 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
475 | |||
476 | choice | ||
477 | depends on GROUP_SCHED | ||
478 | prompt "Basis for grouping tasks" | ||
479 | default USER_SCHED | ||
480 | |||
481 | config USER_SCHED | ||
482 | bool "user id" | ||
483 | help | ||
484 | This option will choose userid as the basis for grouping | ||
485 | tasks, thus providing equal CPU bandwidth to each user. | ||
486 | |||
487 | config CGROUP_SCHED | ||
488 | bool "Control groups" | ||
489 | depends on CGROUPS | ||
490 | help | ||
491 | This option allows you to create arbitrary task groups | ||
492 | using the "cgroup" pseudo filesystem and control | ||
493 | the cpu bandwidth allocated to each such task group. | ||
494 | Refer to Documentation/cgroups/cgroups.txt for more | ||
495 | information on "cgroup" pseudo filesystem. | ||
496 | |||
497 | endchoice | ||
498 | |||
499 | menuconfig CGROUPS | 448 | menuconfig CGROUPS |
500 | boolean "Control Group support" | 449 | boolean "Control Group support" |
501 | help | 450 | help |
@@ -616,6 +565,36 @@ config CGROUP_MEM_RES_CTLR_SWAP | |||
616 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page | 565 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page |
617 | size is 4096bytes, 512k per 1Gbytes of swap. | 566 | size is 4096bytes, 512k per 1Gbytes of swap. |
618 | 567 | ||
568 | menuconfig CGROUP_SCHED | ||
569 | bool "Group CPU scheduler" | ||
570 | depends on EXPERIMENTAL && CGROUPS | ||
571 | default n | ||
572 | help | ||
573 | This feature lets CPU scheduler recognize task groups and control CPU | ||
574 | bandwidth allocation to such task groups. It uses cgroups to group | ||
575 | tasks. | ||
576 | |||
577 | if CGROUP_SCHED | ||
578 | config FAIR_GROUP_SCHED | ||
579 | bool "Group scheduling for SCHED_OTHER" | ||
580 | depends on CGROUP_SCHED | ||
581 | default CGROUP_SCHED | ||
582 | |||
583 | config RT_GROUP_SCHED | ||
584 | bool "Group scheduling for SCHED_RR/FIFO" | ||
585 | depends on EXPERIMENTAL | ||
586 | depends on CGROUP_SCHED | ||
587 | default n | ||
588 | help | ||
589 | This feature lets you explicitly allocate real CPU bandwidth | ||
590 | to users or control groups (depending on the "Basis for grouping tasks" | ||
591 | setting below. If enabled, it will also make it impossible to | ||
592 | schedule realtime tasks for non-root users until you allocate | ||
593 | realtime bandwidth for them. | ||
594 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
595 | |||
596 | endif #CGROUP_SCHED | ||
597 | |||
619 | endif # CGROUPS | 598 | endif # CGROUPS |
620 | 599 | ||
621 | config MM_OWNER | 600 | config MM_OWNER |