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