LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-16-2009, 06:25 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
kernel patch to enable filesystem compression


Hey hey! I have a 1.5TB drive that stores tens of thousands of csv and text files. I'd like to use chattr -R +c to enable compression at the filesystem level. This would be a much more elegant solution than gzipping every individual file that comes in.

While reading about chattr -R +c, I keep reading that I need to patch the kernel before filesystem compression is fully supported by my system.

Does anyone have any links or advice on how to patch the kernel to fully support chattr +c?

My system is running CentOS 4.7 (Final) with the following kernel: 2.6.9-78.0.5.ELsmp

Thanks!
 
Old 02-16-2009, 07:38 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
There's http://sourceforge.net/projects/e3compr/ but you really should read the FAQ before applying it. Other stuff to try if you can live with FUSE: FuseCompress (http://miio.net/fusecompress/, 2009), FUSE-zip (http://code.google.com/p/fuse-zip/, 2008), avf (http://sourceforge.net/projects/avf, 2007), compFUSEd (http://freshmeat.net/projects/compf/, 2007), LZOlayer (http://north.one.pl/~kazik/pub/LZOlayer/, 2006). You'll find code maintenance and maturity varies wildly and I haven't seen any benchmarking apart from http://code.google.com/p/fuse-zip/wiki/PerformancePage. YMMV(VM).
 
Old 02-16-2009, 08:10 PM   #3
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by msound View Post
tens of thousands of csv and text files.
That's not much (my system has something between 70000..130000 files, and it isn't on 1 terabyte drive). I'd start to worry if there were few dozens of millions of them.
 
Old 02-17-2009, 06:18 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
You might want to check btrfs, which supports it natively since 0.17. However it's still a young fs, and there's no guarantee that it's stable or that the on disk format won't change in the future. It supports transparent compression via zlib, though.

I would forget about that kernel patches unless you don't mind living with old kernels (you don't need support for newer hardware, are not affected by old bugs or and don't care about security), I doubt that stuff is actively supported and developed (otherwise it would have probably been included in the kernel at one point). Looking at sourceforge, the last e3comp update has almost 1 year ago.
 
Old 02-17-2009, 10:12 AM   #5
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
Hey guys thanks for the replies.

Quote:
Looking at sourceforge, the last e3comp update has almost 1 year ago.
That was definitely one trend I noticed while searching around for a solution. I think one of them only mentioned the ext2 filesystem and I'm running ext3.

Quote:
That's not much (my system has something between 70000..130000 files, and it isn't on 1 terabyte drive). I'd start to worry if there were few dozens of millions of them.
Well, as of 7:59am PST, the drive is currently storing 394,860 files. That slightly exceeds your 130,000 :P

We're currently adding between 1,000 - 4,000 new files per day, and that number is expected to go up.

The other catch is that we make these files downloadable via a web interface. Another drawback to gzipping each of the files individually is that we'd then have to gunzip each file before we pass them to the user for download (end users seem to have enough trouble handling plain text files, asking them to unzip a file first would be unreasonable at this scope).

The other issue is that this application, the scripts that retrieve the data, the web site and the database are all being run from a single machine. So server load is definitely a concern.

I've setup a few test CentOS 4.7 VM's on my vm server at home. I think the next logical step would be to setup a few configurations in a test environment. The only thing I wouldn't be able to mirror at home is the fact that the production drive is actually a partition on a san, and not a local hard disk array.

I'll post an update later this week after I've done a few tests.

Thanks!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using mt to try to enable tape drive compression jeriryan Linux - Newbie 7 06-20-2008 09:49 AM
Enable compression levels on openVPN Buddhike G Linux - Software 0 02-14-2008 02:44 AM
How to patch kernel to enable CONFIG_TIMER_STATS for 2.6.13-15.13 3ttt Linux - Newbie 1 12-06-2007 05:02 PM
How to enable linux filesystem capabilities for kernel 2.24.18 toubo Linux - General 8 08-20-2004 10:09 AM
kernel config, cant enable patch e1000 Linux - General 2 01-05-2004 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:21 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