diff options
author | ptr1337 | 2021-04-20 06:49:16 +0200 |
---|---|---|
committer | ptr1337 | 2021-04-20 06:49:16 +0200 |
commit | 987507ede1ab0c18e4f98b77b070f7293f48eba7 (patch) | |
tree | 02759d87d6bb358f26d886769d98a6a2c3a73a37 | |
parent | 7901e142de74f757b4bd20456a0bfb4c0bf5e1d5 (diff) | |
download | aur-987507ede1ab0c18e4f98b77b070f7293f48eba7.tar.gz |
update
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | README.md | 56 | ||||
-rw-r--r-- | cacule_suggested_config | 86 | ||||
-rw-r--r-- | config | 2 | ||||
-rw-r--r-- | config8 | 4 |
6 files changed, 15 insertions, 158 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-raspberrypi4-cacule-stable pkgdesc = Raspberry Pi 4 Kernel with the cacule schedeuler, aarch64 and armv7 - pkgver = 5.11.11 - pkgrel = 2 + pkgver = 5.11.15 + pkgrel = 1 url = http://www.kernel.org/ arch = armv7h arch = aarch64 @@ -13,14 +13,14 @@ pkgbase = linux-raspberrypi4-cacule-stable makedepends = bc makedepends = git options = !strip - source = https://github.com/raspberrypi/linux/archive/05ad8a29d5dadb2db0b809e6cc1ee3d8d6380f61.tar.gz + source = https://github.com/raspberrypi/linux/archive/4c6a570ea7d7586ff17a0166a222de88d0ea7050.tar.gz source = cmdline.txt source = linux.preset source = 60-linux.hook source = 90-linux.hook source = 0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch source = cacule-5.11.patch - md5sums = 7d2fa3944b651baa54cc79823b09a6b3 + md5sums = 4dbbc81c46a9f467dcba755575eac72b md5sums = 31c02f4518d46deb5f0c2ad1f8b083cd md5sums = 86d4a35722b5410e3b29fc92dae15d4b md5sums = ce6c81ad1ad1f8b333fd6077d47abdaf @@ -30,15 +30,14 @@ pkgbase = linux-raspberrypi4-cacule-stable source_armv7h = config source_armv7h = config.txt source_armv7h = cacule-32bit-converter.patch - md5sums_armv7h = 700675c55dc17c9b56413b8736a6cad9 + md5sums_armv7h = 0ce3d9c05a72b33a1b98ecbc64870eb1 md5sums_armv7h = 9669d916a5929a2eedbd64477f83d99e md5sums_armv7h = 02808e3fb2f6b142e0cd9f1ae50a8d46 source_aarch64 = config8 source_aarch64 = config8.txt - md5sums_aarch64 = 5f5c0d40ad2f5010270905bb65e36886 + md5sums_aarch64 = 4ac3dea5e9b48c55a48e881dc5151423 md5sums_aarch64 = 9669d916a5929a2eedbd64477f83d99e pkgname = linux-raspberrypi4-cacule-stable pkgname = linux-raspberrypi4-cacule-stable-headers - @@ -7,12 +7,12 @@ buildarch=12 pkgbase=linux-raspberrypi4-cacule-stable -_commit=05ad8a29d5dadb2db0b809e6cc1ee3d8d6380f61 +_commit=4c6a570ea7d7586ff17a0166a222de88d0ea7050 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="Raspberry Pi 4 with the cacule scheduler" -pkgver=5.11.11 -pkgrel=2 +pkgver=5.11.15 +pkgrel=1 pkgdesc="Raspberry Pi 4 Kernel with the cacule schedeuler, aarch64 and armv7" arch=('armv7h' 'aarch64') url="http://www.kernel.org/" @@ -29,17 +29,17 @@ source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" ) source_armv7h=('config' 'config.txt' 'cacule-32bit-converter.patch') source_aarch64=('config8' 'config8.txt') -md5sums=('7d2fa3944b651baa54cc79823b09a6b3' +md5sums=('4dbbc81c46a9f467dcba755575eac72b' '31c02f4518d46deb5f0c2ad1f8b083cd' '86d4a35722b5410e3b29fc92dae15d4b' 'ce6c81ad1ad1f8b333fd6077d47abdaf' '441ec084c47cddc53e592fb0cbce4edf' 'f66a7ea3feb708d398ef57e4da4815e9' 'b85d9c75a137a4278537386ca274da9d') -md5sums_armv7h=('700675c55dc17c9b56413b8736a6cad9' +md5sums_armv7h=('0ce3d9c05a72b33a1b98ecbc64870eb1' '9669d916a5929a2eedbd64477f83d99e' '02808e3fb2f6b142e0cd9f1ae50a8d46') -md5sums_aarch64=('5f5c0d40ad2f5010270905bb65e36886' +md5sums_aarch64=('4ac3dea5e9b48c55a48e881dc5151423' '9669d916a5929a2eedbd64477f83d99e') # setup vars diff --git a/README.md b/README.md deleted file mode 100644 index 91af7cbf50be..000000000000 --- a/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# linux-raspberrypi4-cacule-PKGBUILD - -## PKGBUILD for archlinuxarm with the cacule schedeuler. - -So far no perfomance/improvements tests done. Should work with desktop usage with a much better responsivty. -On x86_64 its one of the best schedeulers i have ever used. - -The patch can be applied for armv7 and armv8. You can use Cacule and Cacule-RDB. Cacule-RDB is still a expermintal thing. - -## Informations to Cacule-RDB - -This is an experimental load balancer for Cachy/CacULE. It is a lightweight -load balancer which is a replacement of CFS load balancer. It migrates -tasks based on their HRRN/Interactivity Scores (IS). Most of CFS load balancing-related -updates (cfs and se updates loads) are removed. The RDB balancer follows CFS -paradigm in which RDB balancing happen at the same points CFS does. RDB balancing happens -in three functions: newidle_balance, idle_balance, and active_balance. The newidle_balance -is called exactly at the same time as CFS did (when pick next task fails to find any task to run). -The RDB newidle_balance pulls one task that is the highest HRRN/IS from any CPU. The RDB idle_balance -is called in trigger_load_balance when CPU is idle, it does the same as newidle_balance but with -slight changes since newidle_balance is a special case. The RDB active_balance checks if the current -(NORMAL) runqueue has one task, if so, it pulls the highest of the highest HRRN/IS among all other CPUS. If the -runqueue has more than one task, then it pulls any highest HRRN/IS (same as idle does). A CPU cannot pull a task -from another CPU that has fewer tasks (when pull any). For the all three balancing -newidle_balance, idle_balance, and active_balance, the cpu first tries to pull from a CPU that shares the same -cache (cpus_share_cache). If can't pull any then it tries to pull from any CPU even though they are not in the same core. -Only when pulling the highest of the highest HRRN/IS (i.e. active_balance when CPU has one task), there is no check for -shared cache. - -Since trigger_load_balance is called for every tick, there is a guard time to prevent frequent tasks migration to reduce -runqueues locking and to reduce unnecessary tasks migrations. The time is 3ms after each active_balance. This time -guard is specifically for HZ=5 -0,1000. We don't want to run balancing every 2ms or 1ms to prevent regression in performance. -Here is how frequent the trigger_load_balance would run balancer with given HZ values: - -- HZ=100 runs every ~10ms -- HZ=250 runs every ~4ms -- HZ=300 runs every ~3ms -- HZ=500 runs every ~4ms -- HZ=1000 runs every ~3ms - - -### How to compile it - - git clone https://github.com/ptr1337/linux-raspberrypi4-cacule.git - cd linux-raspberrypi4-cacule - Then remove in the PKGBUILD if building for ***aarch64*** the 32-bit-converter.patch also the md5 - If you decide to use it without the RDB you need to remove in the config CONFIG_CACULE_RDB=y - then compile it with makepkg -si - - -reboot your device. - -## Cacule Schedeuler Informations - -https://github.com/hamadmarri/cacule-cpu-scheduler diff --git a/cacule_suggested_config b/cacule_suggested_config deleted file mode 100644 index f6d5ae1a2b8d..000000000000 --- a/cacule_suggested_config +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/bash - -configure() { -msg2 "Enable CacULE CPU scheduler..." -scripts/config --enable CONFIG_CACULE_SCHED - -msg2 "Disable CFS" -scripts/config --disable CONFIG_FAIR_GROUP_SCHED -scripts/config --disable CONFIG_CFS_BANDWIDTH - - msg2 "Apply suggested config" - msg2 "Security Cacule" - scripts/config --disable CONFIG_SECURITY - scripts/config --disable CONFIG_HARDENED_USERCOPY - msg2 "General Setup Cacule" - scripts/config --disable CONFIG_EXPERT - scripts/config --disable CONFIG_SCHED_AUTOGROUP - scripts/config --disable CONFIG_CGROUP_SCHED - scripts/config --disable CONFIG_BSD_PROCESS_ACCT - scripts/config --disable CONFIG_TASK_XACCT - scripts/config --disable CONFIG_PSI - scripts/config --disable CONFIG_AUDIT - scripts/config --disable CONFIG_VIRT_CPU_ACCOUNTING_GEN - scripts/config --enable CONFIG_TICK_CPU_ACCOUNTING - scripts/config --disable CONFIG_MEMCG - scripts/config --disable CONFIG_CGROUP_CPUACCT - scripts/config --disable CONFIG_CGROUP_DEBUG - scripts/config --disable CONFIG_CHECKPOINT_RESTORE - scripts/config --disable CONFIG_SLAB_MERGE_DEFAULT - scripts/config --disable CONFIG_SLAB_FREELIST_HARDENED - scripts/config --disable CONFIG_SLUB_CPU_PARTIAL - scripts/config --disable CONFIG_PROFILING - msg2 "Processor type and features Cacule" - scripts/config --disable CONFIG_RETPOLINE - scripts/config --disable CONFIG_X86_5LEVEL - scripts/config --disable CONFIG_KEXEC - scripts/config --disable CONFIG_KEXEC_FILE - scripts/config --disable CONFIG_CRASH_DUMP - scripts/config --set-val CONFIG_NR_CPUS "4" #the number of your CPUs - msg2 "Power Cacule" - scripts/config --enable CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE - scripts/config --enable CONFIG_CPU_FREQ_GOV_PERFORMANCE - scripts/config --disable CONFIG_CPU_FREQ_GOV_ONDEMAND - msg2 "Kernel hacking Cacule" - scripts/config --disable CONFIG_FTRACE - scripts/config --disable CONFIG_DEBUG_KERNEL - scripts/config --disable CONFIG_PAGE_EXTENSION - scripts/config --disable CONFIG_PRINTK_TIME - scripts/config --disable CONFIG_DEBUG_INFO - scripts/config --set-val CONFIG_RCU_CPU_STALL_TIMEOUT 4 - scripts/config --disable CONFIG_ENABLE_MUST_CHECK - scripts/config --disable CONFIG_STRIP_ASM_SYMS - scripts/config --disable CONFIG_UNUSED_SYMBOLS - scripts/config --disable CONFIG_DEBUG_FS - scripts/config --disable CONFIG_OPTIMIZE_INLINING - scripts/config --disable CONFIG_DEBUG_SECTION_MISMATCH - scripts/config --disable CONFIG_SECTION_MISMATCH_WARN_ONLY - scripts/config --disable CONFIG_STACK_VALIDATION - scripts/config --disable CONFIG_DEBUG_FORCE_WEAK_PER_CPU - scripts/config --disable CONFIG_MAGIC_SYSRQ - scripts/config --disable CONFIG_MAGIC_SYSRQ_SERIAL - scripts/config --disable CONFIG_PAGE_EXTENSION - scripts/config --disable CONFIG_DEBUG_PAGEALLOC - scripts/config --disable CONFIG_PAGE_OWNER - scripts/config --disable CONFIG_DEBUG_MEMORY_INIT - scripts/config --disable CONFIG_HARDLOCKUP_DETECTOR - scripts/config --disable CONFIG_SOFTLOCKUP_DETECTOR - scripts/config --disable CONFIG_DETECT_HUNG_TASK - scripts/config --disable CONFIG_WQ_WATCHDOG - scripts/config --disable CONFIG_SCHED_DEBUG - scripts/config --disable CONFIG_SCHEDSTATS - scripts/config --set-val CONFIG_PANIC_TIMEOUT 10 - scripts/config --disable CONFIG_SCHED_STACK_END_CHECK - scripts/config --disable CONFIG_DEBUG_BUGVERBOSE - scripts/config --disable CONFIG_RCU_TRACE - scripts/config --set-val CONFIG_RCU_CPU_STALL_TIMEOUT 4 - scripts/config --disable CONFIG_FAULT_INJECTION - scripts/config --disable CONFIG_LATENCYTOP - scripts/config --disable CONFIG_PROVIDE_OHCI1394_DMA_INIT - scripts/config --disable RUNTIME_TESTING_MENU - scripts/config --disable CONFIG_MEMTEST - scripts/config --disable CONFIG_KGDB - scripts/config --disable CONFIG_EARLY_PRINTK - scripts/config --disable CONFIG_DOUBLEFAULT - - } @@ -143,7 +143,7 @@ CONFIG_MEMCG_KMEM=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_WRITEBACK=y CONFIG_CGROUP_SCHED=y -CONFIG_FAIR_GROUP_SCHED=y +CONFIG_FAIR_GROUP_SCHED=n CONFIG_CFS_BANDWIDTH=y CONFIG_CACULE_SCHED=y CONFIG_CACULE_RDB=n @@ -142,7 +142,7 @@ CONFIG_MEMCG_KMEM=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_WRITEBACK=y CONFIG_CGROUP_SCHED=y -CONFIG_FAIR_GROUP_SCHED=y +CONFIG_FAIR_GROUP_SCHED=n CONFIG_CFS_BANDWIDTH=y CONFIG_CACULE_SCHED=y CONFIG_CACULE_RDB=n @@ -166,7 +166,7 @@ CONFIG_USER_NS=y CONFIG_PID_NS=y CONFIG_NET_NS=y CONFIG_CHECKPOINT_RESTORE=y -CONFIG_SCHED_AUTOGROUP=y +CONFIG_SCHED_AUTOGROUP=n # CONFIG_SYSFS_DEPRECATED is not set CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y |