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

Re: [PATCH 0/8] Make PDX compression optional


  • To: Julien Grall <julien@xxxxxxx>, Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 20 Jul 2023 23:13:07 +0100
  • 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=RmjLTghnezze+nyOnyPG/c/N8Q3wwOZyAB0bPZaALzU=; b=iSsfsOv1GJntJi/h6eiZ611IyZYU35kH1Jv/nY/an/Kl/dUUgq0cCqdWCIetP0GF+yU8SloaFd3Gwk5RF+CCGI3Do3dBiB42WedoO0IBY6dLIv85fW5eqF+HymIuCMoksl9Fyl+0nKECoe2qNibBGWwy63TVnzE27VY0QIWQ0YhLiDXiChmS7YRqEkBUlLEyZ121wzzCtC9Cdek5IawLMO+LPXuE9gfMu2WG6Tdgo0ciEh6FjDuNnaofOd+/mKBVYTfdYHzCP0V0bAVW0fP1qebp2843j1KS7SnkJxy4R9PRJ6azW856v5Y7W7fUMQSq/0mEvjqJEcgdScOQBG4tPg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GRqM/LRmQDSyENmh/bpsv86P85e1ZoxDnB+D1ZW/CRbNpMVVd707HbFmHgwLrFFuxFGVuJiumu2+o6zJN7EVf0xHih2cTCVxyzUG/QASeRLFDnvTTjbaF/8jkFqyVFS+puNO8G+9ZL68bNVCBDUiDqSiXlJTK61KSbMRP8v5PhMWckffxxAMArWVVkMe8KN/2kVv+VEyciwmdww3WxVaRMcbSrCRytkPnVML6C8RVpvIYTtNpkI+flNxYIUBldoDjbsY+hYi8dCM5Nr2N+cesvgY4/sYKr4WKOo0jiZj7sYmjAE1h5eCjOnvfILE3+h0P84RyICaLXqSAjhWik0k+A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 20 Jul 2023 22:13:25 +0000
  • Ironport-data: A9a23:Hdl6NK894CnCIZgnwreNDrUDJn+TJUtcMsCJ2f8bNWPcYEJGY0x3n zAcXmqOP/jcN2qhLo0nPoSxpEwDsZ/RmtRnSVBupCE8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOG6UKicYXoZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ird7ks21BjOkGlA5AdmOqoT5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDkkex fcTJWkOVCrTpOWz6u/rCcUzmJoKeZyD0IM34hmMzBn/JNN+HdXmfP+P4tVVmjAtmspJAPDSI dIDbiZiZwjBZBsJPUoLDJU5n6GjgXyXnz9w8QrJ4/ZopTeIilUuidABM/KMEjCObexTklyVu STt+GPhDwtBHNee1SCE4jSngeqncSbTAdtMReHiqKE26LGV7nA4JSYRVXuBm9WgrE6ueZVbE hIf2yV7+MDe82TuFLERRSaQomOAvxMac8pdFas98g7l4qPQ7gSQAGQeSXhfYdgiuc0xbTcu0 UKF2djuAFRHoLCTDH6Q6LqQhTezIjQOa38PYzceSgkI6MWlp5s85jrNRNt+FK++jvXuBCr9h TuNqUAWnK4PhMQG06G6+1HvgD+2oJXNCAkv6W3/QWaN/g5/Iom/aOSA41XB8exJKorfS1Cbp WUFgOCX9uVIBpaI/ASzR+EKEKCs9uyyGjTWil5yHLEs7z2ovXWkeOhtDCpWIU5oNoMBZmXva UqL5QdJvsYMZT2tcLN9ZJ+3B4Iy16/8GN/5V/fSKN1Tfpx2cwzB9yZrDaKN413QfIEXuflXE f+mnQyEVB721YwPIOKKetog
  • Ironport-hdrordr: A9a23:WFnsfaPKn44MQMBcTt2jsMiBIKoaSvp037BL7TETdfQ2Gvbzqy nKppkmPHPP5wr5OktNpTnaAtjjfZq0z/ccirX5W43NYOCMgguVxe9ZjLff/w==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20/07/2023 11:00 pm, Julien Grall wrote:
> Hi Alejandro,
>
> Great work!
>
> On 17/07/2023 17:03, Alejandro Vallejo wrote:
>> Currently there's a CONFIG_HAS_PDX Kconfig option, but it's
>> impossible to
>> disable it because the whole codebase performs unconditional
>> compression/decompression operations on addresses. This has the
>> unfortunate side effect that systems without a need for compression
>> still
>> have to pay the performance impact of juggling bits on every pfn<->pdx
>> conversion (this requires reading several global variables). This series
>> attempts to:
> Just as a datapoint. I applied this to a tree with Live-Update
> support. From the basic test I did, this is reducing the downtime by
> 10% :).

I'm not surprised in the slightest.

We've had many cases that prove that compression (of 0 bits, on all x86
systems) is a disaster perf wise, and its used in pretty much every
fastpath in Xen.

Look no further than c/s 564d261687c and the 10% improvements in general
PV runtime too, and that was optimising away one single instance in one
single fastpath.

It's also why I'm not entertaining the concept of leaving it active or
selectable on x86.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.