qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC V4 01/30] qcow2: Add deduplication to the qcow2 sp


From: Eric Blake
Subject: Re: [Qemu-devel] [RFC V4 01/30] qcow2: Add deduplication to the qcow2 specification.
Date: Wed, 16 Jan 2013 08:58:02 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 01/16/2013 07:50 AM, Benoît Canet wrote:
>> I'd write this as CEIL(dedup_block_size / (32 + 8)) to make it clear
>> that it rounds up...
> 
> Isn't it FLOOR instead of CEIL ? (off by one error) ?

Indeed, my reply was a bit too hasty, and I mixed terminology.  The
number of entries that fits in a page is determined by rounding down
(floor); the amount of memory consumed by that many entries is
determined by rounding up to page size (ceil).  But at least you got
what I meant :)

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]