diff options
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 81 |
1 files changed, 30 insertions, 51 deletions
diff --git a/init/Kconfig b/init/Kconfig index c6d95f8ea055..089a230e5652 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -461,57 +461,6 @@ config LOG_BUF_SHIFT | |||
461 | config HAVE_UNSTABLE_SCHED_CLOCK | 461 | config HAVE_UNSTABLE_SCHED_CLOCK |
462 | bool | 462 | bool |
463 | 463 | ||
464 | config GROUP_SCHED | ||
465 | bool "Group CPU scheduler" | ||
466 | depends on EXPERIMENTAL | ||
467 | default n | ||
468 | help | ||
469 | This feature lets CPU scheduler recognize task groups and control CPU | ||
470 | bandwidth allocation to such task groups. | ||
471 | In order to create a group from arbitrary set of processes, use | ||
472 | CONFIG_CGROUPS. (See Control Group support.) | ||
473 | |||
474 | config FAIR_GROUP_SCHED | ||
475 | bool "Group scheduling for SCHED_OTHER" | ||
476 | depends on GROUP_SCHED | ||
477 | default GROUP_SCHED | ||
478 | |||
479 | config RT_GROUP_SCHED | ||
480 | bool "Group scheduling for SCHED_RR/FIFO" | ||
481 | depends on EXPERIMENTAL | ||
482 | depends on GROUP_SCHED | ||
483 | default n | ||
484 | help | ||
485 | This feature lets you explicitly allocate real CPU bandwidth | ||
486 | to users or control groups (depending on the "Basis for grouping tasks" | ||
487 | setting below. If enabled, it will also make it impossible to | ||
488 | schedule realtime tasks for non-root users until you allocate | ||
489 | realtime bandwidth for them. | ||
490 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
491 | |||
492 | choice | ||
493 | depends on GROUP_SCHED | ||
494 | prompt "Basis for grouping tasks" | ||
495 | default USER_SCHED | ||
496 | |||
497 | config USER_SCHED | ||
498 | bool "user id" | ||
499 | help | ||
500 | This option will choose userid as the basis for grouping | ||
501 | tasks, thus providing equal CPU bandwidth to each user. | ||
502 | |||
503 | config CGROUP_SCHED | ||
504 | bool "Control groups" | ||
505 | depends on CGROUPS | ||
506 | help | ||
507 | This option allows you to create arbitrary task groups | ||
508 | using the "cgroup" pseudo filesystem and control | ||
509 | the cpu bandwidth allocated to each such task group. | ||
510 | Refer to Documentation/cgroups/cgroups.txt for more | ||
511 | information on "cgroup" pseudo filesystem. | ||
512 | |||
513 | endchoice | ||
514 | |||
515 | menuconfig CGROUPS | 464 | menuconfig CGROUPS |
516 | boolean "Control Group support" | 465 | boolean "Control Group support" |
517 | help | 466 | help |
@@ -632,6 +581,36 @@ config CGROUP_MEM_RES_CTLR_SWAP | |||
632 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page | 581 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page |
633 | size is 4096bytes, 512k per 1Gbytes of swap. | 582 | size is 4096bytes, 512k per 1Gbytes of swap. |
634 | 583 | ||
584 | menuconfig CGROUP_SCHED | ||
585 | bool "Group CPU scheduler" | ||
586 | depends on EXPERIMENTAL && CGROUPS | ||
587 | default n | ||
588 | help | ||
589 | This feature lets CPU scheduler recognize task groups and control CPU | ||
590 | bandwidth allocation to such task groups. It uses cgroups to group | ||
591 | tasks. | ||
592 | |||
593 | if CGROUP_SCHED | ||
594 | config FAIR_GROUP_SCHED | ||
595 | bool "Group scheduling for SCHED_OTHER" | ||
596 | depends on CGROUP_SCHED | ||
597 | default CGROUP_SCHED | ||
598 | |||
599 | config RT_GROUP_SCHED | ||
600 | bool "Group scheduling for SCHED_RR/FIFO" | ||
601 | depends on EXPERIMENTAL | ||
602 | depends on CGROUP_SCHED | ||
603 | default n | ||
604 | help | ||
605 | This feature lets you explicitly allocate real CPU bandwidth | ||
606 | to users or control groups (depending on the "Basis for grouping tasks" | ||
607 | setting below. If enabled, it will also make it impossible to | ||
608 | schedule realtime tasks for non-root users until you allocate | ||
609 | realtime bandwidth for them. | ||
610 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
611 | |||
612 | endif #CGROUP_SCHED | ||
613 | |||
635 | endif # CGROUPS | 614 | endif # CGROUPS |
636 | 615 | ||
637 | config MM_OWNER | 616 | config MM_OWNER |