Performance optimized repositories - cachyos-aur

Hello fellow Garuda users, you probably remember @ptr1337 and me from testing of linux-cacule.
Linux CacULE (feedback & testing)

We are back! With the next level of performance improvements.

The current Arch Linux repo is compiled for compatibility with older CPUs. But who has an old CPU on the gaming computer?

Let's go to fix that and use performance-optimized packages and linux-cachyos - bore-scheduler BORE (Burst-Oriented Response Enhancer) CPU Scheduler.

You can use our performance-optimized packages in the cachyos repo on pretty much any Arch-based distro.

  • Arch Linux
  • Garuda Linux
  • EndeavourOS
  • etc.

You can add cachyos x86_64-v3 repo by this command:

  1. Get an archive containing the script for adding a repo.
wget https://mirror.cachyos.org/cachyos-repo.tar.xz
  1. Uncompress the archive.
tar xvf cachyos-repo.tar.xz
  1. Enter into the directory.
cd cachyos-repo
  1. Execute script cachyos-repo.sh (You must run the script as sudo).
sudo ./cachyos-repo.sh

Finally, execute this command to update all packages to x86-64-v3.

sudo pacman -Syu

You can also install and use our kernel - linux-cachyos

  1. Install linux-cachyos
sudo pacman -S linux-cachyos linux-cachyos-headers
  1. Update initramfs
sudo mkinitcpio -P
  1. Update GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg

Arch Linux did some benchmarks, but we already provide generic-v3 repo.

You will get 10-30% performance uplift

The geometric mean of test results was around 15% higher on march=haswell then
on baseline x86_64. Apart from john-the-ripper/md5, the tests were up to 36%
faster, with a median performance increase of around 10%.

Source: Arch Linux Developers Discuss Idea Of Providing An x86-64-v3 Port - Phoronix

If you have questions about cachyos repository with x86-64-v3, you can contact us.

Discord

Telegram

9 Likes

Very interesting developments!

Arch Linux wants to keep v1 baseline compatibility; does Garuda need to keep that same compatibility level?

I don't think anyone will choose Garuda to install on a very old computer.

Does 10 years count as old?

1 Like

x86_64-v3 provides support down to when?

There could also be an auto-selection of repos during install to have the best of both worlds.

It could be a lot of hassles to have it embedded by default, so it probably won't happen soon. Which means better do the switch manually. I'll let others do the testing and fine-tuning first though.

Thanks for another guide :wink: Shoutouts to @ptr1337 and @vnepogodin! Always great to see friends at CachyOS come up with new stuff :cat:

10 Likes

Good shit guys! I’ve always loved what you guys are doing with optimisation from the kernel to the packages. I used to use your guys repo on my system ages ago but had problems with some programs not opening like dolphin. Don’t seem to have any issues anymore which is perfect. Only had to delete the baloo directory but other than that no issues. I enjoy cachyos with its performance and optimisation but I miss too many features I enjoy on Garuda. So with bore kernel compiled myself and this repo it is really close to a merge of awesome Garuda software and performance improvements and optimisations of Cachyos. After updating my system there was almost 6gb worth to update including some base packages with the optimisations added from cachyos repos and after a reboot it really feels so much faster. Programs open faster and feel faster and even basic things like web pages and playing videos feel faster. So thanks for the hard work I appreciate it very much!

3 Likes

I have been using the ahlp repos for x86-64-v3.

I have tried CachyOS's repos before, but I prefered ahlp because it follows arch's repos ( core, community, extra, etc ), instead of a single one.

2 Likes

It might be an essential hint to comment out the regular (non v3) cachyos repo that gets added by using the script provided. Most packages are already available in Chaotic-AUR and get rebuilt more often.

6 Likes

Is it essentially identical but just split into the normal core extra and community repos with anything in the official arch repos rebuilt with these optimisations? Sounds interesting regardless. Might give it a go although cachyos repos are amazing themselves

I installed the packages and Firedragon is noticeably faster for opening heavy web applications!

btw why is cachyos not available from Garuda's kernel installation window?

I installed linux-cachyos manually following the instructions but the kernel doesn't show up for selection at boot-time. How do I boot on it?

1 Like

Install the headers package for the kernel you install

The instructions include that

Is it supposed to appear in the list of boot kernels, or it simply applies it to the default boot?

Got a first problem: WPS Office no longer launches.

Also, in the package manager, programs appear twice, as chaotic-aur and as cachyos.

Uninstalled the repos, and immediately WPS Office started working again.

Try the ALHP method and see if that works any differently for you

Did you perform this command after kernel installation?

sudo grub-mkconfig -o /boot/grub/grub.cfg

yes followed the instructions

I still wonder, why are all kernels available in the new Guaruda Kernel Settings page but not this one? That settings page works great.

I have no idea, I don't use Garuda only vanilla Arch Linux and I've never liked GUI way.

I always select kernel at the boot in the GRUB and that's it.

:point_up: This would explain why some of your advice in the forum is somewhat odd. Like this comment:

In Garuda we only need to type update-grub:

cat /usr/bin/update-grub
File: /usr/bin/update-grub
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

Or this comment:

Nothing wrong with nano, but it isn’t even installed by default on Garuda. micro is the default text editor.

I guess it makes sense that you are unfamiliar with Garuda’s features, since you don’t even run it.

Just curious: what is your motivation for participating in the forum?

3 Likes

Or just grubup :smiley:

2 Likes

I'm trying to install the kernel and I get execv: No such file or directory when running sudo pacman -S linux-cachyos linux-cachyos-headers. The initcpios are never created and thus the kernel cannot be loaded. Any ideas what might be going wrong?