Revert "linux58-tkg: Add rebased BMQ from 5.7. (#38)"
This reverts commit eef469774b
.
This commit is contained in:
parent
eef469774b
commit
d039728f97
@ -54,10 +54,8 @@ fi
|
|||||||
# CPU SCHED selector
|
# CPU SCHED selector
|
||||||
if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
||||||
plain "What CPU sched variant do you want to build/install?"
|
plain "What CPU sched variant do you want to build/install?"
|
||||||
read -rp "`echo $' > 1.PDS\n 2.Project C / BMQ\n 3.CFS\nchoice[1-2?]: '`" CONDITION;
|
read -rp "`echo $' > 1.PDS\n 2.CFS\nchoice[1-2?]: '`" CONDITION;
|
||||||
if [ "$CONDITION" == "2" ]; then
|
if [ "$CONDITION" == "2" ]; then
|
||||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
|
||||||
elif [ "$CONDITION" == "3" ]; then
|
|
||||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||||
else
|
else
|
||||||
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
||||||
@ -67,8 +65,6 @@ if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
|||||||
fi
|
fi
|
||||||
elif [ "$_cpusched" == "pds" ]; then
|
elif [ "$_cpusched" == "pds" ]; then
|
||||||
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
||||||
elif [ "$_cpusched" == "bmq" ]; then
|
|
||||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
|
||||||
elif [ "$_cpusched" == "cfs" ]; then
|
elif [ "$_cpusched" == "cfs" ]; then
|
||||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||||
else
|
else
|
||||||
@ -117,9 +113,9 @@ source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.x
|
|||||||
0006-add-acs-overrides_iommu.patch
|
0006-add-acs-overrides_iommu.patch
|
||||||
0007-v5.8-fsync.patch
|
0007-v5.8-fsync.patch
|
||||||
#0008-5.8-bcachefs.patch
|
#0008-5.8-bcachefs.patch
|
||||||
0009-glitched-ondemand-bmq.patch
|
#0009-glitched-ondemand-bmq.patch
|
||||||
0009-glitched-bmq.patch
|
#0009-glitched-bmq.patch
|
||||||
0009-prjc_v5.7-r3.patch
|
#0009-bmq_v5.8-r0.patch
|
||||||
0011-ZFS-fix.patch
|
0011-ZFS-fix.patch
|
||||||
#0012-linux-hardened.patch
|
#0012-linux-hardened.patch
|
||||||
0012-misc-additions.patch
|
0012-misc-additions.patch
|
||||||
@ -138,9 +134,6 @@ sha256sums=('e7f75186aa0642114af8f19d99559937300ca27acaf7451b36d4f9b0f85cf1f5'
|
|||||||
'31b172eb6a0c635a8d64cc1c2e8181d9f928ee991bd44f6e556d1713b815f8d9'
|
'31b172eb6a0c635a8d64cc1c2e8181d9f928ee991bd44f6e556d1713b815f8d9'
|
||||||
'19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a'
|
'19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a'
|
||||||
'cd225e86d72eaf6c31ef3d7b20df397f4cc44ddd04389850691292cdf292b204'
|
'cd225e86d72eaf6c31ef3d7b20df397f4cc44ddd04389850691292cdf292b204'
|
||||||
'9fad4a40449e09522899955762c8928ae17f4cdaa16e01239fd12592e9d58177'
|
|
||||||
'965a517a283f265a012545fbb5cc9e516efc9f6166d2aa1baf7293a32a1086b7'
|
|
||||||
'ceabd981296f01e5fba0c5e74657932540072f5c391c69c4f1c2d0e00c7d8d7e'
|
|
||||||
'49262ce4a8089fa70275aad742fc914baa28d9c384f710c9a62f64796d13e104'
|
'49262ce4a8089fa70275aad742fc914baa28d9c384f710c9a62f64796d13e104'
|
||||||
'98311deeb474b39e821cd1e64198793d5c4d797155b3b8bbcb1938b7f11e8d74')
|
'98311deeb474b39e821cd1e64198793d5c4d797155b3b8bbcb1938b7f11e8d74')
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@ _tkg_srcprep() {
|
|||||||
fi
|
fi
|
||||||
patch -Np1 -i ../0005-glitched-pds.patch
|
patch -Np1 -i ../0005-glitched-pds.patch
|
||||||
elif [ "${_cpusched}" == "bmq" ]; then
|
elif [ "${_cpusched}" == "bmq" ]; then
|
||||||
# Project C / BMQ
|
# BMQ
|
||||||
patch -Np1 -i ../0009-prjc_v5.7-r3.patch
|
patch -Np1 -i ../0009-bmq_v5.8-r0.patch
|
||||||
if [ "${_aggressive_ondemand}" == "true" ]; then
|
if [ "${_aggressive_ondemand}" == "true" ]; then
|
||||||
patch -Np1 -i ../0009-glitched-ondemand-bmq.patch
|
patch -Np1 -i ../0009-glitched-ondemand-bmq.patch
|
||||||
fi
|
fi
|
||||||
@ -167,9 +167,9 @@ _tkg_srcprep() {
|
|||||||
if [ "$CONDITION0" == "1" ]; then
|
if [ "$CONDITION0" == "1" ]; then
|
||||||
msg2 "Using default CPU sched yield type (1)"
|
msg2 "Using default CPU sched yield type (1)"
|
||||||
elif [ "$CONDITION0" == "2" ]; then
|
elif [ "$CONDITION0" == "2" ]; then
|
||||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 2;/' ./kernel/sched/alt_core.c
|
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 2;/' ./kernel/sched/"${_cpusched}".c
|
||||||
else
|
else
|
||||||
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 0;/' ./kernel/sched/alt_core.c
|
sed -i -e 's/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = 0;/' ./kernel/sched/"${_cpusched}".c
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ _tkg_srcprep() {
|
|||||||
elif [ "${_cpusched}" == "pds" ]; then
|
elif [ "${_cpusched}" == "pds" ]; then
|
||||||
sed -i -e "s/#define SCHED_DEFAULT_RR (4)/#define SCHED_DEFAULT_RR (${_rrvalue})/" ./kernel/sched/"${_cpusched}".c
|
sed -i -e "s/#define SCHED_DEFAULT_RR (4)/#define SCHED_DEFAULT_RR (${_rrvalue})/" ./kernel/sched/"${_cpusched}".c
|
||||||
elif [ "${_cpusched}" == "bmq" ]; then
|
elif [ "${_cpusched}" == "bmq" ]; then
|
||||||
sed -i -e "s/u64 sched_timeslice_ns __read_mostly = (4 * 1000 * 1000);/u64 sched_timeslice_ns __read_mostly = (${_rrvalue} * 1000 * 1000);/" ./kernel/sched/alt_core.c
|
sed -i -e "s/u64 sched_timeslice_ns __read_mostly = (4 * 1000 * 1000);/u64 sched_timeslice_ns __read_mostly = (${_rrvalue} * 1000 * 1000);/" ./kernel/sched/"${_cpusched}".c
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${_cpusched}" == "bmq" ]; then
|
if [ "${_cpusched}" == "bmq" ]; then
|
||||||
|
@ -1,90 +0,0 @@
|
|||||||
From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tk-Glitch <ti3nou@gmail.com>
|
|
||||||
Date: Wed, 4 Jul 2018 04:30:08 +0200
|
|
||||||
Subject: glitched - BMQ
|
|
||||||
|
|
||||||
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
|
|
||||||
index 2a202a846757..1d9c7ed79b11 100644
|
|
||||||
--- a/kernel/Kconfig.hz
|
|
||||||
+++ b/kernel/Kconfig.hz
|
|
||||||
@@ -4,7 +4,7 @@
|
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Timer frequency"
|
|
||||||
- default HZ_250
|
|
||||||
+ default HZ_500
|
|
||||||
help
|
|
||||||
Allows the configuration of the timer frequency. It is customary
|
|
||||||
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
|
|
||||||
@@ -39,6 +39,13 @@ choice
|
|
||||||
on SMP and NUMA systems and exactly dividing by both PAL and
|
|
||||||
NTSC frame rates for video and multimedia work.
|
|
||||||
|
|
||||||
+ config HZ_500
|
|
||||||
+ bool "500 HZ"
|
|
||||||
+ help
|
|
||||||
+ 500 Hz is a balanced timer frequency. Provides fast interactivity
|
|
||||||
+ on desktops with great smoothness without increasing CPU power
|
|
||||||
+ consumption and sacrificing the battery life on laptops.
|
|
||||||
+
|
|
||||||
config HZ_1000
|
|
||||||
bool "1000 HZ"
|
|
||||||
help
|
|
||||||
@@ -52,6 +59,7 @@ config HZ
|
|
||||||
default 100 if HZ_100
|
|
||||||
default 250 if HZ_250
|
|
||||||
default 300 if HZ_300
|
|
||||||
+ default 500 if HZ_500
|
|
||||||
default 1000 if HZ_1000
|
|
||||||
|
|
||||||
config SCHED_HRTICK
|
|
||||||
|
|
||||||
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
|
|
||||||
index 2a202a846757..1d9c7ed79b11 100644
|
|
||||||
--- a/kernel/Kconfig.hz
|
|
||||||
+++ b/kernel/Kconfig.hz
|
|
||||||
@@ -4,7 +4,7 @@
|
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Timer frequency"
|
|
||||||
- default HZ_500
|
|
||||||
+ default HZ_750
|
|
||||||
help
|
|
||||||
Allows the configuration of the timer frequency. It is customary
|
|
||||||
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
|
|
||||||
@@ -46,6 +46,13 @@ choice
|
|
||||||
on desktops with great smoothness without increasing CPU power
|
|
||||||
consumption and sacrificing the battery life on laptops.
|
|
||||||
|
|
||||||
+ config HZ_750
|
|
||||||
+ bool "750 HZ"
|
|
||||||
+ help
|
|
||||||
+ 750 Hz is a good timer frequency for desktops. Provides fast
|
|
||||||
+ interactivity with great smoothness without sacrificing too
|
|
||||||
+ much throughput.
|
|
||||||
+
|
|
||||||
config HZ_1000
|
|
||||||
bool "1000 HZ"
|
|
||||||
help
|
|
||||||
@@ -60,6 +67,7 @@ config HZ
|
|
||||||
default 250 if HZ_250
|
|
||||||
default 300 if HZ_300
|
|
||||||
default 500 if HZ_500
|
|
||||||
+ default 750 if HZ_750
|
|
||||||
default 1000 if HZ_1000
|
|
||||||
|
|
||||||
config SCHED_HRTICK
|
|
||||||
|
|
||||||
diff --git a/mm/vmscan.c b/mm/vmscan.c
|
|
||||||
index 9270a4370d54..30d01e647417 100644
|
|
||||||
--- a/mm/vmscan.c
|
|
||||||
+++ b/mm/vmscan.c
|
|
||||||
@@ -159,7 +159,7 @@ struct scan_control {
|
|
||||||
/*
|
|
||||||
* From 0 .. 100. Higher means more swappy.
|
|
||||||
*/
|
|
||||||
-int vm_swappiness = 60;
|
|
||||||
+int vm_swappiness = 20;
|
|
||||||
/*
|
|
||||||
* The total number of pages which are beyond the high watermark within all
|
|
||||||
* zones.
|
|
@ -1,18 +0,0 @@
|
|||||||
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
|
|
||||||
index 6b423eebfd5d..61e3271675d6 100644
|
|
||||||
--- a/drivers/cpufreq/cpufreq_ondemand.c
|
|
||||||
+++ b/drivers/cpufreq/cpufreq_ondemand.c
|
|
||||||
@@ -21,10 +21,10 @@
|
|
||||||
#include "cpufreq_ondemand.h"
|
|
||||||
|
|
||||||
/* On-demand governor macros */
|
|
||||||
-#define DEF_FREQUENCY_UP_THRESHOLD (80)
|
|
||||||
-#define DEF_SAMPLING_DOWN_FACTOR (1)
|
|
||||||
+#define DEF_FREQUENCY_UP_THRESHOLD (55)
|
|
||||||
+#define DEF_SAMPLING_DOWN_FACTOR (5)
|
|
||||||
#define MAX_SAMPLING_DOWN_FACTOR (100000)
|
|
||||||
-#define MICRO_FREQUENCY_UP_THRESHOLD (95)
|
|
||||||
+#define MICRO_FREQUENCY_UP_THRESHOLD (63)
|
|
||||||
#define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000)
|
|
||||||
#define MIN_FREQUENCY_UP_THRESHOLD (1)
|
|
||||||
#define MAX_FREQUENCY_UP_THRESHOLD (100)
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user