LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-16-2011, 03:58 PM   #1
dmonty
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Rep: Reputation: 2
Lightbulb compress usr with squashfs xz & gzip comparison


The bottle-neck for most computers is the hard disk IO. Compressing /usr can help speed things up. Google: squasfs usr for details. I wanted to compare xz(lzma 2) and gzip compression for in terms of bootup speed and firefox 5. Computer is ARCH linux Intel(R) Pentium(R) 4 CPU 2.80GHz, 2GRAM, single hard disk. KDM is set to auto-login to kde4. I rebooted a few times each to ensure fair numbers. I've removed the aufs option as it is not working for my current kernel.

All in seconds (less is better)
Normal uncompressed /usr (7.3G)
* kde4-splash; desktop; disk-io-stops; firefox
* 37;56;60;6
* 37;56;60;6

squashfs gzip /usr (3.7G)
* 25;45;55;4
* 25;45;56;5
* 25;47;57;4

squashfs xz (lzma2) /usr (3.4G)
* 35;75;90;7
* 35;76;91;7

Conclusions:
In terms of read speed: gzip is fastest then raw-disk and xz is slowest.

In terms of disk space: gzip and xz both compress the /usr partition to about half it's normal size. xz is smaller. But the compression still effectively requires more disk space because you need to keep your original /usr partition for upgrades plus space for your usr.squashfs file.

Effort -to- payoff ratio: given that you do NOT sit and watch the actual squashfs compression (takes a long time). Squashfs /usr saves you about 10 seconds every time you start your computer. Given you boot your computer and launch firefox once a day 6 days a week and sit and wait for it to boot. You will save yourself about 1 minute per week (4-5 minutes per month). So make sure you don't don't spend too long setting it up and testing and blogging about it like I have or else you will waste more time than you actually save in terms of speed increase.
 
  


Reply

Tags
arch linux, compress, compression, filesystems, linux


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing aufs & lzma & squashfs modules ? yban Slackware 6 09-30-2009 03:16 AM
compress file size bigger than uncompress in gzip format kumartnj Linux - General 1 04-10-2009 02:28 AM
What is difference between /usr/sbin/ps & /usr/ucb/ps command rajaniyer123 Solaris / OpenSolaris 6 07-05-2007 12:53 PM
What is the best way to normalize & compress voice audio files? andrewstr Linux - Software 0 02-12-2004 03:19 PM
compress kernel modules with gzip? bbeers Debian 4 12-16-2003 03:21 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration