spacer.png, 0 kB
  September 09, 2010, 01:47:48

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: btrfs optimizations just for URD  (Read 562 times)
jim

Posts: 25


View Profile Email
« on: January 25, 2010, 02:21:00 »

Well, perhaps the subject of this post is a bit of an exaggeration, you be the judge.  As some of you have probably noticed, URD can dump a ton of data into your mysql data directory.  I browse many large newsgroups, and can easily put 100 GB or more into /var/lib/mysql.

I knew the data had to be very compressible, since it was mostly usenet headers.  And I was sure after compressing 73 GB worth of URD mysql data into an 11GB file with plain old gzip.  So, I went about searching for a filesystem with transparent disk compression.  Though it's still in development, btrfs is pretty much the only transparently compressing filesystem available in modern Linux kernels:
http://en.wikipedia.org/wiki/Btrfs

However, I found that it was not compressing as well as it should, so I posted about it on the btrfs mailing list.  I didn't mention URD specifically in my post, but you'll notice the urd database in my "du -h" command:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03852.html

Turns out the Chris Mason, the lead developer of btrfs was interested in my results, he posted a patch to enable better compression ratios:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03884.html

The tests turned out spectacularly, with disk usage being a small fraction of the actual size of the URD database files.  Chris Mason saw the same results from his testing, and now it looks like btrfs is getting some improvements to its compression routines:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03903.html

And it wouldn't have happened without URD!   Cheesy
Logged
Styck
Administrator
*
Posts: 110


View Profile
« Reply #1 on: January 25, 2010, 11:55:32 »

Nice Cheesy

Might give it a go myself at some point...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB