Linux CacULE (feedback & testing)

5.12.2-4 Changelogs:

  • Updated cacule to cacule-rev2
  • switched back to 1000Hz as default, 2000 Hz can be still used if compiling with the PKGBUILD
  • zstd module compression removed until mkinitcpio will be updated into mainstream; thanks to @anon44840303

CacULE-Revision2 Changes:

  • Added 2000HZ as an option
  • Added Responsive wakup/new task to be placed in a CPU with least Interactive score (to balance out interactive tasks among cpus)
  • Added Interactivity levels mechanism
  • Increased the precision of lifetime normalize from x8 to x1024
  • Decoupled se.vruntime from cn.vruntime

There are two new sysctl options:

  • Default values:
kernel.sched_nr_fork_threshold=0
kernel.sched_fake_interactive_win_time_ms=1000
  • You can set kernel.sched_nr_fork_threshold to your threads -1

Example: I have a Intel i8700k with 6 Cores but 12 Threads because SMT, so the value would be 11 to set.

If the value is set to kernel.sched_nr_fork_threshold=0 ; the scheduler will auto detect your cpu and set the value with ' "x" -1 '

Kernel will be deployed soon to the Chaotic-AUR, Skylake build is as always available on my server.

Regards!

7 Likes

I'm not a gamer but using this kernel with kde/compiz and the 99-sysctl-cacule.conf tweaks above and my amd ryzen 9 garuda system flies. any plans for a linux-cacule-zen2? (just asking lol)

4 Likes

:slight_smile:

4 Likes

Why would you run kde with compiz?

1 Like

because I prefer its desktop effects and because i can.

2 Likes

You can easily compile the kernel with zen2 gcc optimizing yourself.

Maybe add some hours then I can add some amd fixes and some other things will be updated and fixed.

5 Likes

CacULE 5.12.2-6 Changes:

  • stripped the used config and removed things which are not needed
  • disabled bpf preloading --> grub booting error fixed
  • reverted the previous update since it seems to be perform on every system different and not stable
  • disabled NO_HZ_FULL
  • decreased preemption latency to 2ms

added cacule-testing kernel

  • since there were many changes the last time at cacule's patch, i decided to create extra "testing-kernel" which include some experimental things
  • its for a better overview feedback to improve the kernel

The readme will be updated and also the first post for some sysctl config values.

Both kernels are already deployed to the chaotic-aur and the skylake build variant can be found at my fileserver https://ptr1337.dev

Would be good if users want to test also the testing kernel to get a more feedback due improvements or decreasedments or bugs.

Regards.

4 Likes

Feedback from me (Main linux-cacule tester)
I successfully completed Geekbench 5 and smoothly play Xonotic on very high settings on Intel Core i7-7200U. Yes benchmark + gaming at same time.

Desktop Environment smooth without micro lags, KVM machines runs very well.

CacULE 5.12.2-6 looks solid, stable and I recommend compile kernel for your CPU architecture.

5 Likes

Hi, @ptr1337
Well, today I tried to give Linux-Cacule a shot. But, unfortunately, it didn't boot up at all. My hardware is low-end , but till now, most of the kernels work, including Linux-LTS, Linux-zen, Linux-tkg-bmq.

Here is command that I gave

sudo pacman -S linux-lts linux-lts-headers linux-cacule linux-cacule-headers

Linux LTS boots fine, but not Cacule.

My inxi

System:
  Kernel: 5.12.2-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen 
  root=UUID=306bf4b8-d175-49c7-8393-70cdeb3fee8a rw rootflags=subvol=@ quiet 
  splash rd.udev.log_priority=3 vt.global_cursor_default=0 
  systemd.unified_cgroup_hierarchy=1 loglevel=3 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.29 wm: muffin vt: 7 
  dm: LightDM 1.30.0 Distro: Garuda Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: WIPRO model: H61H2-M4 v: 1.0 serial: <filter> 
  BIOS: American Megatrends v: 4.6.5 date: 06/20/2013 
CPU:
  Info: Dual Core model: Intel Pentium G2020 bits: 64 type: MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  cache: L2: 3 MiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 11573 
  Speed: 1971 MHz min/max: 1600/2900 MHz Core speeds (MHz): 1: 1971 2: 2400 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics 
  vendor: Elite Systems driver: i915 v: kernel bus-ID: 00:02.0 
  chip-ID: 8086:0152 class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 driver: loaded: intel 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.1x8.0") 
  s-diag: 412mm (16.2") 
  Monitor-1: VGA1 res: 1360x768 hz: 60 dpi: 49 size: 700x390mm (27.6x15.4") 
  diag: 801mm (31.5") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 2500 (IVB GT1) 
  v: 4.2 Mesa 21.1.0 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Elite Systems driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 
  chip-ID: 8086:1c20 class-ID: 0403 
  Sound Server-1: ALSA v: k5.12.2-zen1-1-zen running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.27 running: yes 
Network:
  Device-1: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: Elite Systems 
  driver: alx v: kernel port: e000 bus-ID: 02:00.0 chip-ID: 1969:1091 
  class-ID: 0200 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Ralink MT7601U Wireless Adapter type: USB driver: mt7601u 
  bus-ID: 2-1.3:3 chip-ID: 148f:7601 class-ID: 0000 serial: <filter> 
  IF: wlp0s29u1u3 state: up mac: <filter> 
Drives:
  Local Storage: total: 689.33 GiB used: 10.52 GiB (1.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital 
  model: WD5000AAKX-60U6AA0 size: 465.76 GiB block-size: physical: 512 B 
  logical: 512 B speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> 
  rev: 1H18 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital 
  model: WDS240G2G0A-00JH30 size: 223.57 GiB block-size: physical: 512 B 
  logical: 512 B speed: 3.0 Gb/s rotation: SSD serial: <filter> rev: 0400 
  scheme: MBR 
Partition:
  ID-1: / raw-size: 78.12 GiB size: 78.12 GiB (100.00%) 
  used: 10.52 GiB (13.5%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17 
  ID-2: /home raw-size: 78.12 GiB size: 78.12 GiB (100.00%) 
  used: 10.52 GiB (13.5%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17 
  ID-3: /var/log raw-size: 78.12 GiB size: 78.12 GiB (100.00%) 
  used: 10.52 GiB (13.5%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17 
  ID-4: /var/tmp raw-size: 78.12 GiB size: 78.12 GiB (100.00%) 
  used: 10.52 GiB (13.5%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17 
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100) 
  ID-1: swap-1 type: zram size: 1.86 GiB used: 60.4 MiB (3.2%) 
  priority: 32767 dev: /dev/zram0 
  ID-2: swap-2 type: zram size: 1.86 GiB used: 55.6 MiB (2.9%) 
  priority: 32767 dev: /dev/zram1 
  ID-3: swap-3 type: partition size: 3.9 GiB used: 0 KiB (0.0%) 
  priority: 1024 dev: /dev/sdb6 maj-min: 8:22 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 208 Uptime: 48m wakeups: 0 Memory: 3.72 GiB 
  used: 2.14 GiB (57.6%) Init: systemd v: 248 tool: systemctl Compilers: 
  gcc: 10.2.0 clang: 11.1.0 Packages: pacman: 1177 lib: 288 Shell: Zsh 
  v: 5.8 running-in: gnome-terminal inxi: 3.3.04 
4 Likes

Hey,

It got updated now to 5.12.3 and got also several changes in the config.

Are you using grub or systemd-boot ?

Did you got any error or anything else ?

2 Likes

Grub

Not at all. It just threw me rootfs

2 Likes

Did you reintall the Kernel from the chaotic aur ?

Have you done after mkinitcpip -P ?

also grub mkconfig is needed.

i dont use garuda, i dont know their behavuour

3 Likes

Both of these commands happen automatically after installing a kernel using pacman hooks, so that shouldn't be an issue :thinking:

3 Likes

I'm not sure if it true, because I remember scenario when I missed use sudo mkinitcpio -P and i faced boot issues.

I always write following commands after any kernel, drivers changes.
sudo mkinitcpio -P
If I use GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg
If I use systemd-boot
sudo bootctl update

EDIT:
My work laptop have Intel(R) Core(TM) i5-4210M, it's old hardware and linux-cacule on Garuda works perfectly.

1 Like

Did you try compile kernel for your CPU?
MNATIVE_INTEL (You can select that, if you install kernel from AUR)

1 Like

Yes

Yep

Yep, I did that.

Anyways, I will delete all the other kernels except zen and reinstall in cleaner way…

1 Like

Still got no error message ?

sudo dmesg

Wait, error is

mount: /new_root : can't find UUID= 306Bf <some long UUID>
You are now being dropped into an emergency shell. 
sh : can't  access  tty: job control turned off

Seems like your grub didnt created the correct cofnig.

so far every tester didnt got that problem.
What i saw, that is garuda recovering old modules or something like this. Maybe cause something with that ?

For those who can’t remember this long formula, like me :smiley: ,
just use

sudo update-grub

Repositories (chaotic-aur), included in Garuda Linux.