LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-23-2020, 05:08 AM   #1
basharx
LQ Newbie
 
Registered: Nov 2013
Posts: 20

Rep: Reputation: Disabled
multi-core image decompression


Just wondering if it's possible in principle to speed up the initial kernel image decompression by using multiple CPU cores, which would be useful on older multi-core system; if some rudimentary multi-core control is available at boot time.

I've only found someone comparing general decompression speeds and preferring very fast lz4 decompression (at the expense of image size) as opposed to bz2, xz, lzma, etc. (the use-case was some consumer electronics). Thanks for any insights.
 
Old 03-23-2020, 10:02 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,485

Rep: Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223
Is this for LILO? Just add the "compact" option to lilo.conf. The wait for the image to decompress will disappear.
 
Old 03-24-2020, 12:44 AM   #3
LuckyCyborg
Member
 
Registered: Mar 2010
Posts: 500

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Quote:
Originally Posted by dugan View Post
Is this for LILO? Just add the "compact" option to lilo.conf. The wait for the image to decompress will disappear.
That "compact" option affects the loading of kernel and initrd from disk - the step when LILO draws points.

The decompression stage (about which the OP talks) is after this step.

However, the multi-core thing on LILO is doubtfully, considering that LILO is a 16 bit program no different of old good MS-DOS applications, and it runs in real mode, or something similar.

Last edited by LuckyCyborg; 03-24-2020 at 12:48 AM.
 
Old 03-24-2020, 01:58 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,862

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
I can't recall, but probably only one core is available that time (at the early phase of the boot).
From the other hand you can check pigz for example here, and you will see an interesting note:
Quote:
Note that decompression is not actually parallelised by pigz (apparently it can’t be), but separate threads are created for different functions of decompression.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Utilizing multi core for tar+gzip/bzip compression/decompression galapogos Linux - Software 13 10-07-2013 01:44 AM
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
not that anyone cares but... here's a free decompression script i wrote versaulis Linux - Software 8 11-23-2003 02:21 PM
Decompression Problem andrewt Linux - Software 3 08-04-2003 03:09 PM
ppp: vj decompression error haknot Linux - Networking 0 01-14-2002 05:39 PM

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

All times are GMT -5. The time now is 07:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration