From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH v3 3/3] tools/libxc: use superpages during restore of HVM guest Date: Fri, 25 Aug 2017 16:00:15 +0200 Message-ID: <20170825140015.GO6372@aepfle.de> References: <20170824101443.31345-1-olaf@aepfle.de> <20170824101443.31345-4-olaf@aepfle.de> <20170825120645.g2r5smkgfdxmorhc@citrix.com> <20170825125101.GN6372@aepfle.de> <20170825133604.tyjebwqdt5kuuiti@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5777362018724578968==" Return-path: In-Reply-To: <20170825133604.tyjebwqdt5kuuiti@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Wei Liu Cc: Andrew Cooper , Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============5777362018724578968== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jXoUnAu9pZeaHebo" Content-Disposition: inline --jXoUnAu9pZeaHebo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Fri, Aug 25, Wei Liu wrote: > Maybe a middle ground is to scan the batch to see if pfns can be fit > into a whole super page? I don't think you can get a batch as big as 1G > but there should be a lot of 2M batches? I think with the new check of max_pages an overallocation can not happen anymore. If at some point the domU still has room for a superpage, it will be allocated. In case the batch does not fully fill the superpage, the holes will be freed. In the next batch no superpage can be allocated anymore, but single pages will be used. This punching of holes might be inefficent, the win is the usage of superpages in case of contiguous pfns. Olaf --jXoUnAu9pZeaHebo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWaAtbAAKCRBdQqD6ppg2 fuhJAKDoAc4R0iIU5kx1FMh4DdoAgmJjogCfXdxJf22psQu3HID9fPG8IWGubKY= =vAnJ -----END PGP SIGNATURE----- --jXoUnAu9pZeaHebo-- --===============5777362018724578968== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============5777362018724578968==--