diff --git a/linux58-tkg/PKGBUILD b/linux58-tkg/PKGBUILD index 58778a1..7e3eabf 100644 --- a/linux58-tkg/PKGBUILD +++ b/linux58-tkg/PKGBUILD @@ -91,7 +91,7 @@ sha256sums=('e7f75186aa0642114af8f19d99559937300ca27acaf7451b36d4f9b0f85cf1f5' '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - '65a3ff8f69def96f5249ae90da7bed8d5c0a54e2602117107dac8ffdb054f614' + '2ef939628d8b302974d88e17f9ef4e179d1bfe7df18e16f93b1539e1fdd6138a' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' '62496f9ca788996181ef145f96ad26291282fcc3fb95cdc04080dcf84365be33' '7fd8e776209dac98627453fda754bdf9aff4a09f27cb0b3766d7983612eb3c74' diff --git a/linux58-tkg/linux58-tkg-patches/0003-glitched-base.patch b/linux58-tkg/linux58-tkg-patches/0003-glitched-base.patch index 8cd79e7..26f31d7 100644 --- a/linux58-tkg/linux58-tkg-patches/0003-glitched-base.patch +++ b/linux58-tkg/linux58-tkg-patches/0003-glitched-base.patch @@ -1,13 +1,17 @@ From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 4 Jul 2018 04:30:08 +0200 -Subject: glitched +Subject: [PATCH 01/17] glitched + +--- + scripts/mkcompile_h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h -index 87f1fc9..b3be470 100755 +index baf3ab8d9d49..854e32e6aec7 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h -@@ -50,8 +50,8 @@ else +@@ -41,8 +41,8 @@ else fi UTS_VERSION="#$VERSION" @@ -16,13 +20,28 @@ index 87f1fc9..b3be470 100755 +CONFIG_FLAGS="TKG" +if [ -n "$SMP" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS SMP"; fi if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi - UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP" + if [ -n "$PREEMPT_RT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT_RT"; fi + +-- +2.28.0 + + +From c304f43d14e98d4bf1215fc10bc5012f554bdd8a Mon Sep 17 00:00:00 2001 +From: Alexandre Frade +Date: Mon, 29 Jan 2018 16:59:22 +0000 +Subject: [PATCH 02/17] dcache: cache_pressure = 50 decreases the rate at which + VFS caches are reclaimed + +Signed-off-by: Alexandre Frade +--- + fs/dcache.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.c -index 2acfc69878f5..3f1131431e06 100644 +index 361ea7ab30ea..0c5cf69b241a 100644 --- a/fs/dcache.c +++ b/fs/dcache.c -@@ -69,7 +69,7 @@ +@@ -71,7 +71,7 @@ * If no ancestor relationship: * arbitrary, since it's serialized on rename_lock */ @@ -31,11 +50,26 @@ index 2acfc69878f5..3f1131431e06 100644 EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); __cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock); +-- +2.28.0 + + +From 28f32f59d9d55ac7ec3a20b79bdd02d2a0a5f7e1 Mon Sep 17 00:00:00 2001 +From: Alexandre Frade +Date: Mon, 29 Jan 2018 18:29:13 +0000 +Subject: [PATCH 03/17] sched/core: nr_migrate = 128 increases number of tasks + to iterate in a single balance run. + +Signed-off-by: Alexandre Frade +--- + kernel/sched/core.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + diff --git a/kernel/sched/core.c b/kernel/sched/core.c -index 211890edf37e..37121563407d 100644 +index f788cd61df21..2bfbb4213707 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c -@@ -41,7 +41,7 @@ const_debug unsigned int sysctl_sched_features = +@@ -59,7 +59,7 @@ const_debug unsigned int sysctl_sched_features = * Number of tasks to iterate in a single balance run. * Limited because this is done with IRQs disabled. */ @@ -43,8 +77,8 @@ index 211890edf37e..37121563407d 100644 +const_debug unsigned int sysctl_sched_nr_migrate = 128; /* - * period over which we average the RT time consumption, measured -@@ -61,9 +61,9 @@ __read_mostly int scheduler_running; + * period over which we measure -rt task CPU usage in us. +@@ -71,9 +71,9 @@ __read_mostly int scheduler_running; /* * part of the period that we allow rt tasks to run in us. @@ -56,8 +90,22 @@ index 211890edf37e..37121563407d 100644 /* * __task_rq_lock - lock the rq @p resides on. +-- +2.28.0 + + +From acc49f33a10f61dc66c423888cbb883ba46710e4 Mon Sep 17 00:00:00 2001 +From: Alexandre Frade +Date: Mon, 29 Jan 2018 17:41:29 +0000 +Subject: [PATCH 04/17] scripts: disable the localversion "+" tag of a git repo + +Signed-off-by: Alexandre Frade +--- + scripts/setlocalversion | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + diff --git a/scripts/setlocalversion b/scripts/setlocalversion -index 71f39410691b..288f9679e883 100755 +index 20f2efd57b11..0552d8b9f582 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -54,7 +54,7 @@ scm_version() @@ -69,18 +117,32 @@ index 71f39410691b..288f9679e883 100755 return fi # If we are past a tagged commit (like +-- +2.28.0 -From f85ed068b4d0e6c31edce8574a95757a60e58b87 Mon Sep 17 00:00:00 2001 -From: Etienne Juvigny -Date: Mon, 3 Sep 2018 17:36:25 +0200 -Subject: Zenify & stuff +From 61fcb33fb0de8bc0f060e0a1ada38ed149217f4d Mon Sep 17 00:00:00 2001 +From: Oleksandr Natalenko +Date: Wed, 11 Dec 2019 11:46:19 +0100 +Subject: [PATCH 05/17] init/Kconfig: enable -O3 for all arches + +Building a kernel with -O3 may help in hunting bugs like [1] and thus +using this switch should not be restricted to one specific arch only. + +With that, lets expose it for everyone. + +[1] https://lore.kernel.org/lkml/673b885183fb64f1cbb3ed2387524077@natalenko.name/ + +Signed-off-by: Oleksandr Natalenko +--- + init/Kconfig | 1 - + 1 file changed, 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig -index b4daad2bac23..c1e59dc04209 100644 +index 0498af567f70..3ae8678e1145 100644 --- a/init/Kconfig +++ b/init/Kconfig -@@ -1244,7 +1244,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE +@@ -1278,7 +1278,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE config CC_OPTIMIZE_FOR_PERFORMANCE_O3 bool "Optimize more for performance (-O3)" @@ -88,24 +150,54 @@ index b4daad2bac23..c1e59dc04209 100644 help Choosing this option will pass "-O3" to your compiler to optimize the kernel yet more for performance. +-- +2.28.0 + + +From 360c6833e07cc9fdef5746f6bc45bdbc7212288d Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Fri, 26 Oct 2018 11:22:33 +0100 +Subject: [PATCH 06/17] infiniband: Fix __read_overflow2 error with -O3 + inlining + +--- + drivers/infiniband/core/addr.c | 1 + + 1 file changed, 1 insertion(+) + diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c -index 4f32c4062fb6..c0bf039e1b40 100644 +index 3a98439bba83..6efc4f907f58 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c -@@ -721,6 +721,7 @@ int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, - struct sockaddr _sockaddr; +@@ -820,6 +820,7 @@ int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, + union { struct sockaddr_in _sockaddr_in; struct sockaddr_in6 _sockaddr_in6; + struct sockaddr_ib _sockaddr_ib; } sgid_addr, dgid_addr; int ret; +-- +2.28.0 + + +From f85ed068b4d0e6c31edce8574a95757a60e58b87 Mon Sep 17 00:00:00 2001 +From: Etienne Juvigny +Date: Mon, 3 Sep 2018 17:36:25 +0200 +Subject: [PATCH 07/17] Zenify & stuff + +--- + include/linux/blkdev.h | 4 ++++ + init/Kconfig | 32 ++++++++++++++++++++++++++++++++ + kernel/sched/fair.c | 25 +++++++++++++++++++++++++ + mm/page-writeback.c | 8 ++++++++ + 4 files changed, 69 insertions(+) + diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h -index 79226ca8f80f..2a30060e7e1d 100644 +index 57241417ff2f..28efe374a2e1 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h -@@ -47,7 +47,11 @@ struct blk_queue_stats; - struct blk_stat_callback; +@@ -46,7 +46,11 @@ struct blk_stat_callback; + struct blk_keyslot_manager; #define BLKDEV_MIN_RQ 4 +#ifdef CONFIG_ZENIFY @@ -117,10 +209,10 @@ index 79226ca8f80f..2a30060e7e1d 100644 /* Must be consistent with blk_mq_poll_stats_bkt() */ #define BLK_MQ_POLL_STATS_BKTS 16 diff --git a/init/Kconfig b/init/Kconfig -index 041f3a022122..5ed70eb1ad3a 100644 +index 3ae8678e1145..da708eed0f1e 100644 --- a/init/Kconfig +++ b/init/Kconfig -@@ -45,6 +45,38 @@ config THREAD_INFO_IN_TASK +@@ -92,6 +92,38 @@ config THREAD_INFO_IN_TASK menu "General setup" @@ -160,7 +252,7 @@ index 041f3a022122..5ed70eb1ad3a 100644 bool diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c -index 2f0a0be4d344..bada807c7e59 100644 +index 6b3b59cc51d6..2a0072192c3d 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -37,8 +37,13 @@ @@ -216,9 +308,9 @@ index 2f0a0be4d344..bada807c7e59 100644 const_debug unsigned int sysctl_sched_migration_cost = 500000UL; +#endif - #ifdef CONFIG_SMP - /* -@@ -107,8 +128,12 @@ int __weak arch_asym_cpu_priority(int cpu) + int sched_thermal_decay_shift; + static int __init setup_sched_thermal_decay_shift(char *str) +@@ -128,8 +149,12 @@ int __weak arch_asym_cpu_priority(int cpu) * * (default: 5 msec, units: microseconds) */ @@ -229,10 +321,10 @@ index 2f0a0be4d344..bada807c7e59 100644 #endif +#endif - /* - * The margin used when comparing utilization with CPU capacity: + static inline void update_load_add(struct load_weight *lw, unsigned long inc) + { diff --git a/mm/page-writeback.c b/mm/page-writeback.c -index 337c6afb3345..9315e358f292 100644 +index 28b3e7a67565..01a1aef2b9b1 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -71,7 +71,11 @@ static long ratelimit_pages = 32; @@ -259,11 +351,29 @@ index 337c6afb3345..9315e358f292 100644 /* * vm_dirty_bytes starts at 0 (disabled) so that it is a function of +-- +2.28.0 + + +From e92e67143385cf285851e12aa8b7f083dd38dd24 Mon Sep 17 00:00:00 2001 +From: Steven Barrett +Date: Sun, 16 Jan 2011 18:57:32 -0600 +Subject: [PATCH 08/17] ZEN: Allow TCP YeAH as default congestion control + +4.4: In my tests YeAH dramatically slowed down transfers over a WLAN, + reducing throughput from ~65Mbps (CUBIC) to ~7MBps (YeAH) over 10 + seconds (netperf TCP_STREAM) including long stalls. + + Be careful when choosing this. ~heftig +--- + net/ipv4/Kconfig | 4 ++++ + 1 file changed, 4 insertions(+) + diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig -index 80dad301361d..42b7fa7d01f8 100644 +index e64e59b536d3..bfb55ef7ebbe 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig -@@ -702,6 +702,9 @@ choice +@@ -691,6 +691,9 @@ choice config DEFAULT_VEGAS bool "Vegas" if TCP_CONG_VEGAS=y @@ -273,7 +383,7 @@ index 80dad301361d..42b7fa7d01f8 100644 config DEFAULT_VENO bool "Veno" if TCP_CONG_VENO=y -@@ -735,6 +738,7 @@ config DEFAULT_TCP_CONG +@@ -724,6 +727,7 @@ config DEFAULT_TCP_CONG default "htcp" if DEFAULT_HTCP default "hybla" if DEFAULT_HYBLA default "vegas" if DEFAULT_VEGAS @@ -281,10 +391,15 @@ index 80dad301361d..42b7fa7d01f8 100644 default "westwood" if DEFAULT_WESTWOOD default "veno" if DEFAULT_VENO default "reno" if DEFAULT_RENO +-- +2.28.0 -From: Andy Lavr -Date: Mon, 24 Dec 2018 14:57:47 +0200 -Subject: avl: Use [defer+madvise] as default khugepaged defrag strategy + +From 76dbe7477bfde1b5e8bf29a71b5af7ab2be9b98e Mon Sep 17 00:00:00 2001 +From: Steven Barrett +Date: Wed, 28 Nov 2018 19:01:27 -0600 +Subject: [PATCH 09/17] zen: Use [defer+madvise] as default khugepaged defrag + strategy For some reason, the default strategy to respond to THP fault fallbacks is still just madvise, meaning stall if the program wants transparent @@ -305,20 +420,20 @@ so defer+madvise _does_ make a ton of sense. Make it the default for interactive systems, especially if the kernel maintainer left transparent hugepages on "always". -Reasoning and details in the original patch: -https://lwn.net/Articles/711248/ - -Signed-off-by: Andy Lavr +Reasoning and details in the original patch: https://lwn.net/Articles/711248/ +--- + mm/huge_memory.c | 4 ++++ + 1 file changed, 4 insertions(+) diff --git a/mm/huge_memory.c b/mm/huge_memory.c -index e84a10b..21d62b7 100644 +index 74300e337c3c..9277f22c10a7 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -53,7 +53,11 @@ unsigned long transparent_hugepage_flags __read_mostly = #ifdef CONFIG_TRANSPARENT_HUGEPAGE_MADVISE (1< +Date: Wed, 24 Oct 2018 16:58:52 -0300 +Subject: [PATCH 10/17] net/sched: allow configuring cake qdisc as default + +Signed-off-by: Alexandre Frade +--- + net/sched/Kconfig | 4 ++++ + 1 file changed, 4 insertions(+) + diff --git a/net/sched/Kconfig b/net/sched/Kconfig +index 84badf00647e..6a922bca9f39 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig -@@ -429,6 +429,9 @@ - Select the queueing discipline that will be used by default - for all network devices. +@@ -471,6 +471,9 @@ choice + config DEFAULT_SFQ + bool "Stochastic Fair Queue" if NET_SCH_SFQ + config DEFAULT_CAKE -+ bool "Common Applications Kept Enhanced" if NET_SCH_CAKE ++ bool "Common Applications Kept Enhanced" if NET_SCH_CAKE + - config DEFAULT_FQ - bool "Fair Queue" if NET_SCH_FQ - -@@ -448,6 +451,7 @@ - config DEFAULT_NET_SCH - string - default "pfifo_fast" if DEFAULT_PFIFO_FAST + config DEFAULT_PFIFO_FAST + bool "Priority FIFO Fast" + endchoice +@@ -481,6 +484,7 @@ config DEFAULT_NET_SCH + default "fq" if DEFAULT_FQ + default "fq_codel" if DEFAULT_FQ_CODEL + default "sfq" if DEFAULT_SFQ + default "cake" if DEFAULT_CAKE - default "fq" if DEFAULT_FQ - default "fq_codel" if DEFAULT_FQ_CODEL - default "sfq" if DEFAULT_SFQ + default "pfifo_fast" + endif + +-- +2.28.0 + + +From 816ee502759e954304693813bd03d94986b28dba Mon Sep 17 00:00:00 2001 +From: Tk-Glitch +Date: Mon, 18 Feb 2019 17:40:57 +0100 +Subject: [PATCH 11/17] mm: Set watermark_scale_factor to 200 (from 10) + +Multiple users have reported it's helping reducing/eliminating stuttering +with DXVK. +--- + mm/page_alloc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c -index a29043ea9..3fb219747 100644 +index 898ff44f2c7b..e72074034793 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c -@@ -263,7 +263,7 @@ compound_page_dtor * const compound_page_dtors[] = { +@@ -330,7 +330,7 @@ int watermark_boost_factor __read_mostly; #else int watermark_boost_factor __read_mostly = 15000; #endif @@ -361,25 +505,74 @@ index a29043ea9..3fb219747 100644 static unsigned long nr_kernel_pages __initdata; static unsigned long nr_all_pages __initdata; - +-- +2.28.0 + + +From 90240bcd90a568878738e66c0d45bed3e38e347b Mon Sep 17 00:00:00 2001 +From: Tk-Glitch +Date: Fri, 19 Apr 2019 12:33:38 +0200 +Subject: [PATCH 12/17] Set vm.max_map_count to 262144 by default + +The value is still pretty low, and AMD64-ABI and ELF extended numbering +supports that, so we should be fine on modern x86 systems. + +This fixes crashes in some applications using more than 65535 vmas (also +affects some windows games running in wine, such as Star Citizen). +--- + include/linux/mm.h | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + diff --git a/include/linux/mm.h b/include/linux/mm.h -index 80bb6408f..6c8b55cd1 100644 +index bc05c3588aa3..b0cefe94920d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h -@@ -146,8 +146,7 @@ extern int mmap_rnd_compat_bits __read_mostly; +@@ -190,8 +190,7 @@ static inline void __mm_zero_struct_page(struct page *page) * not a hard limit any more. Although some userspace tools can be surprised by * that. */ -#define MAPCOUNT_ELF_CORE_MARGIN (5) -#define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) ++#define DEFAULT_MAX_MAP_COUNT (262144) + + extern int sysctl_max_map_count; + +-- +2.28.0 + + +From 3a34034dba5efe91bcec491efe8c66e8087f509b Mon Sep 17 00:00:00 2001 +From: Tk-Glitch +Date: Mon, 27 Jul 2020 00:19:18 +0200 +Subject: [PATCH 13/17] mm: bump DEFAULT_MAX_MAP_COUNT + +Some games such as Detroit: Become Human tend to be very crash prone with +lower values. +--- + include/linux/mm.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/linux/mm.h b/include/linux/mm.h +index b0cefe94920d..890165099b07 100644 +--- a/include/linux/mm.h ++++ b/include/linux/mm.h +@@ -190,7 +190,7 @@ static inline void __mm_zero_struct_page(struct page *page) + * not a hard limit any more. Although some userspace tools can be surprised by + * that. + */ +-#define DEFAULT_MAX_MAP_COUNT (262144) +#define DEFAULT_MAX_MAP_COUNT (524288) extern int sysctl_max_map_count; -From adb1f9df27f08e6488bcd80b1607987c6114a77a Mon Sep 17 00:00:00 2001 +-- +2.28.0 + + +From 977812938da7c7226415778c340832141d9278b7 Mon Sep 17 00:00:00 2001 From: Alexandre Frade Date: Mon, 25 Nov 2019 15:13:06 -0300 -Subject: [PATCH] elevator: set default scheduler to bfq for blk-mq +Subject: [PATCH 14/17] elevator: set default scheduler to bfq for blk-mq Signed-off-by: Alexandre Frade --- @@ -387,7 +580,7 @@ Signed-off-by: Alexandre Frade 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/elevator.c b/block/elevator.c -index 076ba7308e65..81f89095aa77 100644 +index 4eab3d70e880..79669aa39d79 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -623,15 +623,15 @@ static inline bool elv_support_iosched(struct request_queue *q) @@ -409,10 +602,14 @@ index 076ba7308e65..81f89095aa77 100644 } /* -From c3ec05777c46e19a8a26d0fc4ca0c0db8a19de97 Mon Sep 17 00:00:00 2001 +-- +2.28.0 + + +From e2111bc5989131c675659d40e0cc4f214df2f990 Mon Sep 17 00:00:00 2001 From: Alexandre Frade Date: Fri, 10 May 2019 16:45:59 -0300 -Subject: [PATCH] block: set rq_affinity = 2 for full multithreading I/O +Subject: [PATCH 15/17] block: set rq_affinity = 2 for full multithreading I/O requests Signed-off-by: Alexandre Frade @@ -421,10 +618,10 @@ Signed-off-by: Alexandre Frade 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h -index f3ea78b0c91c..4dbacc6b073b 100644 +index 28efe374a2e1..d4e5d35d2ece 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h -@@ -621,7 +621,8 @@ struct request_queue { +@@ -624,7 +624,8 @@ struct request_queue { #define QUEUE_FLAG_RQ_ALLOC_TIME 27 /* record rq->alloc_time_ns */ #define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ @@ -434,22 +631,26 @@ index f3ea78b0c91c..4dbacc6b073b 100644 void blk_queue_flag_set(unsigned int flag, struct request_queue *q); void blk_queue_flag_clear(unsigned int flag, struct request_queue *q); -From 8171d33d0b84a953649863538fdbe4c26c035e4f Mon Sep 17 00:00:00 2001 -From: Alexandre Frade -Date: Fri, 10 May 2019 14:32:50 -0300 -Subject: [PATCH] mm: set 2 megabytes for address_space-level file read-ahead - pages size +-- +2.28.0 -Signed-off-by: Alexandre Frade + +From 3c229f434aca65c4ca61772bc03c3e0370817b92 Mon Sep 17 00:00:00 2001 +From: Alexandre Frade +Date: Mon, 3 Aug 2020 17:05:04 +0000 +Subject: [PATCH 16/17] mm: set 2 megabytes for address_space-level file + read-ahead pages size + +Signed-off-by: Alexandre Frade --- include/linux/pagemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h -index a2adf95b3f9c..e804d9f7583a 100644 +index cf2468da68e9..007dea784451 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h -@@ -654,7 +654,7 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask); +@@ -655,7 +655,7 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask); void delete_from_page_cache_batch(struct address_space *mapping, struct pagevec *pvec); @@ -458,10 +659,14 @@ index a2adf95b3f9c..e804d9f7583a 100644 void page_cache_sync_readahead(struct address_space *, struct file_ra_state *, struct file *, pgoff_t index, unsigned long req_count); -From de7119e3db9fdb4c704355854a02a7e9fad931d4 Mon Sep 17 00:00:00 2001 +-- +2.28.0 + + +From 716f41cf6631f3a85834dcb67b4ce99185b6387f Mon Sep 17 00:00:00 2001 From: Steven Barrett Date: Wed, 15 Jan 2020 20:43:56 -0600 -Subject: [PATCH] ZEN: intel-pstate: Implement "enable" parameter +Subject: [PATCH 17/17] ZEN: intel-pstate: Implement "enable" parameter If intel-pstate is compiled into the kernel, it will preempt the loading of acpi-cpufreq so you can take advantage of hardware p-states without @@ -489,10 +694,10 @@ selection. 2 files changed, 5 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt -index ade4e6ec23e03..0b613370d28d8 100644 +index fb95fad81c79..3e92fee81e33 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt -@@ -1765,6 +1765,9 @@ +@@ -1857,6 +1857,9 @@ disable Do not enable intel_pstate as the default scaling driver for the supported processors @@ -503,10 +708,10 @@ index ade4e6ec23e03..0b613370d28d8 100644 Use intel_pstate as a scaling driver, but configure it to work with generic cpufreq governors (instead of diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c -index d2fa3e9ccd97c..bd10cb02fc0ff 100644 +index 36a469150ff9..aee891c9b78a 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c -@@ -2826,6 +2826,8 @@ static int __init intel_pstate_setup(char *str) +@@ -2845,6 +2845,8 @@ static int __init intel_pstate_setup(char *str) pr_info("HWP disabled\n"); no_hwp = 1; } @@ -515,3 +720,6 @@ index d2fa3e9ccd97c..bd10cb02fc0ff 100644 if (!strcmp(str, "force")) force_load = 1; if (!strcmp(str, "hwp_only")) +-- +2.28.0 +