LinuxQuestions.org
Visit Jeremy's Blog.
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
Member
 
Registered: Nov 2013
Posts: 30

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: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
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
Senior Member
 
Registered: Mar 2010
Posts: 3,482

Rep: Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287Reputation: 3287
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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305Reputation: 7305
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 01:50 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