119 lines
3.3 KiB
Diff
119 lines
3.3 KiB
Diff
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/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)
|
|
|
|
From cba31b19f8c38696b13ba48e0e8b6dbe747d6bae Mon Sep 17 00:00:00 2001
|
|
From: Alexandre Frade <admfrade@gmail.com>
|
|
Date: Mon, 29 Jan 2018 17:31:25 +0000
|
|
Subject: [PATCH 10/16] XANMOD: mm/vmscan: vm_swappiness = 30 decreases the
|
|
amount of swapping
|
|
|
|
Signed-off-by: Alexandre Frade <admfrade@gmail.com>
|
|
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
|
---
|
|
mm/vmscan.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/mm/vmscan.c b/mm/vmscan.c
|
|
index 5b7b8d4f5297..549684b29418 100644
|
|
--- a/mm/vmscan.c
|
|
+++ b/mm/vmscan.c
|
|
@@ -190,7 +190,7 @@ struct scan_control {
|
|
/*
|
|
* From 0 .. 200. Higher means more swappy.
|
|
*/
|
|
-int vm_swappiness = 60;
|
|
+int vm_swappiness = 30;
|
|
|
|
static void set_task_reclaim_state(struct task_struct *task,
|
|
struct reclaim_state *rs)
|
|
--
|
|
2.39.1
|