All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: <dsterba@suse.cz>, Hugo Mills <hugo@carfax.org.uk>,
	Learner Study <learner.study@gmail.com>,
	linux-btrfs <linux-btrfs@vger.kernel.org>,
	Mark Fasheh <mfasheh@suse.de>
Subject: Re: de-duplication algos
Date: Thu, 14 May 2015 09:08:02 +0800	[thread overview]
Message-ID: <5553F572.9040100@cn.fujitsu.com> (raw)
In-Reply-To: <20150513164815.GT23255@twin.jikos.cz>



-------- Original Message  --------
Subject: Re: de-duplication algos
From: David Sterba <dsterba@suse.cz>
To: Hugo Mills <hugo@carfax.org.uk>, Learner Study 
<learner.study@gmail.com>, linux-btrfs <linux-btrfs@vger.kernel.org>, 
Mark Fasheh <mfasheh@suse.de>
Date: 2015年05月14日 00:48

> On Wed, May 13, 2015 at 04:35:53PM +0000, Hugo Mills wrote:
>> On Wed, May 13, 2015 at 09:24:17AM -0700, Learner Study wrote:
>>> Hello,
>>>
>>> I have been reading on de-duplication and how algorithms such as Bloom
>>> and Cuckoo filters are used for this purpose.
>>>
>>> Does BTRFS dedup use any of these, or are there plans to incorporate
>>> these in future?
>>
>>     There was a long discussion on IRC about different approaches that
>> could be taken. I think Mark Fasheh captured most of that somewhere --
>> I thought he'd put it on the duperemove github site somewhere, but I
>> can't see it right now.
>
> The bloom filter for duperemove has been implemented (as of commit
> b7c03422ea9fd11f915804df2b6598a6ed10dfce) and works fine, the memory
> footprint is much lower than before.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Zhao Lei and I are also trying to implement *in-band* de-duplication.
Our idea is to implement a memory pool to keep a csum<->extent map to do 
*PARTIAL* dedup.
As we consider de-duplication doesn't need to de-dup 100% of 
duplications, it's just a nice addition but not a fundamental function.

The memory pool bahaviors as last-recent-use, and user can adjust how 
big the memory pool is. (Yeah, put the dirty work to user)

Bloom filter seems quite interesting, but it also seems hard to remove 
items from them, so also hard to limit memory usage in kernel.
Since I'm not familiar with algorithms like Bloom filter, any advice on 
such algorithms available is welcomed.

Thanks,
Qu

  reply	other threads:[~2015-05-14  1:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 16:24 de-duplication algos Learner Study
2015-05-13 16:35 ` Hugo Mills
2015-05-13 16:48   ` David Sterba
2015-05-14  1:08     ` Qu Wenruo [this message]
2015-05-14  2:10       ` Timofey Titovets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5553F572.9040100@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=dsterba@suse.cz \
    --cc=hugo@carfax.org.uk \
    --cc=learner.study@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mfasheh@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.