[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 1/2] xen/unpopulated-alloc: Introduce helpers for DMA allocations
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Thu, 16 Jun 2022 10:49:34 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2cLom0y4HWD07Ic3sPVf5/TfOrMlkRnW1dnPd1g2lys=; b=IbLC9PRs3kranqis8T6IzYRG0a5xDAzFIKZOEIKbNzXRrhUSXicNDYsUgkVrgeFg/MvwGwCeK1e9GoUe+29aMJ5Cr+fg8l+T5u7VLJHGdaO7VFJMKeVbWPn6SZDaFedbIFcBt0YOHFdmJfewB/K1+10muJzrKsdRi0djpyMnRo5a8oX/DrScp3f0PkqG7xEtD88wUCoeYloPOCEsSrkBAkYoRk8EQdICDIrREGBlM5Ylc+Hk/tAgcIMPsVtmd4tBPnFuN5w/C+8vtj6C22tSugG7ABSDS0J+Y8B5kr7tDthh4DO11iv+uBa7nWT4zwvM2CS67/b1qANajEQmfy9rug==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+y1kzb/rUnRZCpySi9IVUFsbeVZ3dbHcJRpBuEm74nbUhCSA211d98me6MZCjbZF/xxVKK44thVDysA8FHmtfihdyfzxFVrUJ+Ndedv5A9kQvqUS7NDYtXnMoQYwDwxtufnqo2aTkjAnab1vZWV3atVefS9AZgCWleEvdS7uRPoYesS+iW0rDlewQ8vr4HjdxpI1GTmPTA233tTMWkmy8G/mxVJOhWz9/wrcp0UaLKHI1jM8AD+Au9cazgzZtXK7w3Qgbslqog4LkwIGqhpBnL6Gx+yuGYwP7YaMq5lIVKl4GXrb+L6+bIUYZSSCuL0CqWmXNzlLV1btvoHT+v3Cg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Oleksandr <olekstysh@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>
- Delivery-date: Thu, 16 Jun 2022 08:49:50 +0000
- Ironport-data: A9a23:ehFWMqzwpH3nKrQMqVd6t+fLxyrEfRIJ4+MujC+fZmUNrF6WrkUFy WFLX2HTPvmDYjb2co9/at/lo0xQ78TcydFkSAFqqyAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnj/0bv656yMUOZigHtIQMsadUsxKbVIiGX5JZS5LwbZj2NY22IbhWmthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ Npl7Jy7ED4oE6P3qc9HYxoAPQ5MBasd9+qSSZS/mZT7I0zuVVLJmqwrJmdmeIoS96BwHH1E8 uEeJHYVdBefiumqwbW9DO5xmsAkK8qtN4Qa0p1i5WiBUbB6HtaeE+OTuoUwMDQY36iiGd7EY MUUc3x3ZQnoaBxTIFYHTpk5mY9Eg1GgKGUI8gvP/8Lb5UD3xktP/KbsP+DvXfu6a51rsRiW/ kP/qjGR7hYycYb3JSC+2mm3mubFkCf/WYQTPL617PhnhBuU3GN7IBoSWFigveiiimaxXtteL wof/S9Ghbg/8gmnQ8fwWzW8oWWYpVgMVtxICeo45QqRjK3O7G6xAmkCUy4Ea9E8ssIybSIl2 0XPnN7zAzFr9rqPRhq18bOZrii7PyQPGnMTfi8PTQYD4N7LrZk6i1TESdMLOKSylNzuXzbr3 yqNsjM9lp0Ul8cA06j99lfC6xquqYLOVRUd/RjMUySu6QYRTIy4Y42l73DL4PAGK5yWJmRtp 1ABksmaqeoIXZeEkXXURP1XRe7zofGYLDfbnFhjWYE78Cig8GKieoYW5yxiIEBuMYAPfjqBj FLvhD69LaR7ZBOCBZKbqaroYyj25cAMzejYa80=
- Ironport-hdrordr: A9a23:DCM+EKpc/VPf7C22khEIzqUaV5u3L9V00zEX/kB9WHVpm5Oj+v xGzc5w6farsl0ssREb9uxo9pPwJE800aQFmbX5XI3SJTUO3VHFEGgM1+vfKlHbak7DH6tmpN xdmstFeaHN5DpB/KHHCWCDer5PoeVvsprY49s2p00dMD2CAJsQizuRZDzrcHGfE2J9dOAE/d enl7x6jgvlXU5SQtWwB3EDUeSGj9rXlKj+aRpDIxI88gGBgR6h9ba/SnGjr18jegIK5Y1n3X nOkgT/6Knmm/anyiXE32uWy5hNgtPuxvZKGcTJoMkILTfHjBquee1aKvS/lQFwhNvqxEchkd HKrRtlF8Nv60nJdmXwmhfp0xmI6kda11bSjXujxVfzq83wQzw3T+Bbg5hCTxff4008+Plhza NixQuixtZqJCKFuB64y8nDVhlsmEbxi2Eli/Qvg3tWVpZbQKNNrLYY4FheHP47bW/HAbgcYa dT5fznlbdrmQvwVQGYgoAv+q3nYp0LJGbIfqBY0fblkAS/nxhCvjklLYIk7zU9HakGOud5Dt T/Q9tVfY51P74rhIJGdZM8qJiMexvwqSylChPjHX3XUIc6Blnql7nbpJ0I2cDCQu168HJ1ou WLbG9l
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Jun 14, 2022 at 05:45:53PM -0700, Stefano Stabellini wrote:
> Basically, if we allocate (and free) page-by-page it leads to more
> efficient resource utilization but it is slower. If we allocate larger
> contiguous chunks it is faster but it leads to less efficient resource
> utilization.
>
> Given that on both x86 and ARM the unpopulated memory resource is
> arbitrarily large, I don't think we need to worry about resource
> utilization. It is not backed by real memory. The only limitation is the
> address space size which is very large.
Well, unpopulated memory will consume memory to populate the related
metadata (ie: struct page and realted tracking information) for the
unpopulated region, so it's not completely free.
Thanks, Roger.
|