From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVNQ-0004hU-Gk for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvVNP-0007a7-FW for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:58:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVNP-0007ZQ-6U for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:58:07 -0500 Message-ID: <50F6CE0A.9060805@redhat.com> Date: Wed, 16 Jan 2013 08:58:02 -0700 From: Eric Blake MIME-Version: 1.0 References: <1357143393-29832-1-git-send-email-benoit@irqsave.net> <1357143393-29832-2-git-send-email-benoit@irqsave.net> <50E5CB91.4040704@redhat.com> <20130116145033.GA3383@irqsave.net> In-Reply-To: <20130116145033.GA3383@irqsave.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2NXRTMCRWUSHBTRDGTTWX" Subject: Re: [Qemu-devel] [RFC V4 01/30] qcow2: Add deduplication to the qcow2 specification. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QmVub8OudCBDYW5ldA==?= Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2NXRTMCRWUSHBTRDGTTWX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/16/2013 07:50 AM, Beno=C3=AEt Canet wrote: >> I'd write this as CEIL(dedup_block_size / (32 + 8)) to make it clear >> that it rounds up... >=20 > 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 :) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2NXRTMCRWUSHBTRDGTTWX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJQ9s4KAAoJEKeha0olJ0NqHooH/1Y4itPZYD8v15J6/Vw8OTYd lXJO2rjW9XvBVenvD/LsSNxCOaZWGE4VVTuFT/vh/dor1RQpulbYBB31c6RbzXUb VzO9heWGO4gXAlnLPGXQn5YuhM8KskE1HEw9OtcW0dolHZhmpVIXEQldnhEY9hPH 6w3d6LF6gTjDXHROThkTo1C8kwd0z3m2fOccBaiwcNOsSh2StW9NPqY8eMoSxjfX QLiY/M9LE42OpzfnpaJioz/YBb2UWmunKl35hS2a/uLqj4kjqeYsR7AA+Hr3CWOO ge516M935WtNn6Lde5cpLjAobBVGBFBBLgaE19cxRfCd0T594DwEbrGHCzzBlb8= =5wYc -----END PGP SIGNATURE----- ------enig2NXRTMCRWUSHBTRDGTTWX--