LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2023, 10:37 AM   #3061
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568

Quote:
Originally Posted by baldzhang View Post
1) for the size/speed balance, xz/zstd could be compared
xz is better sizewise. The speed does not matter: modules are very small, only a small number of them are loaded and only once.
 
Old 10-30-2023, 11:44 AM   #3062
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,185

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by Petri Kaukasoina View Post
xz is better sizewise. The speed does not matter: modules are very small, only a small number of them are loaded and only once.
It's not the time spent on loading the modules that matters.
It's the time spent compressing them (the whole initrd).

zstd -9 takes less than 5% the time by xz -6.
 
Old 10-30-2023, 12:01 PM   #3063
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
Quote:
Originally Posted by guanx View Post
It's not the time spent on loading the modules that matters.
It's the time spent compressing them (the whole initrd).

zstd -9 takes less than 5% the time by xz -6.
It was about "universal initramfs file" containing all the modules.

If you leave modules uncompressed and compress the whole initrd, it will explode when the initrd is loaded because all the uncompressed modules would use lots of RAM. The idea is to compress all the modules individually with xz. Look at the initrd of the slackware install disk. When the boot loader loads the initrd, the modules stay compressed, so RAM is saved. Only those modules that are then modprobed are uncompressed. The time to do the compressing of modules does not matter, and PV does the compressing once. It's not much: I use xz to compress my bzImage, modules and firmware files.
 
Old 10-30-2023, 12:37 PM   #3064
baldzhang
Member
 
Registered: Aug 2012
Posts: 58

Rep: Reputation: Disabled
it is about the whole initramfs size
xz: smaller, faster load from disk
zstd: bigger, very faster decompression in memory
 
Old 10-30-2023, 05:17 PM   #3065
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 584

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Has anyone else noticed that KDEs 'ark' in slackware64-current will no longer open *.tar.bz2 archives.

I just noticed it today because I very seldom run into bz2 archives.

http://www.mplayerhq.hu/MPlayer/rele...apshot.tar.bz2

Tried several others also to no avail.

I also 'downgraded' to ark in the 15.0 repository but installed in current.... also a no-go.

However... in a complete 15.0 setup.... no problem.

So, it's something else that changed between 15.0 & current.


tar itself with the -j option extracts it just fine... so it's not a tar nor a bzip problem.
 
1 members found this post helpful.
Old 10-30-2023, 05:22 PM   #3066
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by glennmcc View Post
Has anyone else noticed that KDEs 'ark' in slackware64-current will no longer open *.tar.bz2 archives.

I just noticed it today because I very seldom run into bz2 archives.

http://www.mplayerhq.hu/MPlayer/rele...apshot.tar.bz2

Tried several others also to no avail.

I also 'downgraded' to ark in the 15.0 repository but installed in current.... also a no-go.

However... in a complete 15.0 setup.... no problem.

So, it's something else that changed between 15.0 & current.


tar itself with the -j option extracts it just fine... so it's not a tar nor a bzip problem.
The patch:
https://invent.kde.org/utilities/ark/-/commit/9bcbcb05
 
1 members found this post helpful.
Old 10-30-2023, 05:27 PM   #3067
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 584

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Quote:
Originally Posted by marav View Post
Thank you, marav.

Patrick, could you please apply that patch and place it in current ?

Thanks in advance.

Hmmmm....
Code:
So for now we drop it only when we are sure that we are using a
shared-mime-info >= 2.3
Since current has shared-mime-info-2.3-x86_64-1

Is that patch going to work, or will it still get dropped ?

Guess we'll only be able to find out by testing after the patch is applied.


Also... no need to bother with it right now.

Might-as-well just wait till the KDE team releases the patched package(s).

Till then we can just use tar -j

Last edited by glennmcc; 10-30-2023 at 05:57 PM.
 
Old 10-30-2023, 06:02 PM   #3068
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by glennmcc View Post
Is that patch going to work, or will it still get dropped ?
Yep, just tested. It works fine

Quote:
Originally Posted by glennmcc View Post

Might-as-well just wait till the KDE team releases the patched package(s).
Ark-23.08.3 will be released on Nov. 9, 2023
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20231031_000628.png
Views:	22
Size:	56.0 KB
ID:	41961  

Last edited by marav; 10-30-2023 at 06:10 PM.
 
Old 10-30-2023, 06:16 PM   #3069
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 584

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Thanks again marav.

Well... that answers that.

Downgraded to ... [ installed ] - shared-mime-info-2.1-x86_64-3

Now ark 23.08.2 opens that .tar.bz2 without a problem.
 
Old 10-30-2023, 10:58 PM   #3070
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,185

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by Petri Kaukasoina View Post
It was about "universal initramfs file" containing all the modules.

If you leave modules uncompressed and compress the whole initrd, it will explode when the initrd is loaded because all the uncompressed modules would use lots of RAM. The idea is to compress all the modules individually with xz. Look at the initrd of the slackware install disk. When the boot loader loads the initrd, the modules stay compressed, so RAM is saved. Only those modules that are then modprobed are uncompressed. The time to do the compressing of modules does not matter, and PV does the compressing once. It's not much: I use xz to compress my bzImage, modules and firmware files.
Compressing individual modules is a good idea. There are however still two things that I don't quite understand --

1) The initrd will be removed from memory once the real init takes over, so what's the problem of it occupying a few hundred megabytes of memory for just a few seconds?

2) Compressing once looks good, but note that loading and decompression also happen for only once before the next kernel update if the system never reboots (could be suspended to disk).

On all the servers and workstations I manage I load the whole /lib/modules directory from /boot/initrd-tree/init in the form of a zstd compressed squashfs. It does not explode even the memory of tiny embedded systems and virtual machines.

I completely agree that your solution is good. I'm just saying that there are alternatives with advantages and possibly disadvantages.

Last edited by guanx; 10-30-2023 at 10:59 PM.
 
Old 10-31-2023, 12:15 AM   #3071
bigbadaboum
Member
 
Registered: Apr 2023
Posts: 160

Rep: Reputation: 63
Talking

linux-6.6
https://cdn.kernel.org/pub/linux/ker...nux-6.6.tar.xz

Marav, Pat, Gentlemen, start your engines.
 
Old 10-31-2023, 01:59 AM   #3072
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by bigbadaboum View Post
linux-6.6
https://cdn.kernel.org/pub/linux/ker...nux-6.6.tar.xz

Marav, Pat, Gentlemen, start your engines.
It might be worth noting that the 6.1 kernel in Slackware current is a longterm kernel which hopefully will get updates some years after Slackware 15.1 has been released. This is probably why current uses the 6.1 kernel rather than the latest stable 6.5 kernel.

regards Henrik
 
Old 10-31-2023, 04:27 AM   #3073
regdub
Member
 
Registered: Apr 2008
Location: France
Distribution: Slackware
Posts: 101

Rep: Reputation: 33
mkinitrd

Hello

With the new kernel config, tests in mkinitrd for adding /sbin/jfs_fsck and /sbin/xfs_repair in the tree are never true.
 
Old 10-31-2023, 04:59 AM   #3074
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 622

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by henca View Post
It might be worth noting that the 6.1 kernel in Slackware current is a longterm kernel which hopefully will get updates some years after Slackware 15.1 has been released. This is probably why current uses the 6.1 kernel rather than the latest stable 6.5 kernel.

regards Henrik
Kernel 6.1 is super-long-term stable (SLTS) so it will be kept for Slackware 15.1

Only after the release of 15.1 can we talk about a new kernel for Slackware64-current!
 
2 members found this post helpful.
Old 10-31-2023, 06:20 AM   #3075
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by teoberi View Post
Kernel 6.1 is super-long-term stable (SLTS) so it will be kept for Slackware 15.1

Only after the release of 15.1 can we talk about a new kernel for Slackware64-current!
I have no hopes for the Slackware 15.1 with Plasma5 to be released before everybody else will ship Plasma6 . Yep, there will be the glorious Slackware 14.2 all over again. It's not crystal clear for everybody?

And that's plenty of time to have another LTS kernel or even two...

Last edited by LuckyCyborg; 10-31-2023 at 06:48 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration