You are not logged in.

#1 2017-01-02 14:09:07

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Kernel compression/decompression algorithm

I was wondering how can I change my kernel compression to LZ4. I didn't found anything on the internet. I've already installed the LZ4 package:
https://www.archlinux.org/packages/core/x86_64/lz4/
but i  think I'm not using it yet. How can I switch to this kernel compressor/decompressor algorithm?

Last edited by EFarmer (2017-01-02 14:10:54)

Offline

#2 2017-01-02 14:15:40

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,806
Website

Re: Kernel compression/decompression algorithm

have a look inside /etc/mkinitcpio.conf. Uncomment the compression you want and rebuild your initram


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#3 2017-01-02 14:20:28

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

ugjka wrote:

have a look inside /etc/mkinitcpio.conf. Uncomment the compression you want and rebuild your initram

Does mkinitcpio -p linux rebuild initram?

Offline

#4 2017-01-02 14:21:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,806
Website

Re: Kernel compression/decompression algorithm

yes


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#5 2017-01-02 14:28:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Kernel compression/decompression algorithm

Do you want to change the compression used for the kernel, or for your initramfs?  All the above is just for the initramfs.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2017-01-02 14:33:13

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

Trilby wrote:

Do you want to change the compression used for the kernel, or for your initramfs?  All the above is just for the initramfs.

Oh, kernel. Sorry. I didn't know it. How can I apply that change for the entire kernel?

Offline

#7 2017-01-02 19:05:56

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

Any suggestion?

Offline

#8 2017-01-02 19:16:06

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: Kernel compression/decompression algorithm

EFarmer wrote:

Any suggestion?

Please do not do that Code_of_conduct#Bumping

$ zgrep CONFIG_KERNEL /proc/config.gz
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set

You would need to rebuild the kernel with one of the other options set the wiki contains a number of guides to building the kernel you would then be responsible for keeping the kernel updates yourself along with any external kernel modules.
Also would first read through upstreams notes on the relative merits of each option.

Offline

#9 2017-01-02 19:18:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Kernel compression/decompression algorithm

You'll need to rebuild your kernel

Online

#10 2017-01-03 20:32:51

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

loqs wrote:
EFarmer wrote:

Any suggestion?

Please do not do that Code_of_conduct#Bumping

$ zgrep CONFIG_KERNEL /proc/config.gz
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set

You would need to rebuild the kernel with one of the other options set the wiki contains a number of guides to building the kernel you would then be responsible for keeping the kernel updates yourself along with any external kernel modules.
Also would first read through upstreams notes on the relative merits of each option.

How can I edit that using this guide https://wiki.archlinux.org/index.php/Ke … ild_System?

Offline

#11 2017-01-03 20:38:05

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: Kernel compression/decompression algorithm

EFarmer wrote:

How can I edit that using this guide https://wiki.archlinux.org/index.php/Ke … ild_System?

Changing_prepare
Did you edit the config file directly or did you try to use one of the menu based config generators?
What commands did you run and what output was generated?

Offline

#12 2017-01-03 20:47:22

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

loqs wrote:
EFarmer wrote:

How can I edit that using this guide https://wiki.archlinux.org/index.php/Ke … ild_System?

Changing_prepare
Did you edit the config file directly or did you try to use one of the menu based config generators?
What commands did you run and what output was generated?

Well, I didn't run/edit anything for now. I was just asking what's the better way to change that kernel comp/decomp algorithm (The Arch Way or the Traditional Way)? Can't I just edit that config file directly?

Last edited by EFarmer (2017-01-03 20:47:41)

Offline

#13 2017-01-03 20:54:23

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: Kernel compression/decompression algorithm

EFarmer wrote:

Can't I just edit that config file directly?

Yes assuming you mean one of config or config.x86_64 in the directory you building the package in.

If you need to change a few config options you can edit config file in the source. Change or copy existing config file to config.x86_64 for 64bit system and config for 32bit system.

Then you will need to Generate_new_checksums

Offline

#14 2017-01-03 21:36:51

EFarmer
Member
Registered: 2017-01-01
Posts: 52

Re: Kernel compression/decompression algorithm

loqs wrote:
EFarmer wrote:

Can't I just edit that config file directly?

Yes assuming you mean one of config or config.x86_64 in the directory you building the package in.

If you need to change a few config options you can edit config file in the source. Change or copy existing config file to config.x86_64 for 64bit system and config for 32bit system.

Then you will need to Generate_new_checksums

Should I download the clean kernel from http://kernel.org? If yes, which one?

Offline

#15 2017-01-03 21:49:03

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: Kernel compression/decompression algorithm

EFarmer wrote:

Should I download the clean kernel from http://kernel.org? If yes, which one?

No if you are following https://wiki.archlinux.org/index.php/Ke … ild_System
Yes if you are following https://wiki.archlinux.org/index.php/Ke … ompilation
The two guides can not be mixed and matched and should already answer if you need sources from kernel.org.
Its your choice as to which version you build.

Offline

Board footer

Powered by FluxBB