View previous topic :: View next topic |
Author |
Message |
anonymous1234567 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Sep 2024 Posts: 3
|
Posted: Mon Sep 23, 2024 4:36 pm Post subject: Kernel mods, Modules, Patches, Initramfs, Cachyos etc etc |
|
|
Greetings to all! I am a cachyos user who is creating a gentoo machine in a VM and with this more customised version of gentoo, i plan to replicate my vm on my older computers which are a lot slower than my laptop I am using right now.
I am at the stage of my gentoo installations where I am working with USE Flags and will go onto configuring my kernel next, so I am planning.
On the cachyos github page GitHub - CachyOS/linux-cachyos: Archlinux Kernel based on different schedulers and some other performance improvements., when you scroll down, there is a chapter(?) that has the title of Other GNU/Linux distributions. As I want the performance benefits of cachyos but on a more optimised system that is gentoo which as it is source based. Is there a way for me to get the benefits of cachyos on gentoo?
eselect repository add CachyOS-kernels git https://github.com/Szowisz/CachyOS-kernels
emaint sync -r CachyOS-kernels
the above was copied from the cachyos github page. as this is mostly to do with the kernel, i believe that the people here would be able to help me sorta merge the two kernels as in, keep the gentoo kernel but bolt on the benefits of cachyos.
I am in the process of setting use flags as i have stated earlier, but I have worked on the gentoo kernel before when i was doing a more basic install to get a feel for things.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Another issue is that I dont exactly know how modules and patches work. Like how do I configure such things, this will be my first proper deep dive into kernels and I have read the wiki on this stuff but i think I am missing something as I cant seem to find a good guide on doing such things. How can i change my schedulars, how can I NOT use an initramfs or initrd? Ive heard that I just have to load drivers and otherstuff onto the kernel but how? Could someone send me the right guide for more kernel stuff? I dont want an initramfs as I dont need one, my filesystems and other stuff are not encrypted, so.
Thank you all for your time! It is greatly appreciated!
Moderator note: Fixed the long line. -- Banana |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pingtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 10 Sep 2021 Posts: 1135 Location: Richmond Hill, Canada
|
Posted: Mon Sep 23, 2024 5:06 pm Post subject: |
|
|
I think you should build a Gentoo kernel (yet, try gentoo-kernel-bin, so you don't have to build it you self) then try cachyos kernel and compare them for the specific thing you are looking for,
It is very hard to guess what is "benefit" of a kernel vs the other unless you know what you want. One's benefit may be disaster for other.
If you are new to Gentoo (A Rolling / meta distribution) I suggest you don't try too hard at day 1. just take everything as default, select a profile most match your expected usage.
Tuning is fine art, you are trading one thing for other that you think will benefit you most. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4878 Location: Bavaria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
anonymous1234567 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Sep 2024 Posts: 3
|
Posted: Mon Sep 23, 2024 6:07 pm Post subject: |
|
|
Thank you so much for these guide!! reading them right now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
anonymous1234567 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Sep 2024 Posts: 3
|
Posted: Mon Sep 23, 2024 6:18 pm Post subject: |
|
|
I would try the cachyos kernel but unfortunately it has dependancies on systemd (i tried installing it on Artix linux and couldnt get thru a sysd issue). I have done a gentoo install before through mint, but that was just a test so that I have a tiny bit of pracitice. that was also the first time i entered the menuconfig, but i didnt do much other than some light exploration. I understand that there probably isnt much point of doing this and I will admit, much of the reason for me doing this is purely because I have the freedom to be able to do this. I am not exactly a pro user, mostly stick to librewolf / cachyos browser and the terminal, but on gentoo, there are so many choices you can make and I really want to take advantage of that a) as practice before i go and do linux from scratch b) I really liked gentoo on my first 2 tries, and this is my third try before i install gentoo on hardware instead of virtual, and I want it to be over the top and as customised as i can make it. Like Ive delved into USE Flags, C and CXX Flags and RUST Flags and all that stuff and gotten rid / added so much that I would personally need, and having gone through all this effort to make this as customised as possible, I kinda find it wasteful not to customise the kernel. My computers are powerful enough that none of these customisations woud reeeaaallly give much of a difference if anything, but i want to do it nonetheless for the sake of it. CachyOS is giving me noticible improvements on my laptop compared to the arch linux that I had before and so if i can customised gentoo, then maybe I can get that extra bit of performance as well, if i decide to replace cachyos... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4878 Location: Bavaria
|
Posted: Mon Sep 23, 2024 6:32 pm Post subject: |
|
|
anonymous1234567 wrote: | Thank you so much for these guide!! reading them right now. |
You are very Welcome !
anonymous1234567 wrote: | [...] My computers are powerful enough that none of these customisations woud reeeaaallly give much of a difference if anything, but i want to do it nonetheless for the sake of it. CachyOS is giving me noticible improvements on my laptop compared to the arch linux that I had before and so if i can customised gentoo, then maybe I can get that extra bit of performance as well, if i decide to replace cachyos... |
... let me say that performance isn't everything ... think of IT security ... that's why I love Gentoo:
I can make everything as secure as I want it to be. Yes, security reduces usability... that's the big problem with any other Linux distribution: it has to be user-friendly, even if that makes it less secure (example: can you use your browser to upload any file from your home directory to the internet? Yes? Not me, I first have to move it to ~/Downloads so that my browser can access it ... but I want it that way!)
The same applies to the kernel: You would be shocked what the kernels of all distributions known to me allow ... I do it myself ... and gladly accept that some things don't work (e.g.: I can't use/make https://wiki.gentoo.org/wiki/PowerTOP ... but I don't need it either).
(Yes, I am paranoid about security) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pingtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 10 Sep 2021 Posts: 1135 Location: Richmond Hill, Canada
|
Posted: Mon Sep 23, 2024 6:50 pm Post subject: |
|
|
anonymous1234567 wrote: | I would try the cachyos kernel but unfortunately it has dependancies on systemd (i tried installing it on Artix linux and couldnt get thru a sysd issue). I have done a gentoo install before through mint, but that was just a test so that I have a tiny bit of pracitice. that was also the first time i entered the menuconfig, but i didnt do much other than some light exploration. I understand that there probably isnt much point of doing this and I will admit, much of the reason for me doing this is purely because I have the freedom to be able to do this. I am not exactly a pro user, mostly stick to librewolf / cachyos browser and the terminal, but on gentoo, there are so many choices you can make and I really want to take advantage of that a) as practice before i go and do linux from scratch b) I really liked gentoo on my first 2 tries, and this is my third try before i install gentoo on hardware instead of virtual, and I want it to be over the top and as customised as i can make it. Like Ive delved into USE Flags, C and CXX Flags and RUST Flags and all that stuff and gotten rid / added so much that I would personally need, and having gone through all this effort to make this as customised as possible, I kinda find it wasteful not to customise the kernel. My computers are powerful enough that none of these customisations woud reeeaaallly give much of a difference if anything, but i want to do it nonetheless for the sake of it. CachyOS is giving me noticible improvements on my laptop compared to the arch linux that I had before and so if i can customised gentoo, then maybe I can get that extra bit of performance as well, if i decide to replace cachyos... |
You are thinking too hard
May be Gentoo kernel also give you that performance you noticed, without any changes.
I cannot think of any reason a linux kernel have dependency on systemd. As systemd can only come up after kernel start function. so it is impossible to make something come up first that depend on something come up later. That will be a Chicken and Egg problem.
My suggestion is get something going with least effort then find the "deficiency", Should you run into trouble while tuning for the deficiency than ask forums for that specific symptom. that way we know where to begin. To ask for a general comparison for distro A vs Gentoo is just not practical. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20404
|
Posted: Tue Sep 24, 2024 5:16 am Post subject: |
|
|
@anonymous1234567,
I'd start by comparing it against a working Gentoo kernel of the same version. I would then try to make the common parts the same or similar. Maybe what's left isn't important, or could be easier to patch.
pingtoo wrote: | I cannot think of any reason a linux kernel have dependency on systemd. | I think there are features to "support" an init system? (I forget what Gentoo does). Code: | CONFIG_GENTOO_LINUX
CONFIG_GENTOO_LINUX_UDEV
CONFIG_GENTOO_LINUX_PORTAGE
CONFIG_GENTOO_LINUX_INIT_SCRIPT
CONFIG_GENTOO_LINUX_INIT_SYSTEMD |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 22439
|
Posted: Tue Sep 24, 2024 11:57 am Post subject: |
|
|
Those are Kconfig options added by a Gentoo patchset (rather than being in Linus' releases). They forcibly-enable kernel features that are known to be mandatory for various common setups, so that novice users have fewer ways to configure a kernel that is known not to work on a typical desktop/laptop install. Presumably, the underlying options are not sufficiently obvious that everyone would do the right thing on their own, so these provide a guide. Users who want to micromanage the kernel can disable those, at the downside of having certain common software be less functional. To me, that is different from saying the Linux kernel has a dependency on systemd (or udev). Perhaps CachyOS has its own patchset that delegates too much work off to systemd, or has an initramfs that only knows how to hand control to a systemd-based init system. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|