LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2015, 04:37 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Rep: Reputation: Disabled
Want to try btrfs. Is compress=lzo necessary?


Hello

I want to install arch linux with btrfs on my home PC. The reason is, i want to learn more linux with lot of experiments. Since i am newbie, and i'm sure i'll make a lot of mistakes, i need a facility to roll back - which btrfs gives through snapshots. Also, by learning btrfs, i can graduate to ZFS later.

I don't want to install arch on virtualbox, because i want to experience/experiment on real hardware not on some virtual hardware.

So, the problem that bothering me is this mount line 'compress=lzo'. I really don't need any compression on my fs. But every article, guides and video tutorials I've come across use compress=lzo in their article while mounting their fs. In one article, the author even warned not to miss compress=lzo option while mounting fs without giving any reason.

Now I'am confused. Should I put compression or not? I'm using regular 1 TB Seagate SATA HDD with 7200 RPM. Will there be any overhead if i put compression and slows down my PC?

Thanks
 
Old 08-20-2015, 04:46 AM   #2
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
No, compression is not necessary. It's a fad. While it can save some space, it can also be a bottleneck in cases of multithreaded I/O operations.
 
1 members found this post helpful.
Old 08-20-2015, 04:59 AM   #3
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ugjka View Post
No, compression is not necessary. It's a fad. While it can save some space, it can also be a bottleneck in cases of multithreaded I/O operations.
Its really helpful. I'll go ahead without compression then.

Thanks
 
Old 08-20-2015, 05:24 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by mangya View Post
I'm using regular 1 TB Seagate SATA HDD with 7200 RPM. Will there be any overhead if i put compression and slows down my PC?
Depends. There are opposing factors at work
  • If your cpu is fast and your disk slow, then compression will probably be faster
  • If your disk is fast and your cpu slow, then compression will probably be slower

You could look here for some actual information but it is a couple of years old and potentially confusing (that's life for you I am afraid).
 
Old 08-20-2015, 05:38 AM   #5
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by salasi View Post
  • If your cpu is fast and your disk slow, then compression will probably be faster
  • If your disk is fast and your cpu slow, then compression will probably be slower
Thanks, i'll look at the link you mentioned. My system is old - Intel Core2Duo CPU E7500@2.93GHz, 8GB RAM, 1TB SATA HDD. I mainly use PC for browsing, videos/mp3 play, keep my documents and virtualbox (usually 2-3 linux guests without gui and win7 for ms-office). I don't play any kind of games.

Thanks
 
Old 08-21-2015, 03:51 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
I believe the default compression is zlib. so if you don't specify "compress=no" that is what you will get.
 
  


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
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single. gonus Linux - Software 3 07-17-2014 02:48 PM
LXer: Rollback To A Working State With btrfs + apt-btrfs-snapshot On Ubuntu 12.10 LXer Syndicated Linux News 0 11-25-2012 10:42 AM
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM
How to enable btrfs + lzo comp. on root (and other) partitions during Ubuntu 11.04 iam_techno Linux - Software 0 05-01-2011 02:35 AM
OpenVPN build LZO not found libsys Linux - Software 4 07-15-2005 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 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
Open Source Consulting | Domain Registration