linux512/513-tkg: Initial support for CacULE CPU scheduler from @hamadmarri - https://github.com/hamadmarri/cacule-cpu-scheduler

RDB hasn't been tested yet and isn't included as a result.
This commit is contained in:
Tk-Glitch
2021-05-30 20:03:54 +02:00
parent 6d2b07d0b2
commit 670c6e730e
5 changed files with 2547 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ else
fi fi
pkgname=("${pkgbase}" "${pkgbase}-headers") pkgname=("${pkgbase}" "${pkgbase}-headers")
pkgver="${_basekernel}"."${_sub}" pkgver="${_basekernel}"."${_sub}"
pkgrel=161 pkgrel=162
pkgdesc='Linux-tkg' pkgdesc='Linux-tkg'
arch=('x86_64') # no i686 in here arch=('x86_64') # no i686 in here
url="http://www.kernel.org/" url="http://www.kernel.org/"
@@ -419,6 +419,7 @@ case $_basever in
0002-clear-patches.patch 0002-clear-patches.patch
0003-glitched-base.patch 0003-glitched-base.patch
0003-glitched-cfs.patch 0003-glitched-cfs.patch
0003-cacule-5.12.patch
0004-glitched-ondemand-muqss.patch 0004-glitched-ondemand-muqss.patch
0004-glitched-muqss.patch 0004-glitched-muqss.patch
0004-5.12-ck1.patch 0004-5.12-ck1.patch
@@ -450,6 +451,7 @@ case $_basever in
'35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0'
'1ac97da07e72ec7e2b0923d32daacacfaa632a44c714d6942d9f143fe239e1b5' '1ac97da07e72ec7e2b0923d32daacacfaa632a44c714d6942d9f143fe239e1b5'
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
'0699e807309cfccf8aa03aec4b6cfcd2311fe50fdd4ebcbec44966d041ce0ed4'
'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe' 'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe'
'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb' 'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb'
'742d12d2e2ab5b59245a897af6e7726b8d14ed39d5fd402faba23fa56382b87a' '742d12d2e2ab5b59245a897af6e7726b8d14ed39d5fd402faba23fa56382b87a'
@@ -480,6 +482,7 @@ case $_basever in
0002-clear-patches.patch 0002-clear-patches.patch
0003-glitched-base.patch 0003-glitched-base.patch
0003-glitched-cfs.patch 0003-glitched-cfs.patch
0003-cacule-5.13.patch
0005-glitched-pds.patch 0005-glitched-pds.patch
0006-add-acs-overrides_iommu.patch 0006-add-acs-overrides_iommu.patch
#0007-v5.13-fsync.patch #0007-v5.13-fsync.patch
@@ -504,6 +507,7 @@ case $_basever in
'35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0'
'ef80c354d08f63363d36485b1b77b15f3d36cad1e00edbe13ba89538fbb38146' 'ef80c354d08f63363d36485b1b77b15f3d36cad1e00edbe13ba89538fbb38146'
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
'd62cbe267fcf1fc4e282a1b50323d64eee0d988ef34a66b0fff53108401f1b54'
'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320' 'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320'
'19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a' '19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a'
'034d12a73b507133da2c69a34d61efd2f6b6618549650aa26d748142d22002e1' '034d12a73b507133da2c69a34d61efd2f6b6618549650aa26d748142d22002e1'

View File

@@ -4,8 +4,8 @@
Custom Linux kernels with specific CPU schedulers related patchsets selector (CFS is an option for every kernel) with added tweaks for a nice interactivity/performance balance, aiming for the best gaming experience. Custom Linux kernels with specific CPU schedulers related patchsets selector (CFS is an option for every kernel) with added tweaks for a nice interactivity/performance balance, aiming for the best gaming experience.
- 5.13 RCs (Project C / PDS & BMQ) - 5.13 RCs (Project C / PDS & BMQ, CacULE)
- 5.12.y (Project C / PDS & BMQ, MuQSS) - 5.12.y (Project C / PDS & BMQ, MuQSS, CacULE)
- 5.11.y (Undead PDS, Project C / PDS & BMQ, MuQSS) - 5.11.y (Undead PDS, Project C / PDS & BMQ, MuQSS)
- 5.10.y (Undead PDS, Project C / PDS & BMQ, MuQSS) - 5.10.y (Undead PDS, Project C / PDS & BMQ, MuQSS)
- 5.9.y (Undead PDS, Project C / PDS & BMQ, MuQSS) - 5.9.y (Undead PDS, Project C / PDS & BMQ, MuQSS)
@@ -13,6 +13,8 @@ Custom Linux kernels with specific CPU schedulers related patchsets selector (CF
- 5.7.y (MuQSS, PDS, Project C / BMQ) - 5.7.y (MuQSS, PDS, Project C / BMQ)
- 5.4.y (MuQSS, PDS, BMQ) - 5.4.y (MuQSS, PDS, BMQ)
CacULE : https://github.com/hamadmarri/cacule-cpu-scheduler
MuQSS : http://ck-hack.blogspot.com/ MuQSS : http://ck-hack.blogspot.com/
Project C / PDS & BMQ : http://cchalpha.blogspot.com/ Project C / PDS & BMQ : http://cchalpha.blogspot.com/

View File

@@ -37,6 +37,9 @@ _cpuschedselector() {
"Undead PDS (TkG)") "Undead PDS (TkG)")
echo "_cpusched=\"upds\"" > "${_path}"/cpuschedset echo "_cpusched=\"upds\"" > "${_path}"/cpuschedset
;; ;;
"CacULE")
echo "_cpusched=\"cacule\"" > "${_path}"/cpuschedset
;;
*) *)
esac esac
break break
@@ -203,11 +206,11 @@ _tkg_initscript() {
_CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS") _CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
_CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "MuQSS" "cfs") _CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "MuQSS" "cfs")
elif [ "$_basever" = "512" ]; then elif [ "$_basever" = "512" ]; then
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "MuQSS" "CFS") _CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "MuQSS" "CacULE" "CFS")
_CPUSCHEDVARARRAY=("pds" "bmq" "muqss" "MuQSS" "cfs") _CPUSCHEDVARARRAY=("pds" "bmq" "muqss" "MuQSS" "cacule" "cfs")
elif [ "$_basever" = "513" ]; then elif [ "$_basever" = "513" ]; then
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "CFS") _CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "CacULE" "CFS")
_CPUSCHEDVARARRAY=("pds" "bmq" "cfs") _CPUSCHEDVARARRAY=("pds" "bmq" "cacule" "cfs")
else else
_CPUSCHEDARRAY=("CFS") _CPUSCHEDARRAY=("CFS")
_CPUSCHEDVARARRAY=("cfs") _CPUSCHEDVARARRAY=("cfs")
@@ -516,7 +519,11 @@ _tkg_srcprep() {
_msg="Applying Glitched BMQ patch" _msg="Applying Glitched BMQ patch"
tkgpatch="$srcdir/0009-glitched-bmq.patch" && _tkg_patcher tkgpatch="$srcdir/0009-glitched-bmq.patch" && _tkg_patcher
elif [ "${_cpusched}" = "cacule" ]; then
_msg="Applying cacule patch"
tkgpatch="$srcdir/0003-cacule-${_basekernel}.patch" && _tkg_patcher
_msg="Applying Glitched CFS patch"
tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher
elif [ "${_cpusched}" = "cfs" ]; then elif [ "${_cpusched}" = "cfs" ]; then
_msg="Applying Glitched CFS patch" _msg="Applying Glitched CFS patch"
tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher
@@ -813,6 +820,13 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
echo "CONFIG_SCHED_ALT=y" >> ./.config echo "CONFIG_SCHED_ALT=y" >> ./.config
echo "CONFIG_SCHED_BMQ=y" >> ./.config echo "CONFIG_SCHED_BMQ=y" >> ./.config
echo "# CONFIG_SCHED_PDS is not set" >> ./.config echo "# CONFIG_SCHED_PDS is not set" >> ./.config
elif [ "${_cpusched}" = "cacule" ]; then
sed -i -e 's/# CONFIG_SCHED_AUTOGROUP is not set/CONFIG_SCHED_AUTOGROUP=y/' ./.config
sed -i -e 's/CONFIG_BSD_PROCESS_ACCT=y/# CONFIG_BSD_PROCESS_ACCT is not set/' ./.config
sed -i -e 's/CONFIG_TASK_XACCT=y/# CONFIG_TASK_XACCT is not set/' ./.config
sed -i -e 's/CONFIG_CGROUP_CPUACCT=y/# CONFIG_CGROUP_CPUACCT is not set/' ./.config
sed -i -e 's/CONFIG_CGROUP_DEBUG=y/# CONFIG_CGROUP_DEBUG is not set/' ./.config
echo "CONFIG_CACULE_SCHED=y" >> ./.config
fi fi
if [ "${_cpusched}" = "MuQSS" ] || [ "${_cpusched}" = "pds" ] || [ "${_cpusched}" = "bmq" ] || [ "${_cpusched}" = "upds" ]; then if [ "${_cpusched}" = "MuQSS" ] || [ "${_cpusched}" = "pds" ] || [ "${_cpusched}" = "bmq" ] || [ "${_cpusched}" = "upds" ]; then

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff