[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication
From: |
Troy Benjegerdes |
Subject: |
Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication |
Date: |
Wed, 2 Jan 2013 12:26:37 -0600 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
The probability may be 'low' but it is not zero. Just because it's
hard to calculate the hash doesn't mean you can't do it. If your
input data is not random the probability of a hash collision is
going to get scewed.
Read about how Bitcoin uses hashes.
I need a budget of around $10,000 or so for some FPGAs and/or GPU cards,
and I can make a regression test that will create deduplication hash
collisions on purpose.
On Wed, Jan 02, 2013 at 06:33:24PM +0100, Beno?t Canet wrote:
> > How does this code handle hash collisions, and do you have some regression
> > tests that purposefully create a dedup hash collision, and verify that the
> > 'right thing' happens?
>
> The two hash function that can be used are cryptographics and not broken yet.
> So nobody knows how to generate a collision.
>
> You can do the math to calculate the probability of collision using a 256 bit
> hash while processing 1EiB of data the result is so low you can consider it
> won't happen.
> The sha256 ZFS deduplication works the same way regarding collisions.
>
> I currently use qemu-io-test for testing purpose and iozone with the -w flag
> in
> the guest.
> I would like to find a good deduplication stress test to run in a guest.
>
> Regards
>
> Beno?t
>
> > It's great that this almost works, but it seems rather dangerous to put
> > something like this into the mainline code without some regression tests.
> >
> > (I'm also suspecting the regression test will be a great way to find
> > flakey hardware)
> >
> > --------------------------------------------------------------------------
> > Troy Benjegerdes 'da hozer' address@hidden
> >
> > Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
> > software & hardware (http://q3u.be) stuff and not get a real job.
> > Charles Shultz had the best answer:
> >
> > "Why do musicians compose symphonies and poets write poems? They do it
> > because life wouldn't have any meaning for them if they didn't. That's why
> > I draw cartoons. It's my life." -- Charles Shultz
--
--------------------------------------------------------------------------
Troy Benjegerdes 'da hozer' address@hidden
Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software & hardware (http://q3u.be) stuff and not get a real job.
Charles Shultz had the best answer:
"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz
- [Qemu-devel] [RFC V4 16/30] qcow2: Extract qcow2_add_feature and qcow2_remove_feature., (continued)
- [Qemu-devel] [RFC V4 16/30] qcow2: Extract qcow2_add_feature and qcow2_remove_feature., Benoît Canet, 2013/01/02
- [Qemu-devel] [RFC V4 06/30] qcow2: Add qcow2_dedup and related functions, Benoît Canet, 2013/01/02
- [Qemu-devel] [RFC V4 26/30] qcow2: Add lazy refcounts to deduplication to prevent qcow2_cache_set_dependency loops, Benoît Canet, 2013/01/02
- [Qemu-devel] [RFC V4 18/30] qcow2: Behave correctly when refcount reach 0 or 2^16., Benoît Canet, 2013/01/02
- [Qemu-devel] [RFC V4 11/30] qcow2: create function to load deduplication hashes at startup., Benoît Canet, 2013/01/02
- [Qemu-devel] [RFC V4 13/30] qcow2: Extract qcow2_do_table_init., Benoît Canet, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Troy Benjegerdes, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Benoît Canet, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication,
Troy Benjegerdes <=
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Benoît Canet, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, ronnie sahlberg, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Benoît Canet, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Troy Benjegerdes, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, ronnie sahlberg, 2013/01/02
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Stefan Hajnoczi, 2013/01/03
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Troy Benjegerdes, 2013/01/03
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Dietmar Maurer, 2013/01/04
- Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Stefan Hajnoczi, 2013/01/04
Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication, Benoît Canet, 2013/01/03