Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #216 from hamadmarri/5.15.tt-fork
Browse files Browse the repository at this point in the history
Add tasks' load accountings and statistics.
  • Loading branch information
xanmod authored Nov 18, 2021
2 parents aa68727 + edabdb8 commit dd477c4
Show file tree
Hide file tree
Showing 9 changed files with 1,337 additions and 85 deletions.
1 change: 1 addition & 0 deletions include/linux/sched/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern unsigned int sysctl_sched_child_runs_first;

#ifdef CONFIG_TT_SCHED
extern unsigned int tt_max_lifetime;
extern int tt_rt_prio;
#endif

enum sched_tunable_scaling {
Expand Down
11 changes: 9 additions & 2 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ config TT_SCHED
bool "TT Scheduler"
default y

config TT_ACCOUNTING_STATS
bool "TT include all accounting and statistics"
depends on TT_SCHED
default y
help
This will include all CFS tasks' load accounting and statistics.
If you are using 'performance' governor and do not depend/care
about tasks statistics, then choose N. Otherwise say Y.

menu "General setup"

Expand Down Expand Up @@ -821,8 +829,7 @@ menu "Scheduler features"

config UCLAMP_TASK
bool "Enable utilization clamping for RT/FAIR tasks"
depends on CPU_FREQ_GOV_SCHEDUTIL
depends on !TT_SCHED
depends on CPU_FREQ_GOV_SCHEDUTIL && TT_ACCOUNTING_STATS
help
This feature enables the scheduler to track the clamped utilization
of each CPU based on RUNNABLE tasks scheduled on that CPU.
Expand Down
17 changes: 0 additions & 17 deletions kernel/Kconfig.hz
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,12 @@ choice
on desktops with great smoothness without increasing CPU power
consumption and sacrificing the battery life on laptops.

config HZ_833
bool "833 HZ"
help
833 Hz is the TT alternative to 1000 Hz. Choose 833 Hz
if you want a balance between latency and performance.

config HZ_1000
bool "1000 HZ"
help
1000 Hz is the preferred choice for desktop systems and other
systems requiring fast interactive responses to events.

config HZ_1666
bool "1666 HZ"
help
1666 Hz is for very high latency bound systems. Choose 1666 Hz
if you don't care about overall throughput or performance, but
you care more about latency (some realtime applications) require
low latency. The response and interactive processes with 1666 Hz
feel much snappier.

endchoice

config HZ
Expand All @@ -76,9 +61,7 @@ config HZ
default 250 if HZ_250
default 300 if HZ_300
default 500 if HZ_500
default 833 if HZ_833
default 1000 if HZ_1000
default 1666 if HZ_1666

config SCHED_HRTICK
def_bool HIGH_RES_TIMERS
Loading

0 comments on commit dd477c4

Please sign in to comment.