{"id":16641916,"url":"https://github.com/ptr1337/linux-raspberrypi4-cacule-lts","last_synced_at":"2025-07-18T02:39:32.520Z","repository":{"id":119299001,"uuid":"356456432","full_name":"ptr1337/linux-raspberrypi4-cacule-lts","owner":"ptr1337","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-16T20:24:14.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T05:29:48.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ptr1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-10T03:14:16.000Z","updated_at":"2021-07-10T12:25:08.000Z","dependencies_parsed_at":"2023-07-08T06:52:33.542Z","dependency_job_id":null,"html_url":"https://github.com/ptr1337/linux-raspberrypi4-cacule-lts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ptr1337/linux-raspberrypi4-cacule-lts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptr1337%2Flinux-raspberrypi4-cacule-lts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptr1337%2Flinux-raspberrypi4-cacule-lts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptr1337%2Flinux-raspberrypi4-cacule-lts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptr1337%2Flinux-raspberrypi4-cacule-lts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptr1337","download_url":"https://codeload.github.com/ptr1337/linux-raspberrypi4-cacule-lts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptr1337%2Flinux-raspberrypi4-cacule-lts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265692677,"owners_count":23812205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T07:48:16.247Z","updated_at":"2025-07-18T02:39:32.493Z","avatar_url":"https://github.com/ptr1337.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linux-raspberrypi4-cacule-PKGBUILD\n\n## PKGBUILD for archlinuxarm with the cacule schedeuler.\n\nSo far no perfomance/improvements tests done. Should work with desktop usage with a much better responsivty. \nOn x86_64 its one of the best schedeulers i have ever used. \n\nThe patch can be applied for armv7 and armv8. You can use Cacule and Cacule-RDB. Cacule-RDB is still a expermintal thing. \n\n## Informations to Cacule-RDB\n\nThis is an experimental load balancer for Cachy/CacULE. It is a lightweight\nload balancer which is a replacement of CFS load balancer. It migrates\ntasks based on their HRRN/Interactivity Scores (IS). Most of CFS load balancing-related\nupdates (cfs and se updates loads) are removed. The RDB balancer follows CFS\nparadigm in which RDB balancing happen at the same points CFS does. RDB balancing happens\nin three functions: newidle_balance, idle_balance, and active_balance. The newidle_balance\nis called exactly at the same time as CFS did (when pick next task fails to find any task to run).\nThe RDB newidle_balance pulls one task that is the highest HRRN/IS from any CPU. The RDB idle_balance\nis called in trigger_load_balance when CPU is idle, it does the same as newidle_balance but with\nslight changes since newidle_balance is a special case. The RDB active_balance checks if the current\n(NORMAL) runqueue has one task, if so, it pulls the highest of the highest HRRN/IS among all other CPUS. If the\nrunqueue has more than one task, then it pulls any highest HRRN/IS (same as idle does). A CPU cannot pull a task\nfrom another CPU that has fewer tasks (when pull any). For the all three balancing\nnewidle_balance, idle_balance, and active_balance, the cpu first tries to pull from a CPU that shares the same\ncache (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.\nOnly when pulling the highest of the highest HRRN/IS (i.e. active_balance when CPU has one task), there is no check for\nshared cache.\n\nSince trigger_load_balance is called for every tick, there is a guard time to prevent frequent tasks migration to reduce\nrunqueues locking and to reduce unnecessary tasks migrations. The time is 3ms after each active_balance. This time\nguard is specifically for HZ=5 \n0,1000. We don't want to run balancing every 2ms or 1ms to prevent regression in performance.\nHere is how frequent the trigger_load_balance would run balancer with given HZ values:\n\n- HZ=100 runs every ~10ms\n- HZ=250 runs every ~4ms\n- HZ=300 runs every ~3ms\n- HZ=500 runs every ~4ms\n- HZ=1000 runs every ~3ms\n\n\n### How to compile it \n\n    git clone https://github.com/ptr1337/linux-raspberrypi4-cacule.git\n    cd linux-raspberrypi4-cacule\n    Then remove in the PKGBUILD if building for ***aarch64*** the 32-bit-converter.patch also the md5\n    If you decide to use it without the RDB you need to remove in the config CONFIG_CACULE_RDB=y\n    then compile it with makepkg -si\n    \n\nreboot your device. \n\n## Cacule Schedeuler Informations\n\nhttps://github.com/hamadmarri/cacule-cpu-scheduler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptr1337%2Flinux-raspberrypi4-cacule-lts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptr1337%2Flinux-raspberrypi4-cacule-lts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptr1337%2Flinux-raspberrypi4-cacule-lts/lists"}